mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-05 06:00:43 +00:00
Release more drawables on OOM
We've changed how resources are released so they are now being freed continuosly, rather than on OOM, since we want to free as early possible to avoid fragmentation. So, OOM situations should be a bit less common now and signify a real memory shortage, so we should try to free up more resources.
This commit is contained in:
parent
69bad628cc
commit
2f76d8e974
@ -4408,7 +4408,7 @@ static int red_process_commands(RedWorker *worker, uint32_t max_pipe_size, int *
|
||||
return n;
|
||||
}
|
||||
|
||||
#define RED_RELEASE_BUNCH_SIZE 5
|
||||
#define RED_RELEASE_BUNCH_SIZE 64
|
||||
|
||||
static void red_free_some(RedWorker *worker)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user