From owner-freebsd-hackers Tue Jul 20 15:13:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id 481C2153FF for ; Tue, 20 Jul 1999 15:13:42 -0700 (PDT) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40331>; Wed, 21 Jul 1999 07:54:53 +1000 Date: Wed, 21 Jul 1999 08:13:10 +1000 From: Peter Jeremy Subject: Re: speed of file(1) In-reply-to: To: hackers@FreeBSD.ORG Cc: leifn@neland.dk Message-Id: <99Jul21.075453est.40331@border.alcanet.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Leif Neland" wrote: >My 60MHz Pentium, FreeBSD > >time file /usr/home/leif/vnc-3.3.2r >/usr/home/leif/vnc-3.3.2r3_unixsrc.tgz: gzip compressed data, deflated, >original filename, last modified: Thu Jan 21 19:23:21 1999 > >real 0m1.237s >user 0m0.758s >sys 0m0.394s I can't believe these figures. Matthew Dillon wrote: > Someone would have to compare file sources or profile it to figure out > what is causing the slowness. I can't reproduce the complaint using a 64MB PII-266 running -CURRENT - there's no evidence of lack of speed, and profiling file(1) doesn't show any anomolies. It is somewhat slower on my 8MB 386, but not unreasonably so: pc0640% time file src/Z/dhcp-2.0b1pl26.tar.gz src/Z/dhcp-2.0b1pl26.tar.gz: gzip compressed data, deflated, last modified: Thu Jan 1 10:00:00 1970, os: Unix file src/Z/dhcp-2.0b1pl26.tar.gz 1.96s user 0.83s system 98% cpu 2.823 total pc0640% Note that this is somewhat more than twice the time Leif claimed for his P-60 - and a P-60 should be more than twice the speed of a 386SX-25. Unfortunately, I can't profile it on my 386: It's running 2.x and I deleted the profiling libraries due to lack of space. It will happily run the profiled ELF file(1), but doesn't generate any timing data. Looking at ktrace with MALLOC_OPTIONS=U, it does do a lot of realloc()ing (once for every 20 active lines in .../magic) and sbrk()s to a maximum size of ~390KB - not really significant. All I can think of is that Leif has a problem with his P-60 system. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message