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

Frontswap Still Not Ready For Linux 3.3 Kernel

Linux Kernel

Published on 13 January 2012 08:24 AM EST
Written by Michael Larabel in Linux Kernel
Comment On This Article

While the Frontswap patches with Cleancache have been available for several Linux kernel release cycles, the Frontswap support still hasn't been merged. Another Oracle developer is now taking over maintenance of Cleancache and getting Frontswap finally ready for merging, but it's too late for the Linux 3.3 kernel.

Cleancache was merged into the Linux kernel last May for the 3.0 release, but the Frontswap support is still missing in action as the work is more controversial.

Cleancache is just about dealing with clean pages and not providing any guarantee they are available later on, but Frontswap is dealing with dirty pages and must guarantee the memory pages are available for retrival later on. This support is especially looked after in virtualization environments. See this article by LWN for a full description on Cleancache and Frontswap for the Linux kernel, which make up the transcendent memory support.

Below is also some additional Frontswap/Cleancache information from its developer in an earlier mailing list posting.
Frontswap is the alter ego of cleancache, the "yang" to cleancache's "yin"... and more precisely frontswap is the provider of anonymous pages to transcendent memory to nicely complement cleancache's providing of clean pagecache pages to transcendent memory. For optimal use of transcendent memory, both are necessary... because a kernel under memory pressure first reclaims clean pagecache pages and, when under more memory pressure, starts swapping anonymous pages.
...
Frontswap code was first posted publicly in January 2009 and on LKML in May 2009, and has remained very stable for over two years now. It is barely invasive, touching only the swap subsystem and adds only about 100 lines of code to existing swap subsystem code files. It has improved syntactically substantially between V1 and this posting of V10, thanks to the review of a few kernel developers, and has adapted easily to at least one major swap subsystem change. As of 3.1, there are two in-tree users of frontswap patiently waiting for this patchset and for CONFIG_FRONTSWAP to be enabled: zcache (staging driver merged at 2.6.39) and Xen tmem (merged at 3.0 and 3.1).

Frontswap is already used by Zcache and Xen virtualization while also working on Frontswap support is the RAMster and KVM projects. The patches had been living in the linux-next tree for most of last year, but have yet to to make it into the mainline tree of Linus Torvalds.

Frontswap was queued up most recently for pulling into the Linux 3.2 kernel, but it didn't make it in due to a range of criticism it received. No attempt was made for the Linux 3.3 kernel, but now there's another developer taking over the work.

Dan Magenheimer, an engineer at Oracle, was responsible for creating Cleancache and Frontswap. Now, however, he seems to be handing off the reigns. Konrad Rzeszutek Wilk, a fellow Oracle engineer with Linux kernel memory management experience, is now taking over this code.

"I am taking the role of maintaining the cleancache and working on making the frontswap patches acceptable for the upstream tree. As this is merge window season, I've made the #linux-next branch be empty, but once the v3.3-rc1 branch is tagged I will start cracking on the patches," wrote Konrad Rzeszutek Wilk to the kernel mailing list yesterday.

Maybe we will finally see the Frontswap support -- the second part of Linux transcendent memory -- merged for the Linux 3.4 kernel in just a few months. This code is already being shipped by openSUSE, Oracle Linux, and others.

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. MSI X99S SLI PLUS On Linux
  2. NVIDIA GeForce GTX 970 Offers Great Linux Performance
  3. CompuLab Intense-PC2: An Excellent, Fanless, Mini PC Powered By Intel's i7 Haswell
  4. From The Atom 330 To Haswell ULT: Intel Linux Performance Benchmarks
Latest Linux Articles
  1. Open-Source Radeon 2D Performance Is Better With Ubuntu 14.10
  2. RunAbove: A POWER8 Compute Cloud With Offerings Up To 176 Threads
  3. 6-Way Ubuntu 14.10 Linux Desktop Benchmarks
  4. Ubuntu 14.10 XMir System Compositor Benchmarks
Latest Linux News
  1. Dead Island GOTY Now Available On Linux/SteamOS
  2. Ubuntu 14.04 In The Power8 Cloud From RunAbove
  3. KDE With Theoretical Client-Side Decorations, Windows 10 Influence
  4. Sandusky Lee: Great Cabinets For Storing All Your Computer Gear
  5. Fedora 21 Beta & Final Release Slip Further
  6. Mesa 10.3.2 Has A Couple Bug-Fixes
  7. RadeonSI/R600g HyperZ Support Gets Turned Back On
  8. openSUSE Factory & Tumbleweed Are Merging
  9. More Fedora Delays: Fedora 21 Beta Slips
  10. Mono Brings C# To The Unreal Engine 4
Latest Forum Discussions
  1. HOPE: The Ease Of Python With The Speed Of C++
  2. Use Ubuntu MATE 14.10 Make it an official distro.
  3. Users/Developers Threatening Fork Of Debian GNU/Linux
  4. Debian Is Back To Discussing Init Systems, Freedom of Choice
  5. AMD Radeon VDPAU Video Performance With Gallium3D
  6. Updated and Optimized Ubuntu Free Graphics Drivers
  7. Ubuntu 16.04 Might Be The Distribution's Last 32-Bit Release
  8. Linux hacker compares Solaris kernel code: