linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Raghu R Arur <rra2002@columbia.edu>
Cc: linux-mm@kvack.org
Subject: Re: shrink_caches()
Date: Fri, 27 Jun 2003 21:35:35 -0700	[thread overview]
Message-ID: <20030627213535.56c0ab4a.akpm@digeo.com> (raw)
In-Reply-To: <Pine.GSO.4.50.0306261315060.26256-100000@aloha.cc.columbia.edu>

Raghu R Arur <rra2002@columbia.edu> wrote:
>
> I was going thru the code of shrink_caches(). it returns the difference
>  between the number of pages requested to be freed and the number of pages
>  that were actually freed. What i see over here is that the nr_pages which
>  is the return value, is decremented only when the pages are freed from
>  slab cache and page cache. The value is not decremented when the pages get
>  freed from dentry cache, inode cache or the quota cache, which are freed
>  at high memory pressure times. So when no pages get freed from page cache,
>  but get freed from dentry/inode caches we will be returning a value which
>  says that no pages were freed. Why is this done? can you PLEASE explain me
>  this.

yes, it is an oversight.    it's fixed in 2.5.
--
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-06-28  4:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-26 17:21 shrink_caches() Raghu R Arur
2003-06-28  4:35 ` Andrew Morton [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=20030627213535.56c0ab4a.akpm@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-mm@kvack.org \
    --cc=rra2002@columbia.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