1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Zswap Merged Into The Linux 3.11 Kernel

Free Software

Published on 11 July 2013 01:31 AM EDT
Written by Michael Larabel in Free Software
10 Comments

Zswap is a feature for the Linux kernel that provides compressed swap caching. It's been in development for a long time and was finally merged into the mainline Linux kernel for the 3.11 release.

Making the Linux 3.11 kernel an even more exciting release was the merger on Wednesday of the Zswap support. Per the Linux kernel documentation, "Zswap is a lightweight compressed cache for swap pages. It takes pages that are in the process of being swapped out and attempts to compress them into a dynamically allocated RAM-based memory pool. zswap basically trades CPU cycles for potentially reduced swap I/O. This trade-off can also result in a significant performance improvement if reads from the compressed cache are faster than reads from a swap device."

Among potentially beneficial scenarios are desktop/laptops with limited RAM, overcommitted virtualization guests sharing common I/O resources, and users with SSDs as swap devices can extend their devices life by shortening writes. With the Kconfig ZSWAP support for Zswap enabled, it's just a matter of setting zswap.enabled=1 as a kernel module parameter.

As part of the Zswap work, Zbud was also added to the kernel tree for 3.11. Zbud is a special purpose memory allocator for storing compressed pages. This allocator is a rewrite of the Zbud code found in Zcache.

The merge to mainline of Zswap happened with this commit. "Zswap is a thin backend for frontswap that takes pages that are in the process of being swapped out and attempts to compress them and store them in a RAM-based memory pool."

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. ASRock X99 Extreme3 Is An Affordable Choice For Linux Users
  2. A Walkthrough Of The New 32 System Open-Source Linux Benchmarking Test Farm
  3. Habey MITX-6771: Mini-ITX Board With Quad-Core J1900 Bay Trail
  4. OCZ Vector 150 SSD On Linux
Latest Linux Articles
  1. 2014 Year-End NVIDIA Linux Benchmark Comparison
  2. 2014 Catalyst Linux Graphics Benchmarks Year-In-Review
  3. 17-Way Linux Graphics Card Comparison With Civilization Beyond Earth
  4. AMD Kaveri: Open-Source Radeon Gallium3D vs. Catalyst 14.12 Omega Driver
Latest Linux News
  1. Valve Optimizations, D3D9 & GL4 Topped Mesa This Year
  2. Minetest 0.4.11 Released As Open-Source Alternative To Minecraft
  3. SPI Hasn't Yet Voted On X.Org As An Associated Project
  4. The Most Controversial Systemd Stories This Year
  5. Mode-Setting Driver Now Supports VBlanks With Present
  6. Marvell Releases New Open-Source 802.11ac WiFi Driver
  7. The Most Popular Ubuntu News Of 2014
  8. GNU Binutils 2.25 Released With Port To Andes NDS32
  9. Merry Christmas & Happy Holidays 2014
  10. OpenMW 0.34 Released With Many Changes
Latest Forum Discussions
  1. Why is it that Radeon cannot run good old (ancient) Doom 3 engine games?
  2. MONITORed values : possible to force the time interval between two measurements ?
  3. Debian init discussion in Phoenix Wright format
  4. Need some hand holding with upgrading xserver
  5. Aliens vs predator for Linux
  6. FPS capped on Linux (AMD fglrx drivers)
  7. Speeding up systemd networking service
  8. Storm Engine 2 (Doom 3 BFG GPL fork) got entry on IndieDb