Results 1 to 6 of 6

Thread: Linux Zswap Still Aiming For Compressed Swap Caching

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    14,793

    Default Linux Zswap Still Aiming For Compressed Swap Caching

    Phoronix: Linux Zswap Still Aiming For Compressed Swap Caching

    A second version of the Zswap patch-set for the Linux kernel was published this week. The Zswap patches provide compressed swap caching support to compress pages in the process of being swapped and compresses them into a dynamically allocated RAM-backed memory pool...

    http://www.phoronix.com/vr.php?view=MTI3MTA

  2. #2
    Join Date
    Oct 2012
    Location
    Cologne, Germany
    Posts
    308

    Exclamation

    TBH, I really never saw the purpose of swap-caches.
    Before you start a rant, I want to clear up that, when you have enough RAM, you don't really need a Swap-Partition.
    Moreover, it wears out SSD-drives which should be avoided. Considering memory has turned very cheap in the last few years, I myself really recommend you to just buy your 16Gb-sticks and are good to go without putting to much IO-load on your hard-drive.
    Even when you use a distribution like Gentoo, you can easily turn the Makeopts to 8 simultaneous tasks (on i7) without reaching the memory limit (only 8 Gb Max.).

    Nevertheless, compressing the swap-file is a great concept and I am looking forward to what it will bring.

    If you have a completely different opinion on this topic, please let me know!

  3. #3
    Join Date
    Jan 2012
    Posts
    180

    Default

    This is definitely a good technology, if it works. I have no idea of the amount of code this adds to the kernel, and how critical sneaky bugs it may yield. And more code = more errors.

    Also,

    Some of us have laptops and cannot upgrade the memory since there aren't enough slots.
    You could always swap the old ones for bigger ones?

  4. #4
    Join Date
    Aug 2012
    Location
    Pennsylvania, United States
    Posts
    1,889

    Default

    Quote Originally Posted by varikonniemi View Post
    You could always swap the old ones for bigger ones?

    Some (like mine) are soldered to the board, yay ultrabooks

  5. #5
    Join Date
    Dec 2008
    Location
    San Bernardino, CA
    Posts
    232

    Default

    Can someone with some insight relate how Zswap differs from zRam? Sounds like the only difference is zSwap compresses memory as its being written to swap (if I understand correctly), while zRam uses a separate "compressed ram swap" before falling back to the standard swap...

  6. #6

    Default

    Quote Originally Posted by gururise View Post
    Can someone with some insight relate how Zswap differs from zRam? Sounds like the only difference is zSwap compresses memory as its being written to swap (if I understand correctly), while zRam uses a separate "compressed ram swap" before falling back to the standard swap...
    See also the comment here:
    https://www.ibm.com/developerworks/m...ality7?lang=en

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •