From owner-freebsd-stable@freebsd.org Tue Nov 10 12:04:53 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25DD8A2A135 for ; Tue, 10 Nov 2015 12:04:53 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A0EC1CEE for ; Tue, 10 Nov 2015 12:04:52 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id tAAC2eGN083966; Tue, 10 Nov 2015 13:02:40 +0100 (CET) Received: from [217.29.44.187] ([217.29.44.187]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id tAAC2eqF048116; Tue, 10 Nov 2015 13:02:40 +0100 (CET) (envelope-from hausen@punkt.de) Subject: Re: zfs, mc, mcview and files opening Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/signed; boundary="Apple-Mail=_E42903BF-E25B-4398-BB1F-7A4EA8A77155"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: "Patrick M. Hausen" In-Reply-To: <5641DB05.7050209@norma.perm.ru> Date: Tue, 10 Nov 2015 13:02:40 +0100 Cc: freebsd-stable@freebsd.org Message-Id: References: <5641BFC8.9050207@norma.perm.ru> <5641DB05.7050209@norma.perm.ru> To: "Eugene M. Zheganin" X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 12:04:53 -0000 --Apple-Mail=_E42903BF-E25B-4398-BB1F-7A4EA8A77155 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi, all, > Am 10.11.2015 um 12:54 schrieb Eugene M. Zheganin : >=20 > Hi, >=20 > on 10.11.2015 15:05, Trond Endrest=F8l wrote: >> I blame file(1), it's hopelessly slow. mcview uses file(1) to deduce >> if it should just display the damn file or run the file through some >> filter. Maybe an option in mc/mcview to disable the use of file(1) is >> an acceptable compromise. > Yeah, you seem to be right. /usr/bin/time -h file /var/log/maillog = gives > same time of 37-40 seconds to process the file. > The main answer is now why file(1) is that slow ? I tested it on files > of about same size and UFS - there's no lag at all. >=20 > Is it worth to report this in bugzilla ? Could it be this problem you are experiencing? = http://freebsd.1045724.n5.nabble.com/file-1-command-very-slow-td6037309.ht= ml Kind regards, Patrick -- punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J=FCrgen Egeling AG Mannheim 108285 --Apple-Mail=_E42903BF-E25B-4398-BB1F-7A4EA8A77155 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJWQdzgAAoJEJBvLuLt2olcLicH/in0sV2m4lgdSUcNcVx8r7+Q ldi30NptiUAamwWl57hBz0aNKUoP2ICfMJiHb3vENRnfmHnJ+0S5uxovkxJ5LLX4 UmhD/DEVlI0j2TnqF9HVhCeULb1O1ke+xNQnOCgzVkQz3HqZ5vAY9ZpHVHaCT9AL 2cLuMDf2z3RAGiaQSxUob2/T/dld5gE8+n1/QaR2rQMKLWOEpkhoWANNGDS1MXYb KwdqhDh+Qn3kGJ4sqMlIfaF0luQEWFCsd9iXvFa8G2aCMURe8mOXvMqxi62Bziwl C189YkxdDQKi8Z6/WYbkNfFzq0nbdFbp3SzAe6w/vh8EN+ivVhwmCGu8pHxVizI= =uEhe -----END PGP SIGNATURE----- --Apple-Mail=_E42903BF-E25B-4398-BB1F-7A4EA8A77155--