Unmounting speed

Hello, we use virtualhere with server (paid) installed on raspberry pies and client (either in service mode or not) on windows.
We are not 100% sure, but we think the time to unmount a device (triggered either via the UI or API) increased a lot since about one week or two, from about 6-8s to 24-25s. Same time from two different clients and two different servers.
Is it "normal" ? Can you assist?

#2

You mean unmount a USB disk? Did anything else change in the last few weeks? Did you update the virtualhere server or client? 

#3

Yes, unmounting a device (smartcard reader). Actually I don't think anything changed as the two servers have different versions (4.6.5 and 4.7.2) and windows clients (5.5.7 and 5.7.6)
However, I just tested on one windows client an "auto mounting" (mount a local device with both client and server installed) and the unmounting is ok

#4

Im not sure sorry. I dont think its a bug

#5

You mean it is a normal behavior? can you at least help us investigate? Things we can try, logs to check...
This is a very important project (3 years of hard work in the health sector), we already bought 6 licenses and we intend to buy at least 15 and probably more.

Thank you

#6

Sure, I can try to investigate more.

What exact smatcard reader is it? What is your latency?

 To see latency, right click USB Servers -> About -> Statistics

#7

Thank you

I tested 3 raspberry pies, the 3 of them in the same premise, 2 wifi and one ethernet (same switch, tcp latency <1ms)

The device is always the same : Gemalto USB SmartCard Reader : https://www.usmartcards.com/gemalto-desktop-readers/gemalto-id-bridge-ct30-reader 
There are 8 readers per device.

Unmounting times  (20-25s) are comparable either from my local computer or from our server (hosted in a same country datacenter: tcp latency 2-8ms)
Mounting time is about 1s


In the statistic view, I see all devices under 15ms except one with peaks up to 130ms 
The latency is not affected by mounting and unmounting commands
Here is an extract of the vh_statistics file
09:54:13,Hub4,30859,104.537804 
09:54:14,CPx1,30771,0.463300 
09:54:14,Windows Hub,30796,0.292300 
09:54:14,Test hub,30858,2.478400 
09:54:16,Hub4,30859,106.436897 
09:54:17,CPx1,30771,0.401200 
09:54:17,Windows Hub,30796,0.369400 
09:54:17,Test hub,30858,7.346200 
09:54:19,Hub4,30859,108.146797 
09:54:20,CPx1,30771,0.494200 
09:54:20,Windows Hub,30796,0.484700 
09:54:20,Test hub,30858,5.690500 
09:54:22,Hub4,30859,116.271896 
09:54:23,CPx1,30771,0.420200 
09:54:23,Windows Hub,30796,0.246300 
09:54:23,Test hub,30858,7.301500 
09:54:25,Hub4,30859,77.709099 
09:54:26,CPx1,30771,0.475400 
09:54:26,Windows Hub,30796,0.312500 
09:54:26,Test hub,30858,10.066600 
09:54:28,Hub4,30859,116.520302 
09:54:29,CPx1,30771,0.382300 
09:54:29,Windows Hub,30796,0.325200 
09:54:29,Test hub,30858,5.697800 
09:54:31,Hub4,30859,106.918503 
09:54:32,CPx1,30771,0.497400 
09:54:32,Windows Hub,30796,0.364200 
09:54:32,Test hub,30858,5.864400 
09:54:34,Hub4,30859,107.362396 
09:54:35,CPx1,30771,0.475600 
09:54:35,Windows Hub,30796,0.232900 
09:54:35,Test hub,30858,3.341200 
09:54:37,Hub4,30859,3.899300 
09:54:38,CPx1,30771,0.534800 
09:54:38,Windows Hub,30796,0.395000 
09:54:38,Test hub,30858,6.262700 
09:54:40,Hub4,30859,2.609700 
09:54:41,CPx1,30771,2.066300 
09:54:41,Windows Hub,30796,0.428500 
09:54:41,Test hub,30858,5.470700 
09:54:43,Hub4,30859,116.647202 
09:54:44,CPx1,30771,0.489600 
09:54:44,Windows Hub,30796,0.322200 
09:54:44,Test hub,30858,14.916700 
09:54:46,Hub4,30859,31.611799 
09:54:47,CPx1,30771,15.098300 
09:54:47,Windows Hub,30796,0.328100 
09:54:47,Test hub,30858,15.569400 
09:54:49,Hub4,30859,72.083298 
09:54:50,CPx1,30771,0.400600 
09:54:50,Windows Hub,30796,0.351500 

#9

Hello again,

Good news! After bouncing from one inconsistency to another, we finally traced the long unmount time to something completely unrelated to the readers or drivers.

Recently, someone changed the hostname of each Raspberry Pi but forgot to add the new name to /etc/hosts.

Because the name could not be resolved locally, every unmount triggered a 20-second DNS fallback/timeout.
After adding the correct entry (or reverting the hostname), unmount time is back to around 4 seconds.

So VirtualHere itself was fine — it was the missing host file entry that caused the slowdown.

Thanks a lot for your assistance anyway.
I hope the note above helps if another user runs into the same issue.

#10

OK thats great news, thanks for letting me know!