Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 2015 14:58:32 +0500
From:      "Eugene M. Zheganin" <emz@norma.perm.ru>
To:        FreeBSD <freebsd-stable@freebsd.org>
Subject:   zfs, mc, mcview and files opening
Message-ID:  <5641BFC8.9050207@norma.perm.ru>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5641BFC8.9050207>