linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Prashanth C." <cprash@wipinfo.soft.net>
To: "Stephen C. Tweedie" <sct@redhat.com>
Cc: linux-mm@kvack.org
Subject: RE: kmem_cache_init() question
Date: Fri, 18 Jun 1999 09:48:33 +0530	[thread overview]
Message-ID: <000801beb941$a0b3e6f0$b7e0a8c0@prashanth.wipinfo.soft.net> (raw)
In-Reply-To: <14184.50648.347245.288706@dukat.scot.redhat.com>

> 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

Yes, it is a bug.  Infact I found this bug when I tried to print values of
few varibles in kmem_cache_init() using printk().  Since, I have just now
started getting familiar with the MM code, I was not sure if I was missing
something :)

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

      parent reply	other threads:[~1999-06-18  4:18 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
1999-06-17 13:20   ` Benjamin C.R. LaHaise
1999-06-18  4:18   ` Prashanth C. [this message]

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='000801beb941$a0b3e6f0$b7e0a8c0@prashanth.wipinfo.soft.net' \
    --to=cprash@wipinfo.soft.net \
    --cc=linux-mm@kvack.org \
    --cc=sct@redhat.com \
    /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