From: "Prashanth C." <cprash@wipinfo.soft.net>
To: linux-mm@kvack.org
Subject: kmem_cache_init() question
Date: Tue, 15 Jun 1999 13:39:12 +0530 [thread overview]
Message-ID: <000001beb706$5a8b06a0$b7e0a8c0@prashanth.wipinfo.soft.net> (raw)
Hi All,
This question is with reference to following segment of code [ver 2.2.9] in
kmem_cache_init() function (mm/slab.c):
if (num_physpages > (32 << 20) >> PAGE_SHIFT)
slab_break_gfp_order = SLAB_BREAK_GFP_ORDER_HI;
I found that num_physpages is initialized in mem_init() function
(arch/i386/mm/init.c). But start_kernel() calls kmem_cache_init() before
mem_init(). So, num_physpages will always(?) be zero when the above code
segment is executed.
Is num_physpages is initialized somewhere else before kmem_cache_init() is
called by start_kernel()? Please let me know if I am missing something [if
my observation is indeed correct, then slab_break_gfp_order will never be
set to SLAB_BREAK_GFP_ORDER_HI].
Thanks a lot.
Prashanth.
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next reply other threads:[~1999-06-15 18:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-15 8:09 Prashanth C. [this message]
1999-06-15 15:31 ` Benjamin C.R. LaHaise
1999-06-17 9:54 ` Stephen C. Tweedie
1999-06-17 13:20 ` Benjamin C.R. LaHaise
1999-06-18 4:18 ` Prashanth C.
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='000001beb706$5a8b06a0$b7e0a8c0@prashanth.wipinfo.soft.net' \
--to=cprash@wipinfo.soft.net \
--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