Re: [libvirt] [PATCHv2] openvz: read vmguarpages/privvmpages to set memory tunables

2012-05-04 Thread Guido Günther
On Thu, May 03, 2012 at 02:37:00PM -0600, Eric Blake wrote: > On 05/03/2012 11:13 AM, Guido Günther wrote: > > --- > > Changes since last time: > > * check sysconf return value before division > > * use virStrToLong_ull instead of sscanf > > > > O.k. to apply? > > Cheers, > > -- Guido >

Re: [libvirt] [PATCHv2] openvz: read vmguarpages/privvmpages to set memory tunables

2012-05-03 Thread Eric Blake
On 05/03/2012 11:13 AM, Guido Günther wrote: > --- > Changes since last time: > * check sysconf return value before division > * use virStrToLong_ull instead of sscanf > > O.k. to apply? > Cheers, > -- Guido ACK. > +long kb_per_pages; > +unsigned long long barrier, limit, val;

[libvirt] [PATCHv2] openvz: read vmguarpages/privvmpages to set memory tunables

2012-05-03 Thread Guido Günther
--- Changes since last time: * check sysconf return value before division * use virStrToLong_ull instead of sscanf O.k. to apply? Cheers, -- Guido src/openvz/openvz_conf.c| 115 src/openvz/openvz_driver.c | 222