Re: Page Replacement in 2.6.10

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

 



On Tue, 22 Mar 2005, Rahul Iyer wrote:

> In one of the earlier CART threads, you had mentioned that you had a way of
> representing each non resident page by a 32 bit value. Could you please
> elaborate on this? I haven't given too much thought on this, but i was
> thinking of a 64 bit value... upper 32 bits being pid and lower 32 being the
> virtual address. Would this work?

Pid doesn't seem like the best idea, since you also need
to represent page cache, and page cache files do not have
a PID.  You also need to remember whether the page was on
the "frequency" or "recency" list.

64 bits should indeed be enough for all of this ;)

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux