Re: is there a "lru_cache_add_anon_tail"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 10, 2012 at 12:13 PM, Dan Magenheimer
<dan.magenheimer@xxxxxxxxxx> 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.

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....

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  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@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]