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. The MSI X99S SLI PLUS Is Working & Running Well On Linux
  2. NVIDIA GeForce GTX 980: The Best GPU For Linux Gamers
  3. ROCCAT LUA: A Linux-Friendly Gaming Mouse
  4. Cheetah Mounts: The Affordable Way To Put Your TV On The Wall
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. Other Projects Participating In This Winter's Women Outreach Program
  2. Radeon 7.5 X.Org Driver Enables Hawaii, Adds New PCI IDs
  3. PHP As A Next-Generation Programming Language?
  4. Steam Linux Usage Rose 0.1% During September
  5. Understanding The Xen XSA-108 Security Issue
  6. Fedora 21 Workstation Is Making Great Progress
  7. Dash As The Default Shell For Fedora?
  8. CUPS Turn 15 Years Old, CUPS 2.0 Released
  9. VA-API Gallium3D State Tracker Added Back To Mesa
  10. Radeon DRM Gets New Information Ioctl Queries
Latest Forum Discussions
  1. Microsoft Announces... Windows 10 With A Start Menu
  2. Borderlands 2 Launches On Steam For Linux
  3. Take the Steam Survey results with a grain of salt. It is flawed.
  4. X.Org Is Looking For Some Female Help
  5. Hacking Express gate (Asus Splashtop)
  6. NVIDIA Alerts Nouveau: They're Starting To Sign/Validate GPU Firmware Images
  7. Updated and Optimized Ubuntu Free Graphics Drivers
  8. Nero CD/DVD Burning Software On Linux Is Dead