Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 1999 22:30:55 +0200
From:      "Leif Neland" <leifn@neland.dk>
To:        <freebsd-hackers@FreeBSD.ORG>
Subject:   speed of file(1)
Message-ID:  <014801bed225$a6527fc0$0e00a8c0@neland.dk>

next in thread | raw e-mail | index | archive | help
While trying to port amavis, the virusscanner for mail,
 http://aachalon.de/AMaViS/amavis-0.2.0-pre4.tar.gz ) I noticed it used the
file(1) several times for each file, and it took rather long time, causing
bb to report red for high CPU-load each time I collected a batch of mail.

So I compared it with a Linux box:

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

133MHz Pentium II, Linux

time  file vnc-3.3.2r3_unixsrc.tgz
vnc-3.3.2r3_unixsrc.tgz: gzip compressed data, deflated, original filename,
last modified: Thu Jan 21 19:23:21 1999, os: Unix

real    0m0.036s
user    0m0.010s
sys     0m0.030s

While I realise 60MHz is less than 133MHz, a factor 34 in difference of real
time seems suspect.

The magic file is different, but almost the same size.

Why is FreeBSD's file so much slower?

Leif




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?014801bed225$a6527fc0$0e00a8c0>