GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - writeboost/dm-writeboost: Log-structured Caching for Linux

BranchesTags
Open more actions menu

Latest commit

 

History

1,010 Commits
1,010 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
doc
doc
 
 
src
src
 
 
ChangeLog
ChangeLog
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
justfile
justfile
 
 

Repository files navigation

dm-writeboost

CI

Log-structured Caching for Linux

Overview

dm-writeboost is inspired by Disk Caching Disk (DCD). Originally implemented in Solaris, DCD is an OS-level I/O controller that groups incoming writes (data and metadata) into logs and writes them sequentially, much like a log-structured file system. dm-writeboost brings this approach to the Linux device-mapper framework and extends it with features such as read caching, which also writes cached data sequentially.

Documentation

  • Quickstart
  • Usage and reference
  • Internals
  • Wiki

Features

  • Durable: Each log contains data, metadata, and a checksum, allowing dm-writeboost to verify logs and recover a consistent cache state after a power failure.
  • SSD endurance: Batches data and metadata updates into a single log write, reducing how often write requests are submitted to the SSD.
  • Fast: Optimized for incoming random writes, which are combined into sequential writes to the cache device.
  • Portable: Requires Linux kernel 4.18 or later.

Usage

Install

Install DKMS using your distribution's package manager, then run sudo make install to install the module. Run sudo make uninstall to uninstall it. To uninstall a specific installed version, set MODULE_VERSION, for example: sudo make uninstall MODULE_VERSION=2.2.20.

Create a device

You can create a dm-writeboost device using either of these tools:

  • dmsetup: See the usage and reference guide for the device table format and setup instructions.
  • writeboost-cli create: Part of dm-writeboost-tools. See its create command documentation for examples.

You can optionally automate device creation with a script, including recreating the device mapping at boot.

Resume after a reboot

Recreate the device mapping using the same backing device, cache device, and settings, preserving the existing cache data. This allows dm-writeboost to replay the logs and restore the cache state. To resume an existing cache with writeboost-cli create, omit --reformat.

Distribution Packages

  • Debian
  • Ubuntu

Related Projects

  • dm-writeboost-tools: Tools for managing dm-writeboost devices and inspecting cache state, including writeboost-cli.
  • writeboost: A management tool with an init script.
  • device-mapper-tests: A testing framework written in Rust.

Related Work

  • Y. Hu and Q. Yang — DCD Disk Caching Disk: A New Approach for Boosting I/O Performance (1995).
  • G. Soundararajan et al. — Extending SSD Lifetimes with Disk-Based Write Caches (2010).
  • Y. Oh — SSD RAID as Cache (SRC) with Log-structured Approach for Performance and Reliability (2014).

Award

dm-writeboost received the Japanese OSS Encouragement Award. Thank you for your support!

License

Copyright (C) 2012-2026 Akira Hayakawa <[email protected]>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Developer Info

Akira Hayakawa (@akiradeveloper)

Email: [email protected]

About

Log-structured Caching for Linux

Topics

cachingdevice-mapperlinux-kernelssd

Resources

Readme
GPL-2.0 license
Activity
Custom properties

Stars

128 stars

Watchers

19 watching

Forks

22 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.