bsdtar eats CPU when extracting POSIX tar archive

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Mon, 23 Aug 2004 19:07:03 +0900
This is 6.0-current as of 2004.08.22.23.10.00.

When I do extracting stage in ports, I felt the heavy load sometimes.

I'm not sure this can be reproduced with others' environment, but in
my environment, I can reproduce this easily.

With usual "tar archive", it extracted in normal time, but "POSIX tar
archive", it takes too long.

Is there any other reasons to make this extracting slow down?


----- tar archive
% file /var/tmp/apachetop-0.12.tar
/var/tmp/apachetop-0.12.tar: tar archive
% ls -l /var/tmp/apachetop-0.12.tar
-rw-r--r--  1 root  wheel  563200 Aug 23 18:57 /var/tmp/apachetop-0.12.tar
% sudo time -l tar xf /var/tmp/apachetop-0.12.tar
        0.08 real         0.00 user         0.08 sys
       992  maximum resident set size
        88  average shared memory size
       112  average unshared data size
       140  average unshared stack size
       100  page reclaims
         0  page faults
         0  swaps
         0  block input operations
         1  block output operations
         0  messages sent
         0  messages received
         0  signals received
         0  voluntary context switches
         4  involuntary context switches
-----

----- POSIX tar archive
% file /var/tmp/vtun-2.6.tar
/var/tmp/vtun-2.6.tar: POSIX tar archive
% ls -l /var/tmp/vtun-2.6.tar
-rw-r--r--  1 root  wheel  430080 Aug 23 18:54 /var/tmp/vtun-2.6.tar
% sudo time -l tar xf /var/tmp/vtun-2.6.tar
       65.75 real         0.22 user        62.64 sys
      1308  maximum resident set size
        88  average shared memory size
       268  average unshared data size
       128  average unshared stack size
       147  page reclaims
         0  page faults
         0  swaps
         0  block input operations
         0  block output operations
      5016  messages sent
      5016  messages received
         0  signals received
      5001  voluntary context switches
      2121  involuntary context switches
-----


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Mon Aug 23 2004 - 08:07:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:07 UTC