linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: KOSAKI Motohiro <kosaki.motohiro@gmail.com>
Cc: linux-mm@kvack.org
Subject: RE: is there a "lru_cache_add_anon_tail"?
Date: Fri, 11 May 2012 09:21:10 -0700 (PDT)	[thread overview]
Message-ID: <fe3b936e-a670-4d8c-804e-faf1d2ea4741@default> (raw)
In-Reply-To: <CAHGf_=pDKciwPX4G0yJjzc0xmuqiSg=yHB20btJSYhN9cA7gug@mail.gmail.com>

> From: KOSAKI Motohiro [mailto:kosaki.motohiro@gmail.com]
> Subject: Re: is there a "lru_cache_add_anon_tail"?
> 
> On Thu, May 10, 2012 at 12:13 PM, Dan Magenheimer
> <dan.magenheimer@oracle.com> wrote:
> > (Still working on allowing zcache to "evict" swap pages...)
> >
> > Apologies if I got head/tail reversed as used by the
> > lru queues... the "directional sense" of the queues is
> > not obvious so I'll describe using different terminology...
> >
> > If I have an anon page and I would like to add it to
> > the "reclaim soonest" end of the queue instead of the
> > "most recently used so don't reclaim it for a long time"
> > end of the queue, does an equivalent function similar to
> > lru_cache_add_anon(page) exist?
> >
> 
> AFAIK, no exist.
> rotate_reclaimable_page() has similar requirement, but I doubt
> you can reuse it. maybe you need new function by yourself.

Thanks for the pointer!  It looks like I can extract
the code I need from there.
 
> But note, many people dislike add_anon_tail feature. -ck patch had
> swap prefetch patch and it made performance decrease. I'm not
> sure it is good improvemnt for zcache....

I understand.  I think it does make sense for this
usage in zcache but will describe it when I am ready
to post an RFC.

Thanks,
Dan

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2012-05-11 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10 16:13 is there a "lru_cache_add_anon_tail"? Dan Magenheimer
2012-05-10 17:32 ` KOSAKI Motohiro
2012-05-11 16:21   ` Dan Magenheimer [this message]
2012-05-11  0:34 ` Minchan Kim

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=fe3b936e-a670-4d8c-804e-faf1d2ea4741@default \
    --to=dan.magenheimer@oracle.com \
    --cc=kosaki.motohiro@gmail.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;
as well as URLs for NNTP newsgroup(s).