ZIL - ZFS log system for sync writes. Works at maximum possible speed. External ZIL avoid double write to the same HDD.
ARC - primary ZFS cache for data and meta-data.
L2ARC - secondary external cache. Need warm up time (depend on load can be few days) before it gives some performance. Eat some ARC.
Need speed for write ? Use pool sync=disable
Need speed and safety for write ? Use external ZIL with low latency SSD
Need speed for read ? Make big ARC
Need speed for read and write ? ARC and ZIL
Performance monitoring tool :
https://github.com/zfsonlinux/zfs/tree/master/cmd/arcstat
My example:
ARC size = 10G (meta limit 5G)
Meta : `arcstat -f time,mread,mhit,mh%,mmis,mm% 1`
[TABLE="width: 500"]
[TR]
[TD]time[/TD]
[TD]mread[/TD]
[TD]mhit[/TD]
[TD]mh%[/TD]
[TD]mmis[/TD]
[TD]mm%[/TD]
[/TR]
[TR]
[TD]08:37:14[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:15[/TD]
[TD]27[/TD]
[TD]27[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:16[/TD]
[TD]275[/TD]
[TD]275[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:17[/TD]
[TD]255[/TD]
[TD]255[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:18[/TD]
[TD]233[/TD]
[TD]233[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:19[/TD]
[TD]10[/TD]
[TD]10[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:20[/TD]
[TD]18[/TD]
[TD]18[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:37:21[/TD]
[TD]33[/TD]
[TD]33[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[/TABLE]
ARC : `arcstat -f time,c,arcsz,read,hits,hit%,miss,miss% 1`
[TABLE="width: 500"]
[TR]
[TD]time[/TD]
[TD]c[/TD]
[TD]arcsz[/TD]
[TD]read[/TD]
[TD]hits[/TD]
[TD]hit%[/TD]
[TD]miss[/TD]
[TD]miss%[/TD]
[/TR]
[TR]
[TD]08:45:03[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]257[/TD]
[TD]209[/TD]
[TD]76[/TD]
[TD]66[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]08:45:04[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]1.1K[/TD]
[TD]734[/TD]
[TD]69[/TD]
[TD]328[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]08:45:05[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]1.1K[/TD]
[TD]837[/TD]
[TD]75[/TD]
[TD]273[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]08:45:06[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]391[/TD]
[TD]251[/TD]
[TD]64[/TD]
[TD]140[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]08:45:07[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]588[/TD]
[TD]435[/TD]
[TD]73[/TD]
[TD]153[/TD]
[TD]26[/TD]
[/TR]
[TR]
[TD]08:45:08[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]654[/TD]
[TD]387[/TD]
[TD]59[/TD]
[TD]70[/TD]
[TD]43[/TD]
[/TR]
[TR]
[TD]08:45:09[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]160[/TD]
[TD]160[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]08:45:10[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]462[/TD]
[TD]274[/TD]
[TD]59[/TD]
[TD]188[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]08:45:11[/TD]
[TD]10G[/TD]
[TD]10G[/TD]
[TD]290[/TD]
[TD]151[/TD]
[TD]52[/TD]
[TD]139[/TD]
[TD]47[/TD]
[/TR]
[/TABLE]
arc_summary.py
Code:
ZFS Subsystem Report Sun Mar 29 08:51:34 2015
ARC Summary: (HEALTHY)
Memory Throttle Count: 0
ARC Misc:
Deleted: 2.38m
Recycle Misses: 154.47k
Mutex Misses: 283
Evict Skips: 283
ARC Size: 100.00% 10.00 GiB
Target Size: (Adaptive) 100.00% 10.00 GiB
Min Size (Hard Limit): 0.04% 4.00 MiB
Max Size (High Water): 2560:1 10.00 GiB
ARC Size Breakdown:
Recently Used Cache Size: 0.01% 1.24 MiB
Frequently Used Cache Size: 99.99% 10.00 GiB
ARC Hash Breakdown:
Elements Max: 1.51m
Elements Current: 99.38% 1.50m
Collisions: 26.83m
Chain Max: 11
Chains: 437.55k
ARC Total accesses: 150.23m
Cache Hit Ratio: 84.35% 126.72m
Cache Miss Ratio: 15.65% 23.51m
Actual Hit Ratio: 81.07% 121.79m
Data Demand Efficiency: 71.85% 82.09m
Data Prefetch Efficiency: 35.40% 292.23k
CACHE HITS BY CACHE LIST:
Most Recently Used: 13.55% 17.17m
Most Frequently Used: 82.56% 104.62m
Most Recently Used Ghost: 1.39% 1.76m
Most Frequently Used Ghost: 16.48% 20.88m
CACHE HITS BY DATA TYPE:
Demand Data: 46.55% 58.99m
Prefetch Data: 0.08% 103.44k
Demand Metadata: 49.56% 62.80m
Prefetch Metadata: 3.81% 4.83m
CACHE MISSES BY DATA TYPE:
Demand Data: 98.28% 23.11m
Prefetch Data: 0.80% 188.79k
Demand Metadata: 0.58% 136.19k
Prefetch Metadata: 0.34% 79.67k
File-Level Prefetch: (HEALTHY)
DMU Efficiency: 386.99m
Hit Ratio: 87.54% 338.77m
Miss Ratio: 12.46% 48.22m
Colinear: 48.22m
Hit Ratio: 0.10% 49.76k
Miss Ratio: 99.90% 48.17m
Stride: 332.70m
Hit Ratio: 99.98% 332.65m
Miss Ratio: 0.02% 53.77k
DMU Misc:
Reclaim: 48.17m
Successes: 5.47% 2.63m
Failures: 94.53% 45.54m
Streams: 6.13m
+Resets: 0.01% 602
-Resets: 99.99% 6.13m
Bogus: 0