wiki:Equipos/Seal/ZfsResilver

Version 10 (modified by fernando, 7 years ago) (diff)

--

  • zfs resilver delay: /* number of ticks to delay resilver */ Es un parámetro del kernel que usa zfs para evitar degradar el rendimiento.Indica los segundos que zfs espera después de cualquier zfs user io, antes de poner en cola las operaciones de io resilver.
  • zfs_resilver_min_time_ms /* min millisecs to resilver per txg */
  • zfs_scan_idle /* idle window in clock ticks */
  • zfs_top_maxinflight = 32; /* maximum I/Os per top-level */

Para leerlo:

root@seal:/# echo "zfs_scrub_delay/D" | sudo mdb -k
zfs_scrub_delay:
zfs_scrub_delay:4
root@seal:/# echo "zfs_resilver_delay/D" | sudo mdb -k
zfs_resilver_delay:
zfs_resilver_delay:             0
root@seal:/# echo "zfs_scan_idle/D" | sudo mdb -k
zfs_scan_idle:
zfs_scan_idle:  50
root@seal:/# echo zfs_resilver_min_time_ms/D | mdb -k
zfs_resilver_min_time_ms:
zfs_resilver_min_time_ms:       3000
root@seal:/# echo zfs_top_maxinflight/D | mdb -k
zfs_top_maxinflight:
zfs_top_maxinflight:            32




Para cambiarlo:

echo zfs_resilver_delay/w0 | mdb -kw

echo zfs_resilver_delay/w1 | mdb -kw

echo zfs_resilver_delay/w2 | mdb -kw

http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide

http://itservices.eng.cam.ac.uk/blogs/2015/05/zfs-resilver-tuning/

[http://broken.net/uncategorized/zfs-performance-tuning-for-scrubs-and-resilvers/