Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

cloop

From Wikipedia, the free encyclopedia
Linux kernel module
cloop
Original author(s)Rusty Russell
Developer(s)Klaus Knopper
Stable release
2.637-1 / 12 January 2011; 14 years ago (2011-01-12)
Size338 KB
TypeLoadable kernel module
LicenseGNU GPL v2[1]
Websiteknoppix.net/wiki/Cloop

Thecompressed loop device (cloop) is amodule for theLinux kernel. It adds support for transparently decompressed, read-onlyblock devices. It is not a compressedfile system: cloop is mostly used as a convenient way to compress conventional file systems ontoLive CDs.

Cloop was originally written for theLevanta Bootable Business Card byRusty Russell, but is now maintained byKlaus Knopper, the author ofKnoppix.

A compression ratio of about 2.5:1 is common for software. The Knoppix cloop image, for example, is 700 MB compressed and around 1.8 GB uncompressed.

Design

[edit]

cloop images contain:

  • Ashell script (with mount commands for the image)
  • A header with the number of blocks and the uncompressed block size
  • A seek index with compressed and uncompressed block sizes in pairs
  • zlib-compressed data blocks, packed end-to-end

The data blocks are compressed separately; this makes it possible to seek to individual blocks without having to decompress the entire image from the start, but at the cost of slightly reducing the compression ratio. Live CD images typically use a block size of 256 KB as a compromise between decompression speed and space-efficiency.

Apple uses a similar file format in the compressed variant of itsDMG disk images.

Limitations

[edit]

The design of the cloop driver requires that compressed blocks be read whole from disk. This makes cloop access inherently slower when there are many scattered reads, which can happen if the system is low on memory or when a large program with many shared libraries is starting. A big issue is the seek time for CD-ROM drives (~80 ms), which exceeds that of hard disks (~10 ms) by a large factor. On the other hand, because files are packed together, reading a compressed block may thus bring in more than one file into the cache. The effects of tail packing are known to improve seek times (cf.reiserfs,btrfs), especially for small files. Some performance tests related to cloop have been conducted.[2]

See also

[edit]

References

[edit]
  1. ^License stated in Readme in thetarballArchived 2012-03-07 at theWayback Machine.
  2. ^Cloop performance testing on a ThinkPad T61[dead link] 31-Dec-2011

External links

[edit]
Look upcloop in Wiktionary, the free dictionary.
  • cloopsources against the mainline Linux kernels and apatch to support any known cloop format. Note: versions 0.xx are for kernel 2.2; 1.xx are for kernel 2.4; 2.xx are for kernel 2.4 and 2.6.
  • cloop at Knoppix Linux Wiki (installation instructions are here)
  • Slides from a LinuxTagpresentation by Klaus Knopper on the implementation of cloop (in German).
  • Afuse driver for cloop with apatch (description) to support any known cloop format and thebinary.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Cloop&oldid=1266002664"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp