mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 16:48:06 +00:00
worker: don't do too much polling
Now that processing is correctly restored there is no need to keep polling to avoid main loop hangs. Reduce the polling count to 1 (just try once). This reduce cpu usage if guests are mainly idle. If you consider 100 guests waiting to login with cursor blinking and considering the polling was done 200 times every 10ms (maximum) just the cursor blinking was causing 10100 loop iterations per second while now only 200 are needed (considering cursor blinking every second). Signed-by: Frediano Ziglio <figlio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
916e48e331
commit
56182be522
@ -53,7 +53,7 @@
|
||||
#include "tree.h"
|
||||
|
||||
#define CMD_RING_POLL_TIMEOUT 10 //milli
|
||||
#define CMD_RING_POLL_RETRIES 200
|
||||
#define CMD_RING_POLL_RETRIES 1
|
||||
|
||||
#define INF_EVENT_WAIT ~0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user