Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. ## KERNEL MEMORY
  2. #
  3. # Do not exceed your RAM size! Note available RAM is lowered by 500MB when
  4. # using the USB or LiveCD distribution. You can increase kernel memory up to
  5. # 1GB less than your physical RAM.
  6. #
  7. # if you exceed the limits of kernel memory, you may get a panic like this:
  8. # panic: kmem_malloc(131072): kmem_map too small: <totalkmem> total allocated
  9. #
  10. vm.kmem_size="7g"
  11. vm.kmem_size_max="8g"
  12.  
  13.  
  14. ## ZFS tunables
  15.  
  16. # ARC limits
  17. # tune these in according with vm.kmem_size setting; you can increase it
  18. # up to the value of vm.kmem_size minus 1GB.
  19. #
  20. # note: kernel memory size needs to be larger than maximum ARC size (arc_max)
  21. # note: zfs uses more memory than just the ARC; don't make the ARC too big
  22. #
  23. vfs.zfs.arc_min="2g"
  24. vfs.zfs.arc_max="3g"
  25.  
  26. # ARC metadata limits
  27. # increase to cache more metadata (recommended if you have enough RAM)
  28. #vfs.zfs.arc_meta_limit="128m"
  29.  
  30. # ZFS prefetch disable
  31. # setting this value to 0 will force prefetching to be used even when
  32. # ZFS considers it undesirable if you have <= 4GiB RAM or running 32-bit
  33. #vfs.zfs.prefetch_disable="0"
  34.  
  35. # ZFS transaction groups (txg)
  36. # ZFS is not unlike a transactional database in the sense that it processes
  37. # your data in transaction groups. The bigger the txg is, the more data it
  38. # can hold but also the longer flushing transaction groups will take.
  39. # experiment with these values to improve temporary 'lags' or 'hangs'
  40. # override maximum txg size in bytes
  41. #vfs.zfs.txg.write_limit_override="0"
  42. # target number of seconds a txg will be synced (tune this!)
  43. #vfs.zfs.txg.synctime="5"
  44. # maximum number of seconds a txg will be synced (tune this!)
  45. #vfs.zfs.txg.timeout="30"
  46.  
  47. # vdev cache settings
  48. # should be safe to tune; but be careful about your memory limits
  49. #vfs.zfs.vdev.cache.bshift="16"
  50. #vfs.zfs.vdev.cache.size="10m"
  51. #vfs.zfs.vdev.cache.max="16384"
  52.  
  53. # vdev pending requests
  54. # this manages the minimum/maximum of outstanding I/Os on the vdevs
  55. # this should be safe to tune; best setting depends on your disks
  56. # ssds may prefer higher settings
  57. vfs.zfs.vdev.min_pending="1"
  58. vfs.zfs.vdev.max_pending="2"
  59.  
  60. # other vdev settings
  61. # I/O requests are aggregated up to this size
  62. #vfs.zfs.vdev.aggregation_limit="131072"
  63. # exponential I/O issue ramp-up rate
  64. #vfs.zfs.vdev.ramp_rate="2"
  65. # used for calculating I/O request deadline
  66. #vfs.zfs.vdev.time_shift="6"
  67.  
  68. # disable BIO flushes
  69. # disables metadata sync mode and uses async I/O without flushes
  70. # ONLY USE FOR PERFORMANCE TESTING
  71. #vfs.zfs.cache_flush_disable="1"
  72.  
  73. # disable ZIL (ZFS Intent Log)
  74. # warning: disabling can sometimes improve performance, but you can lose data
  75. # that was recently written if a crash or power interruption occurs.
  76. # ONLY USE FOR PERFORMANCE TESTING
  77. #vfs.zfs.zil_disable="1"
  78.  
  79. ## other tuning
  80. kern.maxfiles="950000"
  81.  
  82. ## mandatory kernel modules (REQUIRED)
  83. zfs_load="YES"
  84. #geom_uzip_load="YES"
  85. #tmpfs_load="YES"
  86.  
  87. ## recommended kernel modules
  88. ahci_load="YES"
  89. siis_load="YES"
  90.  
  91. ## optional kernel modules
  92. #geom_md_load="YES"
  93. #nullfs_load="YES"
  94. #unionfs_load="YES"
  95.  
  96. # end #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement