From: Andrew Murray <amurray@mpcdata.com>
To: linux-mm@kvack.org
Subject: bootmem -> buddy allocator accounting
Date: Sat, 8 Jan 2011 22:56:55 +0000 [thread overview]
Message-ID: <AANLkTi=no+m+pan+5nyxMGb=gJkW8YctdUu+BCRLfk_2@mail.gmail.com> (raw)
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>
reply other threads:[~2011-01-08 22:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=no+m+pan+5nyxMGb=gJkW8YctdUu+BCRLfk_2@mail.gmail.com' \
--to=amurray@mpcdata.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox