[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fairness in love and swapping
On Thu, 26 Feb 1998, Dr. Werner Fink wrote:
> There is one point more which makes ageing a bit unfair. In
> include/linux/pagemap.h PAGE_AGE_VALUE is defined to 16 which is used in
> __add_page_to_hash_queue() to set the age of a hashed page ... IMHO only
> touch_page() should be used. Nevertheless a static value of 16
> breaks the dynamic manner of swap control via /proc/sys/vm/swapctl
Without my mmap-age patch, page cache pages aren't aged
at all... They're just freed whenever they weren't referenced
since the last scan. The PAGE_AGE_VALUE is quite useless IMO
(but I could be wrong, Stephen?).
Rik.
+-----------------------------+------------------------------+
| For Linux mm-patches, go to | "I'm busy managing memory.." |
| my homepage (via LinuxHQ). | H.H.vanRiel@fys.ruu.nl |
| ...submissions welcome... | http://www.fys.ruu.nl/~riel/ |
+-----------------------------+------------------------------+