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. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  2. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  3. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
  4. Scythe Mugen MAX
Latest Linux Articles
  1. Preview: Radeon Gallium3D Performance For CS:GO On Linux
  2. XWayland Linux Gaming Performance With GNOME Wayland On Fedora 21
  3. EXT4/Btrfs/XFS/F2FS Benchmarks On Linux 3.17
  4. Fedora 21 Alpha First Impressions: It's Great
Latest Linux News
  1. Microsoft Announces... Windows 10 With A Start Menu
  2. Borderlands 2 Launches On Steam For Linux
  3. Debian Jessie Might Get Rid Of The kFreeBSD Port
  4. Fedora Might Try A New Scheduling Strategy For Its Releases
  5. AMD's Catalyst Working On A GLSL Shader Cache
  6. OpenMP 4.0 Offloading Is Closer For GCC 5
  7. Wayland Presentation Extension Added To Weston
  8. Intel Skylake Support Rolls Out To Mesa's DRM
  9. VA-API's Libva 1.4.0 Brings VP8 Encoding Support
  10. Operating System U Fails To Live Up To Its Goals
Latest Forum Discussions
  1. Advertisements On Phoronix
  2. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images
  3. FSF Issues Statement On Shellshock Bash Vulnerability
  4. New AMD Catalyst drivers out today
  5. Updated and Optimized Ubuntu Free Graphics Drivers
  6. Take the Steam Survey results with a grain of salt. It is flawed.
  7. AMD Wants To Know What's Wrong With Catalyst
  8. New Group Calls For Boycotting Systemd