Skip to contentSkip to conversation

Strange VM stats in /proc/zoneinfo

DISCUSSION Petr Tesarik 2 participants 3 messages Aug 15, 2012 Memory management

lore
Share & tools
lore
#0 lore raw

Hi folks,

while looking at my /proc/zoneinfo, I noticed that the counters are a bit strange:

Node 0, zone DMA

  pages free     3945
        min      7
        low      8
        high     10
        scanned  0
        spanned  4080
        present  3905
    nr_free_pages 3945

OK, you'll probably argue that the rest is hidden in PCP differentials... BUT:

1. this machine has only 2 CPUs
2. stat_threshold = 4
3. vm_stat_diff[NR_FREE_PAGES] = 0 on both CPUs

Is this only me? Or do I misrepresent what these number actually tell?

TIA,
Petr Tesarik

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#1 lore raw

Dne St 15. srpna 2012 11:05:27 Petr Tesarik napsal(a):

Quoted 15 lines

Hi folks,

while looking at my /proc/zoneinfo, I noticed that the counters are a bit strange:

Node 0, zone DMA

  pages free     3945
        min      7
        low      8
        high     10
        scanned  0
        spanned  4080
        present  3905
    nr_free_pages 3945
Quoted 8 lines

OK, you'll probably argue that the rest is hidden in PCP differentials... BUT:

1. this machine has only 2 CPUs
2. stat_threshold = 4
3. vm_stat_diff[NR_FREE_PAGES] = 0 on both CPUs

Is this only me? Or do I misrepresent what these number actually tell?

I verified the free lists, and this part seems sane, so the "present" count must be wrong. FYI I can see this on various x86_64 kernels between 2.6.32 and 3.5.0.

Petr Tesarik

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw
In reply to Petr Tesarik
Quoted 15 lines · Petr Tesarik

Hi folks,

while looking at my /proc/zoneinfo, I noticed that the counters are a bit strange:

Node 0, zone      DMA
   pages free     3945
         min      7
         low      8
         high     10
         scanned  0
         spanned  4080
         present  3905
     nr_free_pages 3945
Quoted 7 lines

OK, you'll probably argue that the rest is hidden in PCP differentials... BUT:

1. this machine has only 2 CPUs
2. stat_threshold = 4
3. vm_stat_diff[NR_FREE_PAGES] = 0 on both CPUs

Is this only me? Or do I misrepresent what these number actually tell?

Present should always be equal to or smaller
than spanned, as well as equal to or larger
than free.

Something looks odd...

I wonder if the statistic ends up going off
at bootmem free time?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>