linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Ed Tomlinson <tomlins@cam.org>
Cc: linux-mm@kvack.org
Subject: Re: slablru for 2.5.32-mm1
Date: Mon, 02 Sep 2002 12:51:58 -0700	[thread overview]
Message-ID: <3D73C15E.1FE79B33@zip.com.au> (raw)
In-Reply-To: <200209021509.52216.tomlins@cam.org>

Ed Tomlinson wrote:
> 
> ...
> I thought about doing something like your patch.  I wanted to avoid
> semi-magic numbers (why a page worth of objects?  why not two or
> three...).

Well, it's just an efficiency heuristic...

>  I would rather see something like my patch, maybe coded
> in a more stylish way, used.  If we want to get bigger batch I would
> move the kmem_do_prunes up into try_to_free_pages.  This way the
> code is simpler, vmscan changes for slablru are smaller, and nothing
> magic is involved.

Doesn't make much difference, afaict.   Generally, the first pass
through shrink_caches() frees a sufficient number of pages, so
the before- and after- code are equivalent.

And because there is only one flag, we still attempt to prune all
caches which have a pruner, when it's quite possible that just one
of them has a decent amount of stuff.  Probably a minor issue though.

I wouldn't be too fussed about the extent of changes in vmscan.c.
One day, when the kernel is perfect, all of that file will have the
inlines turned on and the whole of page reclaim becomes one big
function.
--
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/

  reply	other threads:[~2002-09-02 19:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26 22:09 MM patches against 2.5.31 Ed Tomlinson
2002-08-26 23:58 ` Andrew Morton
2002-08-27  0:13   ` Rik van Riel
2002-08-28 17:06   ` slablru for 2.5.32-mm1 Ed Tomlinson
2002-08-28 21:24     ` Andrew Morton
2002-08-28 22:23       ` Rik van Riel
2002-09-02  5:26     ` Andrew Morton
2002-09-02 15:00       ` Ed Tomlinson
2002-09-02 18:35         ` Andrew Morton
2002-09-02 19:09           ` Ed Tomlinson
2002-09-02 19:51             ` Andrew Morton [this message]
2002-09-02  6:50     ` Andrew Morton
2002-08-28 22:11 Ed Tomlinson
2002-09-06  4:07 Craig Kulesa
2002-09-06  4:24 ` Robert Love
2002-09-08 21:43   ` Daniel Phillips
2002-09-09  4:36     ` Robert Love
2002-09-09  5:10       ` Daniel Phillips
2002-09-06  4:38 ` Andrew Morton
2002-09-06 11:39   ` Ed Tomlinson
2002-09-06 18:57     ` Craig Kulesa

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=3D73C15E.1FE79B33@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-mm@kvack.org \
    --cc=tomlins@cam.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