linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Eugene Teo <eugeneteo@despammed.com>
Cc: eugene.teo@eugeneteo.net, linux-mm@kvack.org
Subject: Re: Code that does page outs
Date: Mon, 6 Oct 2003 00:02:01 -0700	[thread overview]
Message-ID: <20031006000201.1804ba97.pj@sgi.com> (raw)
In-Reply-To: <20031006063253.GA5231@despammed.com>

> I am looking for possible areas in the kernel code where ...

May I recommend to you the site:

   Cross-Referencing Linux
   http://lxr.linux.no

For example, start with an "identifier search" on one of the symbols you
identified, try_to_swap_out:

   http://lxr.linux.no/ident?i=try_to_swap_out

This page will show where it is defined, and what calls it. Examine the
code that defines try_to_swap_out().  Observe the critical between lines
133 and 148 of this file, vmscan.c. This is where it gets a free swap
entry, get_swap_page(), and assigns the current page to that entry,
add_to_swap_cache().

I would expect that any other piece of code that wants to swap is going
to use those same routines, get_swap_page(), and add_to_swap_cache(). 
Though examining these two routines in detail and what they call in turn
would help to verify that expectation.

Then continue using lxr.linux.no to see what else, if anything, calls
this pair of routines: get_swap_page(), and add_to_swap_cache().

This will lead you to any other paths, if any, to swapping a page.

-- 
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <pj@sgi.com> 1.650.933.1373
--
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-10-06  7:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-06  6:32 Eugene Teo
2003-10-06  7:02 ` Paul Jackson [this message]
2003-10-06  8:35   ` Eugene Teo

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=20031006000201.1804ba97.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=eugene.teo@eugeneteo.net \
    --cc=eugeneteo@despammed.com \
    --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