Slawa Olhovchenkov
2016-Oct-21 10:20 UTC
zfs, a directory that used to hold lot of files and listing pause
On Fri, Oct 21, 2016 at 11:02:57AM +0100, Steven Hartland wrote:> > Mem: 21M Active, 646M Inact, 931M Wired, 2311M Free > > ARC: 73M Total, 3396K MFU, 21M MRU, 545K Anon, 1292K Header, 47M Other > > Swap: 4096M Total, 4096M Free > > > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > 600 root 39 0 27564K 5072K nanslp 1 295.0H 24.56% monit > > 0 root -17 0 0K 2608K - 1 75:24 0.00% > > kernel{zio_write_issue} > > 767 freeswitch 20 0 139M 31668K uwait 0 48:29 0.00% > > freeswitch{freeswitch} > > 683 asterisk 20 0 806M 483M uwait 0 41:09 0.00% > > asterisk{asterisk} > > 0 root -8 0 0K 2608K - 0 37:43 0.00% > > kernel{metaslab_group_t} > > [... others lines are just 0% ...] > This looks like you only have ~4Gb ram which is pretty low for ZFS I > suspect vfs.zfs.prefetch_disable will be 1, which will crash the > performance.ZFS prefetch affect performance dpeneds of workload (independed of RAM size): for some workloads wins, for some workloads lose (for my workload prefetch is lose and manualy disabled with 128GB RAM). Anyway, this system have only 24MB in ARC by 2.3GB free, this is may be too low for this workload.
Eugene M. Zheganin
2016-Oct-21 11:51 UTC
zfs, a directory that used to hold lot of files and listing pause
Hi. On 21.10.2016 15:20, Slawa Olhovchenkov wrote:> > ZFS prefetch affect performance dpeneds of workload (independed of RAM > size): for some workloads wins, for some workloads lose (for my > workload prefetch is lose and manualy disabled with 128GB RAM). > > Anyway, this system have only 24MB in ARC by 2.3GB free, this is may > be too low for this workload.You mean - "for getting a list of a directory with 20 subdirectories" ? Why then does only this directory have this issue with pause, not /usr/ports/..., which has more directories in it ? (and yes, /usr/ports/www isn't empty and holds 2410 entities) /usr/bin/time -h ls -1 /usr/ports/www [...] 0.14s real 0.00s user 0.00s sys Thanks. Eugene.