zfs, mc, mcview and files opening

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Tue Nov 10 12:09:23 UTC 2015


On Tue, 10 Nov 2015 16:54+0500, Eugene M. Zheganin wrote:

> Hi,
> 
> on 10.11.2015 15:05, Trond Endrestøl 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.
> 
> Is it worth to report this in bugzilla ?

This PR exists:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=148150

You might want to check out stable/10 r290152 onwards, as file 5.25 
was recently merged from head.

I'm still running stable/10 amd64 r290090, so upgrading to the latest 
stable/10 might help. I'll see if I can upgrade one my systems later 
this afternoon.

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+


More information about the freebsd-stable mailing list