bootmem -> buddy allocator accounting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx  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@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]