Re: [libvirt] [PATCH 1/3] virNumaGetPageInfo: Take huge pages into account

2014-06-24 Thread Ján Tomko
On 06/23/2014 03:59 PM, Michal Privoznik wrote: On the Linux kernel, if huge pages are allocated the size they cut off from memory is accounted under the 'MemUsed' in the meminfo file. However, we want the sum to be subtracted from 'MemTotal'. This patch implements this feature. After this

Re: [libvirt] [PATCH 1/3] virNumaGetPageInfo: Take huge pages into account

2014-06-24 Thread Michal Privoznik
On 24.06.2014 10:15, Ján Tomko wrote: On 06/23/2014 03:59 PM, Michal Privoznik wrote: On the Linux kernel, if huge pages are allocated the size they cut off from memory is accounted under the 'MemUsed' in the meminfo file. However, we want the sum to be subtracted from 'MemTotal'. This patch

Re: [libvirt] [PATCH 1/3] virNumaGetPageInfo: Take huge pages into account

2014-06-24 Thread Ján Tomko
On 06/24/2014 11:56 AM, Michal Privoznik wrote: On 24.06.2014 10:15, Ján Tomko wrote: On 06/23/2014 03:59 PM, Michal Privoznik wrote: + * kernel limitation. The problem is, if there are some huge + * pages allocated, they are accounted under the 'MemUsed' field + * in the meminfo file instead

[libvirt] [PATCH 1/3] virNumaGetPageInfo: Take huge pages into account

2014-06-23 Thread Michal Privoznik
On the Linux kernel, if huge pages are allocated the size they cut off from memory is accounted under the 'MemUsed' in the meminfo file. However, we want the sum to be subtracted from 'MemTotal'. This patch implements this feature. After this change, we can enable reporting of the ordinary system