-
Senior Member
registered user
cloop and squashfs comparison
Below is a comparison of some of the interesting aspects of squashfs vs cloop when running on the ***SAME*** machine with 4G physical memory. Some details have been snipped for clarity :-
When using cloop kernel driver :-
Code:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 94G 33G 61G 36% /mnt-system
/dev/cloop 4.0G 4.0G 0 100% /KNOPPIX
/dev/loop0 2.4G 940M 1.5G 39% /KNOPPIX-DATA
....
# cat /proc/meminfo
MemTotal: 3588864 kB
MemFree: 3005164 kB
Buffers: 112860 kB
Cached: 303956 kB
SwapCached: 0 kB
Active: 220000 kB
Inactive: 294008 kB
....
# ls -al /mnt-system/KNOPPIX/KNOPPIX
-rwxrwxrwx 1 root root 1546036015 2010-06-16 22:36 /mnt-system/KNOPPIX/KNOPPIX
Here is the corresponding information when using squashfs :-
Code:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 94G 33G 61G 36% /mnt-system
/dev/loop0 1.4G 1.4G 0 100% /KNOPPIX
/dev/loop1 2.4G 939M 1.5G 39% /KNOPPIX-DATA
....
# cat /proc/meminfo
MemTotal: 3588864 kB
MemFree: 2927872 kB
Buffers: 178880 kB
Cached: 329248 kB
SwapCached: 0 kB
Active: 187076 kB
Inactive: 414508 kB
....
# ls -al /mnt-system/KNOPPIX/KNOPPIX.sq
-rwxrwxrwx 1 root root 1453662208 2010-06-16 23:09 /mnt-system/KNOPPIX/KNOPPIX.sq
Summary :-
1. cloop registers the need to use 4G of virtual memory on /dev/cloop, whereas squashfs registers the need for 1.4 G of virtual memory on /dev/loop0
2. squashfs compressed image is smaller by 100M when using the same compression algorithm and block size.
Cheers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Dell PowerEdge FX2s CTO Blade 4 Slot 2U Chassis 2x 2000W
$399.00
Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric
$139.99
DELL PEM640 POWEREDGE M640 BLADE SERVER
$539.95
Dell PowerEdge M640 Barebone Server Blade No Hard Drive Trays
$499.00
Dell PowerEdge M520 Blade Server Xeon E5-2403 NO HDD NO RAM
$45.00
HP Proliant BL460C Gen8 Blade Server 2x 8C E5-2690 192GB Ram
$58.23
Cisco B200 M4 Blade Server-No Ram
$50.00
Dell PowerEdge M820 4x Xeon E5-4600 Blade Barebone Server NO CPU RAM HDD CADDY
$199.89
DELL PowerEdge M630 Blade 2x E5-2660v4 2.0GHz =28 Cores 128GB H330 2x10Gb X520
$267.00
HP ProLiant BL460c Gen9 Blade 2x E5-2650v4 2.2GHz =24 Cores 128GB P246 650FLB
$261.00