linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* kmem_cache_init() question
@ 1999-06-15  8:09 Prashanth C.
  1999-06-15 15:31 ` Benjamin C.R. LaHaise
  1999-06-17  9:54 ` Stephen C. Tweedie
  0 siblings, 2 replies; 5+ messages in thread
From: Prashanth C. @ 1999-06-15  8:09 UTC (permalink / raw)
  To: linux-mm

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-06-18  4:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-15  8:09 kmem_cache_init() question Prashanth C.
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.

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