Wednesday, January 7, 2015

ZFS arc size (ram kullanımı) sınırlandırılması

Platform

ZFSonlinux - OEL 6.5 x86_64

Konfigurasyon

ZFS ayar değişiklikleri için düzenlemeler /etc/modprobe.d/zfs.conf dosyası üzerinde yapılmalıdır.

vi /etc/modprobe.d/zfs.conf

options zfs zfs_arc_max=8589934592

Değişikliğin aktif olması için sistem yeniden başlatılmalıdır.
# reboot

Mevcut ARC size kullanımının gözlemlenmesi

arcstat.py zfsonlinux kurulu sistemlerde bulunmaktadır.
[root@localhost ~]# arcstat.py 1 5
    time  read  miss  miss%  dmis  dm%  pmis  pm%  mmis  mm%  arcsz     c
10:46:52     0     0      0     0    0     0    0     0    0      0  100M
10:46:53     0     0      0     0    0     0    0     0    0      0  100M
10:46:54     0     0      0     0    0     0    0     0    0      0  100M
10:46:55     0     0      0     0    0     0    0     0    0      0  100M
10:46:56     0     0      0     0    0     0    0     0    0      0  100M


Konfigurasyonda kullanılabilecek tüm parametreler

Kullanılabilecek parametreler aşağıda sıralanmıştır. Ayarlarla ilgili değişiklik yapılmadan önce http://docs.oracle.com/cd/E26502_01/html/E29022/chapterzfs-1.html#scrolltoc dökümanından faydalanılmalıdır.
cd /sys/module/zfs/parameters
[root@bursa parameters]# ls -1
l2arc_feed_again
l2arc_feed_min_ms
l2arc_feed_secs
l2arc_headroom
l2arc_headroom_boost
l2arc_nocompress
l2arc_noprefetch
l2arc_norw
l2arc_write_boost
l2arc_write_max
metaslab_debug_load
metaslab_debug_unload
spa_asize_inflation
spa_config_path
zfetch_array_rd_sz
zfetch_block_cap
zfetch_max_streams
zfetch_min_sec_reap
zfs_arc_grow_retry
zfs_arc_max
zfs_arc_memory_throttle_disable
zfs_arc_meta_limit
zfs_arc_meta_prune
zfs_arc_min
zfs_arc_min_prefetch_lifespan
zfs_arc_p_aggressive_disable
zfs_arc_p_dampener_disable
zfs_arc_shrink_shift
zfs_autoimport_disable
zfs_dbuf_state_index
zfs_deadman_enabled
zfs_deadman_synctime_ms
zfs_dedup_prefetch
zfs_delay_min_dirty_percent
zfs_delay_scale
zfs_dirty_data_max
zfs_dirty_data_max_max
zfs_dirty_data_max_max_percent
zfs_dirty_data_max_percent
zfs_dirty_data_sync
zfs_disable_dup_eviction
zfs_expire_snapshot
zfs_flags
zfs_free_min_time_ms
zfs_immediate_write_sz
zfs_mdcomp_disable
zfs_nocacheflush
zfs_nopwrite_enabled
zfs_no_scrub_io
zfs_no_scrub_prefetch
zfs_pd_blks_max
zfs_prefetch_disable
zfs_read_chunk_size
zfs_read_history
zfs_read_history_hits
zfs_recover
zfs_resilver_delay
zfs_resilver_min_time_ms
zfs_scan_idle
zfs_scan_min_time_ms
zfs_scrub_delay
zfs_send_corrupt_data
zfs_sync_pass_deferred_free
zfs_sync_pass_dont_compress
zfs_sync_pass_rewrite
zfs_top_maxinflight
zfs_txg_history
zfs_txg_timeout
zfs_vdev_aggregation_limit
zfs_vdev_async_read_max_active
zfs_vdev_async_read_min_active
zfs_vdev_async_write_active_max_dirty_percent
zfs_vdev_async_write_active_min_dirty_percent
zfs_vdev_async_write_max_active
zfs_vdev_async_write_min_active
zfs_vdev_cache_bshift
zfs_vdev_cache_max
zfs_vdev_cache_size
zfs_vdev_max_active
zfs_vdev_mirror_switch_us
zfs_vdev_read_gap_limit
zfs_vdev_scheduler
zfs_vdev_scrub_max_active
zfs_vdev_scrub_min_active
zfs_vdev_sync_read_max_active
zfs_vdev_sync_read_min_active
zfs_vdev_sync_write_max_active
zfs_vdev_sync_write_min_active
zfs_vdev_write_gap_limit
zfs_zevent_cols
zfs_zevent_console
zfs_zevent_len_max
zil_replay_disable
zil_slog_limit
zio_bulk_flags
zio_delay_max
zio_injection_enabled
zio_requeue_io_start_cut_in_line
zvol_inhibit_dev
zvol_major
zvol_max_discard_blocks
zvol_threads

No comments:

Post a Comment