xen-mapcache: Fix rlimit set size.
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Anthony PERARD 08/01/11 9:27 PM >>>
Previously, the address space soft limit was set
mcache_max_size. So, before themcache_max_sizewas reached by the mapcache, QEMU was killed for overuse of the virtual address space.This patch fix that by setting the soft limit to
mcache_max_size+ 80MB. I observed that QEMU use 75MB more thanmax_mcache_sizeafter several empirical tests.
Rather fragile going forward I would say. I there any reason not to set the limit to infinity?
Jan
Quoted 10 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Anthony PERARD 08/01/11 9:27 PM >>>
Previously, the address space soft limit was set
mcache_max_size. So, before themcache_max_sizewas reached by the mapcache, QEMU was killed for overuse of the virtual address space.This patch fix that by setting the soft limit to
mcache_max_size+ 80MB. I observed that QEMU use 75MB more thanmax_mcache_sizeafter several empirical tests.Rather fragile going forward I would say.
Yes, I agree. At the very least we should print a warning if rlimit_max is too low so that the admin can fix it.
Quoted 2 lines
I there any reason not to set
the limit to infinity?
We shouldn't assume that qemu is running as a privileged process, but if it is we should definitely do it.