Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- heatcache-mpool() (
- # Get both metadata (directory contents including fstat() details)
- # and shared-cache data the server serves over NFS into SSD L2ARC
- # cache after reboots etc.
- # Note: run this a few times in the background with some time offset
- # to convince ZFS that the data blocks are MRU/MFU'ed several times
- # so should be cached at some layer and not just evicted.
- TSH="`date -u`"
- TSS="`date -u +%s`"
- for D in \
- /mpool/.ccache* /mpool/jenkins-gitcache/ \
- ; do
- ( time du -ks $D/ && echo "^^^ sized $D/") &
- ( time find $D/ -ls > /dev/null && echo "^^^ listed $D/") &
- ( time find $D/ -type f -exec cat '{}' \; > /dev/null && echo "^^^ cat all in $D/") &
- done
- wait
- RES=$?
- TEH="`date -u`"
- TES="`date -u +%s`"
- echo "Caches heated ($RES) from $TSH to $TEH, overall `$(($TES-$TSS))` sec"
- exit $RES
- )
- =================
- capacity operations bandwidth
- pool alloc free read write read write
- ------------------------- ----- ----- ----- ----- ----- -----
- mpool 1.28T 1.44T 18 75 797K 494K
- mirror 1.28T 1.44T 18 64 797K 449K
- c1t50014EE264023A89d0 - - 10 39 529K 452K
- c1t50014EE2B957E767d0 - - 8 39 268K 452K
- logs - - - - - -
- c1t5002538E407750E1d0s3 236K 4.00G 0 11 0 44.8K
- cache - - - - - -
- c1t5002538E407750E1d0s5 19.3G 181G 85 0 3.33M 0
- capacity operations bandwidth
- pool alloc free read write read write
- ------------------------- ----- ----- ----- ----- ----- -----
- mpool 1.28T 1.44T 121 0 4.67M 0
- mirror 1.28T 1.44T 121 0 4.67M 0
- c1t50014EE264023A89d0 - - 59 0 2.41M 0
- c1t50014EE2B957E767d0 - - 62 0 2.26M 0
- logs - - - - - -
- c1t5002538E407750E1d0s3 300K 4.00G 0 0 0 0
- cache - - - - - -
- c1t5002538E407750E1d0s5 18.6G 181G 148 0 4.41M 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement