linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Anand Eswaran <aeswaran@andrew.cmu.edu>, Linux-MM@kvack.org
Subject: Re: Free list initialization
Date: Wed, 06 Aug 2003 16:12:46 -0700	[thread overview]
Message-ID: <739780000.1060211566@flay> (raw)
In-Reply-To: <2110.128.2.222.155.1060209130.squirrel@webmail.andrew.cmu.edu>

>   Could anybody point me out to the part of the mm code where the  zone
> free-lists are initialized to the remaining system memory  just
> subsequent to setting up of the zone structures . ( so that  say when
> the very first time _alloc_pages executes, the system can use (
> __alloc_pages ()  ->   rmqueue()  free-list to allocate the required
> memory block.
> 
>   I dont seem to be able to find any such code in free_area_init_core().
> 
>   Im using a 2.4.18 kernel.

Suggest you start at free_all_bootmem. IIRC, basically we just call a 
free on every page we have, and the normal buddy free routines populate
the lists. Not very efficient, but who cares? ... it's boottime! ;-)

M.

--
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/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2003-08-06 23:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 22:32 Anand Eswaran
2003-08-06 23:12 ` Martin J. Bligh [this message]
2003-08-06 23:49   ` William Lee Irwin III
2003-08-07 11:51 ` Mel Gorman

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=739780000.1060211566@flay \
    --to=mbligh@aracnet.com \
    --cc=Linux-MM@kvack.org \
    --cc=aeswaran@andrew.cmu.edu \
    /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