The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* gzip vs. bzip2 (mainly de-)compression "benchmark"
@ 2002-05-06 17:58 Thunder from the hill
  2002-05-07  1:58 ` Mark Mielke
  0 siblings, 1 reply; 3+ messages in thread
From: Thunder from the hill @ 2002-05-06 17:58 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,

gzipping, bzip2ing a solaris disk image from my old sparc64 under alpha
(approx. 2 GiB) and relative load.
This has been done for testing purposes for those fiddling around with the 
kernel compression algorithms.

# ls -l ; ls -lh
-rw-r--r--    1 root     root   2164082688 May  5 04:41 old-root
-rw-r--r--    1 root     root         2.0G May  5 04:41 old-root

# time gzip -9n old-root
9035.15user 119.40system 11:38:12elapsed 21%CPU
(0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (166major+112minor)pagefaults 0swaps

# ls -l ; ls -lh
-rw-r--r--    1 65534    65534   546148165 May  2 11:30 old-root.gz
-rw-r--r--    1 65534    65534        521M May  2 11:30 old-root.gz

# time gzip -cd old-root.gz > /dev/null
134.11user 66.22system 10:42.91elapsed 31%CPU
(0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (102major+37minor)pagefaults 0swaps

# time bzip2 -9z old-root
(Unfortunately crashed shortly after completion when I modprobed khttpd and
tried to make a connection. I can redo that if you are interested in the
results, but I tell you it took some time... user was in the 11,000 I 
remember.)

# ls -l ; ls -lh
-rw-r--r--    1 root     root    496780930 May  5 04:41 old-root.bz2
-rw-r--r--    1 root     root         474M May  5 04:41 old-root.bz2

# time bzip2 -cdk old-root.bz2 > /dev/null
1010.44user 33.15system 58:12.14elapsed 29%CPU
(0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (117major+914minor)pagefaults 0swaps

Penguin: Linux 2.4.8 (didn't have time to compile the latest here) on an
	 Alpha 300, 384 MiB RAM. Meanwhile someone was compiling Redhat
	 Package Manager v4.1, later the Linux Kernel v2.4 repository.

Regards,
Thunder
-- 
if (errno == ENOTAVAIL)
    fprintf(stderr, "Error: Talking to Microsoft server!\n");


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: gzip vs. bzip2 (mainly de-)compression "benchmark"
@ 2002-05-07 15:44 Peter Samuelson
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Samuelson @ 2002-05-07 15:44 UTC (permalink / raw)
  To: Mark Mielke; +Cc: linux-kernel


[Mark Mielke]
> For floppy disks, it is doubtful that the image could be read off the
> floppy faster than even older computers could un-bzip2 the images,
> meaning that execution time is irrelevant in this context.

Well, first, the disk reads are performed by the boot loader, so to run
the two steps concurrently you'd have to do the decompression stage in
the boot loader as well.  In which case what you really want is an
uncompressed image format, bzip2'd after the fact.  A hypothetical
bImage.bz2, if you will.

The other problem with your statement is that bzip2 (unlike gzip) is
block-oriented: you can't start until you have a pretty big chunk of
the input data.  (I could be wrong, but I believe you need the same
block size you compressed with - whatever 900k compresses to, in the
case of maximum compression.)  So that would limit the amount of
parallelisation you could get within LILO anyway.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-07 15:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-06 17:58 gzip vs. bzip2 (mainly de-)compression "benchmark" Thunder from the hill
2002-05-07  1:58 ` Mark Mielke
  -- strict thread matches above, loose matches on Subject: below --
2002-05-07 15:44 Peter Samuelson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox