linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: cprash@wipinfo.soft.net
Cc: linux-mm@kvack.org, Stephen Tweedie <sct@redhat.com>
Subject: Re: kmem_cache_init() question
Date: Thu, 17 Jun 1999 10:54:32 +0100 (BST)	[thread overview]
Message-ID: <14184.50648.347245.288706@dukat.scot.redhat.com> (raw)
In-Reply-To: <000001beb706$5a8b06a0$b7e0a8c0@prashanth.wipinfo.soft.net>

Hi,

On Tue, 15 Jun 1999 13:39:12 +0530, "Prashanth C."
<cprash@wipinfo.soft.net> said:

> 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()?  

The great thing about having all the source code is that if you can't
instantly find the answer to such a question just by searching code, it
takes no time at all to add a 

	printk ("num_physpages is now %lu\n", num_physpages);

to init.c to find out for yourself. :)

And if this turns out to be a real bug, do let us know...

--Stephen
--
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/

  parent reply	other threads:[~1999-06-17  9:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-15  8:09 Prashanth C.
1999-06-15 15:31 ` Benjamin C.R. LaHaise
1999-06-17  9:54 ` Stephen C. Tweedie [this message]
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=14184.50648.347245.288706@dukat.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=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