Project Description

zswap [1] is a linux kernel component that provides in-memory compression for swap pages. It already provides a limited form of deduplication: if a page is filled with the same value (e.g. all-zeroes) then only that value is kept instead of compressing the contents.

This project proposes to enhance zswap with a more general and powerful dedup capability: pages that contain the same content (as identified by a checksum or hash value across the entire page contents) will be stored only once in the compressed pool.

This would be somewhat similar in spirit to what ksm [2] does, that is consolidation of identical pages of anonymous memory. There are some differences though, primarily ksm requires userspace to explicitly opt-in (via madvise/MADV_MERGEABLE) and operates on active pages that have not been selected for eviction from memory. On the other hand zswap operates transparently from the applications (it applies to all pages of anonymous memory that are on their way to swap).

Goal for this Hackweek

Have a first working POC.

Resources

Looking for hackers with the skills:

kernel

This project is part of:

Hack Week 21

Activity

  • 7 months ago: ailiopoulos liked this project.
  • 7 months ago: dmdiss liked this project.
  • 7 months ago: shunghsiyu liked this project.
  • 7 months ago: ailiopoulos added keyword "kernel" to this project.
  • 7 months ago: mbrugger liked this project.
  • 7 months ago: ailiopoulos started this project.
  • 7 months ago: ailiopoulos originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    Improve Qualcomm SOC msm8994/msm8992 kernel mainline support by pvorel

    Project Description

    Due previous hackweek...


    drgn: implement crash top-level commands by marxin

    Project Description

    The goal of the proje...


    Create a DRM driver for VGA video cards by tdz

    Yes, those [VGA video cards](https://en.wikiped...


    Explore Steam Deck issues in openSUSE Tumbleweed by tschmitz

    [comment]: # (Please use the project descriptio...


    Understand and review klp-convert patchset by mpdesouza

    [comment]: # (Please use the project descriptio...