> As others have mentioned, it would be easier to take a stab at this if there > is >some more data to look at. > >Have you done any ZFS tuning? If so, please provide the /etc/system, adb, zfs >>etc info. > >Can you provide zpool status output? > >As far as checking ls performance, just to remove name service lookups from >>the possibilities, lets use the '-n' option instead of '-l'. I know you >mentioned it >was unlikely to be a problem, but the less variables the better. > > >Can you characterize what your ''ls -an" output looks like? Is it 100 files >or >100,000? > >How about some sample output like: >for run in 1 2 3 4 >do > echo run $run >truss -c ls -an | wc -l >echo "========================" > echo >done > >
zfs tuning: /etc/system set swapfs_minfree=0x20000 set zfs:zfs_txg_synctime=1 Here is the output (200 files in that folder): truss -c ls -an | wc - l 203 syscall seconds calls errors _exit .000 1 read .000 1 write .000 3 open .000 8 3 close .000 6 time .004 610 brk .000 12 getpid .000 1 sysi86 .000 1 ioctl .000 2 2 execve .000 1 fcntl .000 1 openat .000 1 getcontext .000 1 setustack .000 1 pathconf .003 203 mmap .000 7 mmapobj .000 4 getrlimit .000 1 memcntl .000 6 sysconfig .000 2 lwp_private .000 1 acl .006 406 resolvepath .000 6 getdents64 .315 2 stat64 .003 209 1 lstat64 .375 203 fstat64 .000 4 -------- ------ ---- sys totals: .710 1704 6 usr time: .008 elapsed: 32.420 # zpool status pool: pool001 state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using 'zpool upgrade'. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM pool001 ONLINE 0 0 0 raidz2 ONLINE 0 0 0 c9t19d0 ONLINE 0 0 0 c9t18d0 ONLINE 0 0 0 c9t17d0 ONLINE 0 0 0 c9t13d0 ONLINE 0 0 0 c9t15d0 ONLINE 0 0 0 c9t16d0 ONLINE 0 0 0 c9t11d0 ONLINE 0 0 0 c9t12d0 ONLINE 0 0 0 c9t14d0 ONLINE 0 0 0 c9t9d0 ONLINE 0 0 0 c9t8d0 ONLINE 0 0 0 c9t10d0 ONLINE 0 0 0 c9t30d0 ONLINE 0 0 0 c9t29d0 ONLINE 0 0 0 c9t28d0 ONLINE 0 0 0 c9t24d0 ONLINE 0 0 0 c9t26d0 ONLINE 0 0 0 c9t27d0 ONLINE 0 0 0 c9t22d0 ONLINE 0 0 0 c9t23d0 ONLINE 0 0 0 c9t25d0 ONLINE 0 0 0 c9t20d0 ONLINE 0 0 0 c9t21d0 ONLINE 0 0 0 spares c8t3d0 AVAIL c8t2d0 AVAIL errors: No known data errors [...] We are running the zpool version that came with b111b for now and have not decided if we want to upgrade to the version that comes with b117 ## vmstat -s 0 swap ins 0 swap outs 0 pages swapped in 0 pages swapped out 729488 total address trans. faults taken 2 page ins 0 page outs 2 pages paged in 0 pages paged out 264171 total reclaims 264171 reclaims from free list 0 micro (hat) faults 729488 minor (as) faults 2 major faults 147603 copy-on-write faults 219098 zero fill page faults 589820 pages examined by the clock daemon 0 revolutions of the clock hand 0 pages freed by the clock daemon 1765 forks 703 vforks 2478 execs 2267309301 cpu context switches 671340139 device interrupts 1036384 traps 28907635 system calls 2524120 total name lookups (cache hits 92%) 8836 user cpu 11632644 system cpu 15777851 idle cpu 0 wait cpu -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss