Ktoś mi to może wytłumaczy...
Tomasz Wittner
lists w mmt.pl
Sob, 31 Lip 2004, 12:01:33 CEST
On Saturday 31 of July 2004 11:06, Mariusz Mazur wrote:
[...]
> Znaczy poldek żre pamięć, rpm przy odpalaniu także. Siuper.
$ rm -f comp.tst;for a in /sbin/*;do cat $a >> comp.tst;done;ls -l comp.tst;time bzip2 -k comp.tst;ls -l comp.tst.bz2;time gzip comp.tst;ls -l comp.tst.gz;time bzip2 -d comp.tst.bz2;rm comp.tst;time gzip -d comp.tst.gz
cat: /sbin/mgetty: Brak dostępu
cat: /sbin/pam_filter: Jest katalogiem
-rw------- 1 inter users 11745720 2004-07-31 11:42 comp.tst
bzip2 -k comp.tst 11.55s user 0.31s system 82% cpu 14.320 total
-rw------- 1 inter users 4667786 2004-07-31 11:42 comp.tst.bz2
gzip comp.tst 3.46s user 0.18s system 86% cpu 4.229 total
-rw------- 1 inter users 5256337 2004-07-31 11:42 comp.tst.gz
bzip2 -d comp.tst.bz2 3.90s user 0.32s system 85% cpu 4.930 total
gzip -d comp.tst.gz 0.32s user 0.14s system 81% cpu 0.565 total
Pamięć - nie wiem, jak to zmierzyć - odpaliłem top'a na drugiej konsole, VIRT/RES (to samo):
komp.: bzip2/gzip 6904/604
dekomp: bzip2/gzip 4000/400
Coś większego:
$ rm -f comp.tst;for a in /usr/sbin/*;do cat $a >> comp.tst;done;ls -l comp.tst;time bzip2 -k comp.tst;ls -l comp.tst.bz2;time gzip comp.tst;ls -l comp.tst.gz;time bzip2 -d comp.tst.bz2;rm comp.tst;time gzip -d comp.tst.gz
cat: /usr/sbin/opieftpd: Brak dostępu
-rw------- 1 inter users 20253889 2004-07-31 11:46 comp.tst
bzip2 -k comp.tst 20.05s user 0.48s system 83% cpu 24.710 total
-rw------- 1 inter users 7085865 2004-07-31 11:46 comp.tst.bz2
gzip comp.tst 5.85s user 0.34s system 85% cpu 7.257 total
-rw------- 1 inter users 8155996 2004-07-31 11:46 comp.tst.gz
bzip2 -d comp.tst.bz2 6.41s user 0.54s system 82% cpu 8.433 total
gzip -d comp.tst.gz 0.54s user 0.19s system 71% cpu 1.017 total
$ rm -f comp.tst;for a in /usr/bin/*;do cat $a >> comp.tst;done;ls -l comp.tst;time bzip2 -k comp.tst;ls -l comp.tst.bz2;time gzip comp.tst;ls -l comp.tst.gz;time bzip2 -d comp.tst.bz2;rm comp.tst;time gzip -d comp.tst.gz
[...]
-rw------- 1 inter users 186324440 2004-07-31 11:47 comp.tst
bzip2 -k comp.tst 194.47s user 5.57s system 75% cpu 4:23.86 total
-rw------- 1 inter users 66004104 2004-07-31 11:47 comp.tst.bz2
gzip comp.tst 51.03s user 3.58s system 77% cpu 1:10.84 total
-rw------- 1 inter users 73073945 2004-07-31 11:47 comp.tst.gz
bzip2 -d comp.tst.bz2 57.36s user 4.16s system 77% cpu 1:19.82 total
gzip -d comp.tst.gz 4.81s user 2.18s system 40% cpu 17.136 total
komp.: bzip2/gzip 7880/620
dekomp: bzip2/gzip 4004/440
Ja zrobiłem jakieś tam testy - ich analizę i wnioski pozostawiam innym.
--
Tomasz Wittner
Więcej informacji o liście dyskusyjnej pld-devel-pl