bsdtar eats CPU when extracting POSIX tar archive
kientzle at freebsd.org
Wed Aug 25 21:35:58 PDT 2004
Tim Kientzle wrote:
> Jun Kuriyama wrote:
>> ----- 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
> That certainly doesn't look right.
> Does this happen consistently?
> Can you send me a copy of this archive file so
> I can try to reproduce it here?
I pulled the current distfile for the vtun port,
and it's definitely a GNU format archive, so I
wasn't able to easily reproduce your problem.
I'm suspicious that all of the time being used is
system time. Could you try to find out which
system calls are taking so long:
ktrace tar xf /var/tmp/vtun-2.6.tar
kdump -R -m 16
That might shed some light on matters.
More information about the freebsd-current