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

CleanCache Merged Into The Linux Kernel

Linux Kernel

Published on 26 May 2011 03:18 PM EDT
Written by Michael Larabel in Linux Kernel
13 Comments

While the first Phoronix benchmarks of EXT4, Btrfs, and XFS on the Linux 2.6.39 kernel were just published this morning, an interesting change was just made for the next Linux kernel that will affect many of the file-systems living within the kernel. For what will be the Linux 2.6.40 kernel, or rather the Linux 3.0 kernel is the finally-merged support for CleanCache.

The CleanCache patch-set began as part of the Transcedent Memory patch-set more than one year ago (and discussed long before that), but with Linux 2.6.40/3.0 it's finally being merged. In fact, the patches just hit the Linus Torvalds Git tree in the past couple of hours. The documentation describes this CleanCache feature as:
This patchset introduces cleancache, an optional new feature exposed by the VFS layer that potentially dramatically increases page cache effectiveness for many workloads in many environments at a negligible cost. It does this by providing an interface to transcendent memory, which is memory/storage that is not otherwise visible to and/or directly addressable by the kernel.

Instead of being discarded, hooks in the reclaim code "put" clean pages to cleancache. Filesystems that "opt-in" may "get" pages from cleancache that were previously put, but pages in cleancache are "ephemeral", meaning they may disappear at any time. And the size of cleancache is entirely dynamic and unknowable to the kernel.

There's also this documentation file in the kernel for those wishing to learn more of the technical and implementation details. For the rest, CleanCache simply is designed to offer faster file-system performance. In particular, when there is high memory pressure there should be sizable improvements and for most workloads. "Basically cleancache replaces I/O with memory-copy-CPU-overhead; on older single-core systems with slow memory-copy speeds, cleancache has little value, but in newer multicore machines, especially consolidated/virtualized machines, it has great value."

As part of the push into the linux-2.6.git tree today, there is CleanCache support for the EXT3, EXT4, Btrfs, and OCFS2 file-systems. Other file-systems will also likely be supported in the future. Within the Xen area is also a CleanCache shim to the Transcendent Memory.

It should come as no surprise, but Linux CleanCache benchmarks will be published on Phoronix quite soon.

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. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. 7-Way Linux Desktop Gaming Comparison On Ubuntu 14.10
  2. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  3. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  4. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
Latest Linux News
  1. F2FS Tools Gain FSCK Support
  2. FreeBSD 10.1 Has The New VT Driver, Hardware Improvements
  3. AntiMicro 2.6 Yields Greater Compatibility For Gamepads On Linux
  4. OpenGL 3.3 / GLSL 3.30 Lands For Intel Sandy Bridge On Mesa
  5. AMD's RadeonSI Gallium3D Driver Sees Some Improvements
  6. Mesa 10.3 Released With The Latest Open-Source GPU Driver Improvements
  7. GNOME 3.13.92 Officially Released
  8. Wine 1.7.27 Is Still Working Towards Direct2D Support
  9. Wasteland 2 Officially Launched Today, Including For Linux Gamers
  10. Tropico 5 Launches On Steam For Linux
Latest Forum Discussions
  1. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  2. SSD seems slow
  3. Can Linux kill a motherboard?
  4. Stop grabbing my keyboard :(
  5. Glamor now enabled in Debian radeonsi
  6. New stress testing utility for GPU's
  7. New Group Calls For Boycotting Systemd
  8. It's Now Possible To Play Netflix Natively On Linux Without Wine Plug-Ins