Date: Sat, 12 Sep 2015 20:59:11 +0200 From: Martin Birgmeier <la5lbtyi@aon.at> To: Eugene Grosbein <eugen@grosbein.net>, freebsd-stable@freebsd.org Subject: Re: file(1) command very slow Message-ID: <55F475FF.8010007@aon.at> In-Reply-To: <55F3C3B9.3020103@grosbein.net> References: <55EAAD8D.9020902@aon.at> <55F3C3B9.3020103@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Dear Eugene, Thank you for your efforts, I have been following them in the upstream PR you filed. Regards, Martin On 09/12/15 08:18, Eugene Grosbein wrote: > 05.09.2015 15:53, Martin Birgmeier пишет: >> Running the file(1) command on a 7 MB text file takes much longer in >> 10.2 than in 10.1. >> >> Example: >> >> # ll /tmp/x6 >> -rw-r--r-- 1 root wheel 7384414 Sep 5 10:30 /tmp/x6 >> # file /tmp/x6 >> /tmp/x6: ASCII text >> file /tmp/x6 26.12s user 0.00s system 99% cpu 26.237 total >> # >> >> I have this on all my machines since installing 10.2. > > The problem is now fixed upstream libmagic code repository > but we'll have to wait for file-5.25 release. > > I've extracted official code fix from its repository, apply as following: > > fetch http://www.grosbein.net/file/patch-regexmax.diff > cd /usr/src > patch < /path/to/patch-regexmax.diff > cd lib/libmagic > make obj depend && make all install > > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55F475FF.8010007>