Compcache icon

Compcache For Linux

4.8/5 4
GPL    

Compressed in-memory swap device for Linux. #In-memory swap  #Swap disk  #Compressed swapped pages  #Compressed  #In-memory  #Swap  

Description

changelog

Free Download

Compcache is a tool that creates RAM based block device (named ramzswap) which acts as swap disk. Pages swapped to this disk are compressed and stored in memory itself.

Compressing pages and keeping them in RAM virtually increases its capacity. This allows more applications to fit in given amount of memory.

The usual argument I get is - memory is so cheap so why bother with compression? So I list here some of the use cases. Rest depends on your imagination.

* Netbooks: Market is now getting flooded with these "lighweight laptops". These are memory constrained but have CPU enough to drive on compressed memory (e.g. Cloudbook features 1.2 GHz processor!).

* Virtualization: With compcache at hypervisor level, we can compress any part of guest memory transparently - this is true for any type of Guest OS (Linux, Windows etc.). This should allow running more number of VMs for given amount of total host memory.

* Embedded Devices: Memory is scarce and adding more memory increases device cost. Also, flash storage suffers from wear-leveling issues, so its useful if we can avoid using them as swap device.

make'   - This will compile all modules against your kernel make doc  - This will compile rzscontrol manual page: sub-projects/rzscontrol/man/rzscontrol.1   - Optional (HIGHLY RECOMMENDED): - Apply the patch found in compcache/patches/ directory and just compile the kernel as usual. Currently, the patch is against 2.6.33 but it should apply to slightly older kernels too. This will enable 'swap free notify' feature which allows kernel to send callback to ramzswap as soon as a swap slot becomes free. We can immediately free memory allocated for this page, eliminating any stale data in (compressed) memory.  - Uncomment '#define CONFIG_SWAP_FREE_NOTIFY' in compcache/compat.h before compiling compcache against this patched kernel. Otherwise, this swap notify callback will not be used.

Following binaries are created: - ramzswap.ko (kernel driver) - sub-projects/rzscontrol/rzscontrol (userspace tool)

Following shows a typical sequence of steps for using ramzswap.

1) Load Modules:      # load dependency modules      modprobe lzo_compress      modprobe lzo_decompress

    # example1: load ramzswap module      insmod ramzswap.ko num_devices=4

This creates 4 devices (/dev/ramzswap{0,1,2,3}) which are left uninitialized.

    # example2: load ramzswap module and initialize the first device      insmod ramzswap.ko num_devices=4 disksize_kb=20480

This initializes first device (/dev/ramzswap0) with disksize of 20MB. Other 3 devices (/dev/ramzswap{1,2,3}) are left uninitialized.

2) Initialize: Use rzscontrol utility to configure and initialize individual ramzswap devices. Example:         rzscontrol /dev/ramzswap0 --init # uses default value of disksize_kb

*See rzscontrol manpage for more details and examples*

3) Activate: swapon /dev/ramzswap2 # or any other initialized ramzswap device

4) Stats: rzscontrol /dev/ramzswap2 --stats

5) Deactivate: swapoff /dev/ramzswap2

6) Reset:      rzscontrol /dev/ramzswap2 --reset

7) Unload Modules:      rmmod ramzswap      rmmod lzo_compress      rmmod lzo_decompress

- If you get lots of compiler errors, make sure you have the package for kernel source installed. For e.g., on Fedora its 'kernel-devel' package.

What's new in Compcache 0.6.2:

  • Sync-up with mainline version which includes changes below.
  • Lots and lots of cleanups.
  • Use small case for ramzswap module parameter: NUM_DEVICES -> num_devices.
  • Add three module parameters: backing_swap, memlimit_kb and disksize_kb to allow initializing the first device (/dev/ramzswap0) without using rzscontrol utility (see Issue #50).
Read the full changelog

Compcache 0.6.2

Softpedia Pick image  Softpedia Editor's Pick add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
compcache-0.6.2.tar.gz
  1 screenshot:
Compcache - screenshot #1
  main category:
System
  developer:
  visit homepage

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

% discount
calibre
  • calibre
  • Bitdefender Antivirus Free
  • Context Menu Manager
  • IrfanView
  • 7-Zip
  • Windows Sandbox Launcher
  • 4k Video Downloader
  • Microsoft Teams
  • ShareX
  • Zoom Client
essentials


Load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy