Skip to contentSkip to conversation

xen-mapcache: Fix rlimit set size.

PATCH Jan Beulich 2 participants 2 messages Aug 2, 2011

lore
Share & tools
lore
#0 lore raw
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 the mcache_max_size was 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 than max_mcache_size after several empirical tests.

Rather fragile going forward I would say. I there any reason not to set the limit to infinity?

Jan

#1 lore raw
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 the mcache_max_size was 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 than max_mcache_size after 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.