Files
linux-legacy/include/linux
Mel Gorman 467c996c1e Print out statistics in relation to fragmentation avoidance to /proc/pagetypeinfo
This patch provides fragmentation avoidance statistics via /proc/pagetypeinfo.
 The information is collected only on request so there is no runtime overhead.
 The statistics are in three parts:

The first part prints information on the size of blocks that pages are
being grouped on and looks like

Page block order: 10
Pages per block:  1024

The second part is a more detailed version of /proc/buddyinfo and looks like

Free pages count per migrate type at order       0      1      2      3      4      5      6      7      8      9     10
Node    0, zone      DMA, type    Unmovable      0      0      0      0      0      0      0      0      0      0      0
Node    0, zone      DMA, type  Reclaimable      1      0      0      0      0      0      0      0      0      0      0
Node    0, zone      DMA, type      Movable      0      0      0      0      0      0      0      0      0      0      0
Node    0, zone      DMA, type      Reserve      0      4      4      0      0      0      0      1      0      1      0
Node    0, zone   Normal, type    Unmovable    111      8      4      4      2      3      1      0      0      0      0
Node    0, zone   Normal, type  Reclaimable    293     89      8      0      0      0      0      0      0      0      0
Node    0, zone   Normal, type      Movable      1      6     13      9      7      6      3      0      0      0      0
Node    0, zone   Normal, type      Reserve      0      0      0      0      0      0      0      0      0      0      4

The third part looks like

Number of blocks type     Unmovable  Reclaimable      Movable      Reserve
Node 0, zone      DMA            0            1            2            1
Node 0, zone   Normal            3           17           94            4

To walk the zones within a node with interrupts disabled, walk_zones_in_node()
is introduced and shared between /proc/buddyinfo, /proc/zoneinfo and
/proc/pagetypeinfo to reduce code duplication.  It seems specific to what
vmstat.c requires but could be broken out as a general utility function in
mmzone.c if there were other other potential users.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Andy Whitcroft <apw@shadowen.org>
Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-16 09:43:00 -07:00
..
…
…
…
2007-10-09 19:59:16 -07:00
2007-09-24 07:15:48 +02:00
…
…
2007-09-23 22:17:27 +02:00
2007-10-10 16:53:11 -07:00
2007-10-15 17:56:36 -07:00
…
…
…
…
…
2007-09-11 04:22:16 -07:00
…
…
…
2007-10-10 16:51:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-10 16:49:02 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-31 10:43:05 -05:00
2007-10-16 09:42:58 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:42:58 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-13 23:56:33 +02:00
…
…
…
…
…
…
…
…
2007-10-10 16:51:59 -07:00
…
…
…
…
…
…
…
2007-10-10 16:52:04 -07:00
…
…
…
…
…
…
2007-10-14 12:41:52 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-31 15:39:41 -07:00
…
…
…
…
…
…
2007-10-15 17:56:36 -07:00
…
…
2007-10-16 09:42:49 -07:00
2007-08-26 18:35:34 -07:00
…
…
…
…
…
…
…
…
…
2007-10-12 14:51:12 -07:00
…
…
…
…
2007-10-13 10:18:29 +02:00
…
…
…
2007-09-11 22:24:45 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-10 16:54:03 -07:00
…
…
…
…
…
2007-10-16 09:42:53 -07:00
2007-10-16 09:42:53 -07:00
…
…
…
…
…
…
…
…
…
…
2007-10-11 22:11:12 +02:00
…
…
…
…
…
…
…
…
…
…
…
2007-10-09 17:15:11 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:42:50 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:42:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-10-16 09:42:53 -07:00
…
…
…
…
…
…
2007-10-16 09:42:50 -07:00
…
…
…
…
…
2007-09-20 13:19:59 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-07-31 15:39:39 -07:00
…
2007-10-12 14:51:12 -07:00
…
…
…
2007-10-15 12:59:43 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-09-19 11:24:18 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…