Re: Memory compression (again). . help?

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

 



On 2/28/06, John Richard Moser <[email protected]> wrote:
> Hmm, I can't see where the kernel checks to see which pages are least
> used. . . . anyone good with the VM can point me in the right direction?

The page reclaim code responsible for shrinking the LRUs code be found
in mm/vmscan.c. That file contains a lot of code, my recommendation to
you is to have a look at shrink_zone() which is responsible for
rotating and shrinking the active and inactive lists.

Also, If you want to compress pages that normally would be swapped
out, then I recommend you to have a look at the functions in
mm/swap_state.c and see how swap space gets allocated and freed.

If you need to know more about the Linux VM then I recommend you to
buy the excellent book "Understanding the Linux Virtual Memory
Manager" written by Mel Gorman, ISBN 0-13-145348-3. My copy of that
book covers Linux-2.4 and has some comments about 2.6 too.

/ magnus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux