[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fairness in love and swapping
>
> > 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?).
The age of a page cache page isn't changed if a process took it (?). IMHO that
means that this age is the starting age of such a process page, isn't it?
Maybe it would be a win if the initial page age, the increase and decrease
amount for the page age depends on the priority or the amount of
the time slice of the owner process(es).
Werner