LWN.net Logo

Compcache: in-memory compressed swapping

Compcache: in-memory compressed swapping

Posted May 29, 2009 4:29 UTC (Fri) by nitingupta (subscriber, #53817)
In reply to: Compcache: in-memory compressed swapping by jimparis
Parent article: Compcache: in-memory compressed swapping

How does compcache differ in concept from, say:

> - use mtdram driver to make a MTD device out of ram

mtdram driver simply simulates MTD device in ram - no compression and no memory management (it simply preallocates all the memory). Also, there are unnecessary overheads involved -- simulate erasing eraseblock and such.

> - use jffs2 with compression enabled on the new mtd device
> - put a swapfile on that filesystem and swap to it

Base for this indirection hierarchy is the in-ram mtd device which has problems mentioned above. Also, as amikims pointed out, additional levels of indirection means more overhead.


(Log in to post comments)

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