User: Password:
Subscribe / Log in / New account

In-kernel memory compression

In-kernel memory compression

Posted Apr 6, 2013 23:28 UTC (Sat) by djm1021 (guest, #31130)
In reply to: In-kernel memory compression by jospoortvliet
Parent article: In-kernel memory compression

Uncompressed. Pages in the page cache are usually mapped into processes so must be uncompressed. When kswapd decides to evict (reclaim) a page from the page cache, the page either goes the cleancache->zcache route or filesystem->blockio route. For the former, the page is compressed and kept in RAM, for the latter it is compressed by btrfs before being sent to blockio and to the disk. (Note I am somewhat ignorant of btrfs internals so btrfs experts can correct me if I got the btrfs part wrong.)

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds