Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
kernel-compression [2022/12/19 02:45] snacsnockernel-compression [2022/12/19 05:03] 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
  
  
 +====== Size ======
  
   ls -s bzImage    ls -s bzImage 
Line 10: Line 11:
   5988 arch/x86/boot/bzImage   5988 arch/x86/boot/bzImage
 LZMA: LZMA:
 +  4584 arch/x86/boot/bzImage
 +
 +====== Compressing root build directory: ======
  
  
Line 21: Line 25:
   7852 rootfs.gz   7852 rootfs.gz
      
-rootfs compression: xz vs gzip+====== rootfs compression: xz vs gzip ======
  
-[easto@cupcake][~/snacklinux]$ make TARGET=i486 iso + 
-cd /opt/snacklinux_rootfs/; find . -print | cpio -o -H newc --quiet | xz > /home/easto/snacklinux/rootfs.xz +  [easto@cupcake][~/snacklinux]$ make TARGET=i486 iso 
-wait +  cd /opt/snacklinux_rootfs/; find . -print | cpio -o -H newc --quiet | xz > /home/easto/snacklinux/rootfs.xz 
-mv rootfs.xz boot/isolinux +  wait 
-/usr/bin/genisoimage -l -J -R -input-charset utf-8 -b isolinux/isolinux.bin -c isolinux/boot.cat  -no-emul-boot -boot-load-size 4 -boot-info-table -o iso/snacklinux_i486_`date +'%d.%m.%y'`.iso boot +  mv rootfs.xz boot/isolinux 
-Size of boot image is 4 sectors -> No emulation +  /usr/bin/genisoimage -l -J -R -input-charset utf-8 -b isolinux/isolinux.bin -c isolinux/boot.cat  -no-emul-boot -boot-load-size 4 -boot-info-table -o   iso/snacklinux_i486_`date +'%d.%m.%y'`.iso boot 
- 92.50% done, estimate finish Mon Dec 19 02:44:43 2022 +  Size of boot image is 4 sectors -> No emulation 
-Total translation table size: 2048 +   92.50% done, estimate finish Mon Dec 19 02:44:43 2022 
-Total rockridge attributes bytes: 954 +  Total translation table size: 2048 
-Total directory bytes: 2408 +  Total rockridge attributes bytes: 954 
-Path table size(bytes): 26 +  Total directory bytes: 2408 
-Max brk space used 0 +  Path table size(bytes): 26 
-5414 extents written (10 MB)  +  Max brk space used 0 
 +  5414 extents written (10 MB)   
 + 
 + 
 +====== 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