Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
kernel-compression [2022/12/19 00:21] – created snacsnockernel-compression [2022/12/19 05:03] – [rootfs compression: xz vs gzip] snacsnoc
Line 1: Line 1:
-Kernel compression methods:+Kernel compression methods and comparisons:
 GZIP, bzip2, LZMA, XZ, LZO,LZ4,ZSTD GZIP, bzip2, LZMA, XZ, LZO,LZ4,ZSTD
  
-x86 bzImage: + 
-XZ: +====== Size ====== 
-LZMA:+ 
 +  ls -s bzImage  
 +XZ:  
 +  4276 bzImage
 LZO: LZO:
 +  5988 arch/x86/boot/bzImage
 +LZMA:
 +  4584 arch/x86/boot/bzImage
 +
 +====== Compressing root build directory: ======
 +
 +
 +  [easto@cupcake][/opt/snacklinux_rootfs]$ find . -print | cpio -o -H newc --quiet | gzip -9 > rootfs.gz
 +  cpio: File ./rootfs.gz grew, 1048576 new bytes not copied
 +  [easto@cupcake][/opt/snacklinux_rootfs]$ ls -s rootfs.gz 
 +  7812 rootfs.gz
 +  [easto@cupcake][/opt/snacklinux_rootfs]$ find . -print | cpio -o -H newc --quiet | gzip > rootfs.gz
 +  cpio: File ./rootfs.gz grew, 1064960 new bytes not copied
 +  [easto@cupcake][/opt/snacklinux_rootfs]$ ls -s rootfs.gz 
 +  7852 rootfs.gz
 +  
 +
 +====== Speed: ======
 +
 +
 +  [easto@cupcake][~/snacklinux]$ cd /opt/snacklinux_rootfs/; time find . -print | cpio -o -H newc --quiet | gzip > /home/easto/snacklinux/rootfs.gz
 +  
 +  real    0m0.661s
 +  user    0m0.607s
 +  sys     0m0.052s
 +
 +  [easto@cupcake][/opt/snacklinux_rootfs]$ cd /opt/snacklinux_rootfs/; time find . -print | cpio -o -H newc --quiet | xz > /home/easto/snacklinux/rootfs.xz
 +  
 +  real    0m4.697s
 +  user    0m4.521s
 +  sys     0m0.162s