linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* bootmem -> buddy allocator accounting
@ 2011-01-08 22:56 Andrew Murray
  0 siblings, 0 replies; only message in thread
From: Andrew Murray @ 2011-01-08 22:56 UTC (permalink / raw)
  To: linux-mm

Hello,

I've added instrumentation into mm/bootm.c __free and __reserve
functions to report how many accumulative pages the bootmem allocator
reserves prior to the zone allocator. I had expected this figure
multiplied by the page size to equal the 'reserved' figure in the
'Memory: 126604k/126604k available, 4468k reserved, 0K highmem' line.
However this seems to be 'out by one'.

I'm using the latest stable kernel.org kernel, with
versatile_defconfig (ARM) - it seems that the figure reported by
arch/arm/mm/init.c (mem_init) - reports the reserved pages - via the
PageReserved macro's - a page size smaller (4468k) than that found via
my instrumentation (4472k).

Is a page being lost somewhere? not accounted for? or is it being
reserved elsewhere?

Many Thanks,

Andrew Murray

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-08 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-08 22:56 bootmem -> buddy allocator accounting Andrew Murray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox