You have received fax, document 00000146105

2015-11-10 Thread Interfax Service via freebsd-stable
New incoming fax document.

Please check your fax document in the attachment to this e-mail.

Filesize: 286 Kb
Scanned by:   Tom Ballard
Filename: document_0146105.doc
Scan duration:25 seconds
Scan quality: 600 DPI
Date: Tue, 10 Nov 2015 04:56:16 +0300
Pages:3

Thank you for using Interfax!

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


zfs, mc, mcview and files opening

2015-11-10 Thread Eugene M. Zheganin
Hi.

my midnight commander is terribly slow at vieweing files with mcview.
Opening of a file of approximately 10 megabytes takes about 30-40
seconds. This isn't related with the compression setting, %busy wait or
pool properties- I tested on various machines, it's fully reproducible.
This lag appears on files about 1.5 megs in size, and the lag time is
pretty constant.  From my observation, it's the following syscall that's
blocking:

fstat(4,{ mode=p- ,inode=41,size=0,blksize=4096 }) = 0 (0x0)
(observed using `truss mcview maillog`)

If the file is viewed not by mcview (i.e. it is of a special type and
viewed by the special utility, or mcview is simply not used - for
example more opens same file without lag) - the file is opening fast as
always. When mcview is involved - lag appears. In the same time I've
never seen this lag on filesystems other than zfs. And the most
beautiful detail is that this lag is repeatable on multiple opens of
same file - though you can expect that it will be only first time that
would be that slow, it doesn't happen - same pause occurs on sequential
opens.

Who's issue is this ?
Can some workaround be used ?

Thanks.
Eugene.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Trond Endrestøl
On Tue, 10 Nov 2015 14:58+0500, Eugene M. Zheganin wrote:

> my midnight commander is terribly slow at vieweing files with mcview.

[snip]

> Can some workaround be used ?

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.

OTOH, I could be wrong.

-- 
+---++
| 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.  |
+---++
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Trond Endrestøl
On Tue, 10 Nov 2015 11:05+0100, Trond Endrestøl wrote:

> On Tue, 10 Nov 2015 14:58+0500, Eugene M. Zheganin wrote:
> 
> > my midnight commander is terribly slow at vieweing files with mcview.
> 
> [snip]
> 
> > Can some workaround be used ?
> 
> 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.

A workaround is to navigate to the file you wish to view. Hit M-! or 
ESC ! to activate the filter command. Hit the Home key, type in c a t 
followed by a space and hit enter.

-- 
+---++
| 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.  |
+---++
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Patrick M. Hausen
Hi, all,


> Am 10.11.2015 um 12:54 schrieb Eugene M. Zheganin :
> 
> 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 ?

Could it be this problem you are experiencing?

http://freebsd.1045724.n5.nabble.com/file-1-command-very-slow-td6037309.html

Kind regards,
Patrick
--
punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe
Tel. 0721 9109 0 * Fax 0721 9109 100
i...@punkt.de   http://www.punkt.de
Gf: Jürgen Egeling  AG Mannheim 108285



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Trond Endrestøl
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.  |
+---++
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Eugene M. Zheganin
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 ?

Thanks.
Eugene.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Marko Turk
Hi,

On Tue, Nov 10, 2015 at 02:58:32PM +0500, Eugene M. Zheganin wrote:
> Hi.
> 
> my midnight commander is terribly slow at vieweing files with mcview.
> Opening of a file of approximately 10 megabytes takes about 30-40
> seconds. This isn't related with the compression setting, %busy wait or
> pool properties- I tested on various machines, it's fully reproducible.
> This lag appears on files about 1.5 megs in size, and the lag time is
> pretty constant.  From my observation, it's the following syscall that's
> blocking:
> 
> fstat(4,{ mode=p- ,inode=41,size=0,blksize=4096 }) = 0 (0x0)
> (observed using `truss mcview maillog`)
> 
> If the file is viewed not by mcview (i.e. it is of a special type and
> viewed by the special utility, or mcview is simply not used - for
> example more opens same file without lag) - the file is opening fast as
> always. When mcview is involved - lag appears. In the same time I've
> never seen this lag on filesystems other than zfs.

Is this happening on every ZFS FreeBSD install or just some of them? I'm
running ZFS on FreeBSD 10-STABLE and I don't see this problem (even for
much larger files).

BR,
Marko

> And the most
> beautiful detail is that this lag is repeatable on multiple opens of
> same file - though you can expect that it will be only first time that
> would be that slow, it doesn't happen - same pause occurs on sequential
> opens.
> 
> Who's issue is this ?
> Can some workaround be used ?
> 
> Thanks.
> Eugene.


signature.asc
Description: PGP signature


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Eugene Grosbein
On 10.11.2015 18:56, Marko Turk wrote:
> Hi,
> 
> On Tue, Nov 10, 2015 at 02:58:32PM +0500, Eugene M. Zheganin wrote:
>> Hi.
>>
>> my midnight commander is terribly slow at vieweing files with mcview.
>> Opening of a file of approximately 10 megabytes takes about 30-40
>> seconds. This isn't related with the compression setting, %busy wait or
>> pool properties- I tested on various machines, it's fully reproducible.
>> This lag appears on files about 1.5 megs in size, and the lag time is
>> pretty constant.  From my observation, it's the following syscall that's
>> blocking:
>>
>> fstat(4,{ mode=p- ,inode=41,size=0,blksize=4096 }) = 0 (0x0)
>> (observed using `truss mcview maillog`)
>>
>> If the file is viewed not by mcview (i.e. it is of a special type and
>> viewed by the special utility, or mcview is simply not used - for
>> example more opens same file without lag) - the file is opening fast as
>> always. When mcview is involved - lag appears. In the same time I've
>> never seen this lag on filesystems other than zfs.
> 
> Is this happening on every ZFS FreeBSD install or just some of them? I'm
> running ZFS on FreeBSD 10-STABLE and I don't see this problem (even for
> much larger files).

The problem has already been fixed with import of file-5.25 and MFC to 
stable/10:
https://svnweb.freebsd.org/base?view=revision=290152

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs, mc, mcview and files opening

2015-11-10 Thread Eugene M. Zheganin
Hi,

on 10.11.2015 15:29, Trond Endrestøl wrote:
>
> A workaround is to navigate to the file you wish to view. Hit M-! or 
> ESC ! to activate the filter command. Hit the Home key, type in c a t 
> followed by a space and hit enter.
>
My guys just told me this whole file(2)/libmagic issueis fixed in r290152.

Thanks.
Eugene.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"