[PATCHv3 1/1] powerpc: Update page in counter for CMM

2008-10-22 Thread Brian King
A new field has been added to the VPA as a method for the client OS to communicate to firmware the number of page ins it is performing when running collaborative memory overcommit. The hypervisor will use this information to better determine if a partition is experiencing memory pressure and needs

Re: [PATCHv2 1/1] powerpc: Update page in counter for CMM

2008-10-21 Thread Benjamin Herrenschmidt
> - if (ret & VM_FAULT_MAJOR) > + if (ret & VM_FAULT_MAJOR) { > current->maj_flt++; > - else > + preempt_disable(); > + get_lppaca()->page_ins++; > + preempt_enable(); > + } else That isn't going to work very well on 32-bit or non-

[PATCHv2 1/1] powerpc: Update page in counter for CMM

2008-10-21 Thread Brian King
A new field has been added to the VPA as a method for the client OS to communicate to firmware the number of page ins it is performing when running collaborative memory overcommit. The hypervisor will use this information to better determine if a partition is experiencing memory pressure and needs

Re: [1/1] powerpc: Update page in counter for CMM

2008-10-21 Thread Brian King
Milton Miller wrote: > X-Patchwork-Id: 5144 >> diff -puN arch/powerpc/mm/fault.c~powerpc_vrm_mm_pressure >> arch/powerpc/mm/fault.c >> --- linux-2.6/arch/powerpc/mm/fault.c~powerpc_vrm_mm_pressure >> 2008-10-20 17:13:25.0 -0500 >> +++ linux-2.6-bjking1/arch/powerpc/mm/fault.c

Re: [1/1] powerpc: Update page in counter for CMM

2008-10-20 Thread Milton Miller
X-Patchwork-Id: 5144 On Mon Oct 20, 2008 near 12:19:21 GMT, Brian King wrote: > > A new field has been added to the VPA as a method for > the client OS to communicate to firmware the number of > page ins it is performing when running collaborative > memory overcommit. The hypervisor will use this

[PATCH 1/1] powerpc: Update page in counter for CMM

2008-10-20 Thread Brian King
A new field has been added to the VPA as a method for the client OS to communicate to firmware the number of page ins it is performing when running collaborative memory overcommit. The hypervisor will use this information to better determine if a partition is experiencing memory pressure and needs