mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
ca0bf58d65
Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Richard Elling <richard.elling@richardelling.com> Approved by: Dan McDonald <danmcd@omniti.com> Porting notes and other significant code changes: The illumos 5368 patch (ARC should cache more metadata), which was never picked up by ZoL, is mostly reverted by this patch. Since ZoL relies on the kernel asynchronously calling the shrinker to actually reap memory, the shrinker wakes up arc_reclaim_waiters_cv every time it runs. The arc_adapt_thread() function no longer calls arc_do_user_evicts() since the newly-added arc_user_evicts_thread() calls it periodically. Notable conflicting ZoL commits which conflicted with this patch or whose effects are either duplicated or un-done by this patch:302f753
- Integrate ARC more tightly with Linux39e055c
- Adjust arc_p based on "bytes" in arc_shrinkf521ce1
- Allow "arc_p" to drop to zero or grow to "arc_c"77765b5
- Remove "arc_meta_used" from arc_adjust calculation94520ca
- Prune metadata from ghost lists in arc_adjust_meta Trace support for multilist_insert() and multilist_remove() has been added and produces the following output: fio-12498 [077] .... 112936.448324: zfs_multilist__insert: ml { offset 240 numsublists 80 sublistidx 63 } fio-12498 [077] .... 112936.448347: zfs_multilist__remove: ml { offset 240 numsublists 80 sublistidx 29 } The following arcstats have been removed: recycle_miss - Used by arcstat.py and arc_summary.py, both of which have been updated appropriately. l2_writes_hdr_miss The following arcstats have been added: evict_not_enough - Number of times arc_evict_state() was unable to evict enough buffers to reach its target amount. evict_l2_skip - Number of times arc_evict_hdr() skipped eviction because it was being written to the l2arc. l2_writes_lock_retry - Replaces l2_writes_hdr_miss. Number of times l2arc_write_done() failed to acquire hash_lock (and re-tries). arc_meta_min - Shows the value of the zfs_arc_meta_min module parameter (see below). The "index" column of the "dbuf" kstat has been removed since it doesn't have a direct analog in the new multilist scheme. Additional multilist- related stats could be added in the future but would likely require extensions to the mulilist API. The following module parameters have been added: zfs_arc_evict_batch_limit - Number of ARC headers to free per sub-list before moving on to the next sub-list. zfs_arc_meta_min - Enforce a floor on the amount of metadata in the ARC. zfs_arc_num_sublists_per_state - Number of multilist sub-lists per ARC state. zfs_arc_overflow_shift - Controls amount by which the ARC must exceed the target size to be considered "overflowing". Ported-by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov
119 lines
4.2 KiB
Makefile
119 lines
4.2 KiB
Makefile
SUBDIRS = fm fs
|
|
|
|
COMMON_H = \
|
|
$(top_srcdir)/include/sys/arc.h \
|
|
$(top_srcdir)/include/sys/arc_impl.h \
|
|
$(top_srcdir)/include/sys/avl.h \
|
|
$(top_srcdir)/include/sys/avl_impl.h \
|
|
$(top_srcdir)/include/sys/blkptr.h \
|
|
$(top_srcdir)/include/sys/bplist.h \
|
|
$(top_srcdir)/include/sys/bpobj.h \
|
|
$(top_srcdir)/include/sys/bptree.h \
|
|
$(top_srcdir)/include/sys/dbuf.h \
|
|
$(top_srcdir)/include/sys/ddt.h \
|
|
$(top_srcdir)/include/sys/dmu.h \
|
|
$(top_srcdir)/include/sys/dmu_impl.h \
|
|
$(top_srcdir)/include/sys/dmu_objset.h \
|
|
$(top_srcdir)/include/sys/dmu_send.h \
|
|
$(top_srcdir)/include/sys/dmu_traverse.h \
|
|
$(top_srcdir)/include/sys/dmu_tx.h \
|
|
$(top_srcdir)/include/sys/dmu_zfetch.h \
|
|
$(top_srcdir)/include/sys/dnode.h \
|
|
$(top_srcdir)/include/sys/dsl_bookmark.h \
|
|
$(top_srcdir)/include/sys/dsl_dataset.h \
|
|
$(top_srcdir)/include/sys/dsl_deadlist.h \
|
|
$(top_srcdir)/include/sys/dsl_deleg.h \
|
|
$(top_srcdir)/include/sys/dsl_destroy.h \
|
|
$(top_srcdir)/include/sys/dsl_dir.h \
|
|
$(top_srcdir)/include/sys/dsl_pool.h \
|
|
$(top_srcdir)/include/sys/dsl_prop.h \
|
|
$(top_srcdir)/include/sys/dsl_scan.h \
|
|
$(top_srcdir)/include/sys/dsl_synctask.h \
|
|
$(top_srcdir)/include/sys/dsl_userhold.h \
|
|
$(top_srcdir)/include/sys/efi_partition.h \
|
|
$(top_srcdir)/include/sys/metaslab.h \
|
|
$(top_srcdir)/include/sys/metaslab_impl.h \
|
|
$(top_srcdir)/include/sys/multilist.h \
|
|
$(top_srcdir)/include/sys/nvpair.h \
|
|
$(top_srcdir)/include/sys/nvpair_impl.h \
|
|
$(top_srcdir)/include/sys/range_tree.h \
|
|
$(top_srcdir)/include/sys/refcount.h \
|
|
$(top_srcdir)/include/sys/rrwlock.h \
|
|
$(top_srcdir)/include/sys/sa.h \
|
|
$(top_srcdir)/include/sys/sa_impl.h \
|
|
$(top_srcdir)/include/sys/sdt.h \
|
|
$(top_srcdir)/include/sys/spa_boot.h \
|
|
$(top_srcdir)/include/sys/space_map.h \
|
|
$(top_srcdir)/include/sys/space_reftree.h \
|
|
$(top_srcdir)/include/sys/spa.h \
|
|
$(top_srcdir)/include/sys/spa_impl.h \
|
|
$(top_srcdir)/include/sys/trace.h \
|
|
$(top_srcdir)/include/sys/trace_acl.h \
|
|
$(top_srcdir)/include/sys/trace_arc.h \
|
|
$(top_srcdir)/include/sys/trace_dbgmsg.h \
|
|
$(top_srcdir)/include/sys/trace_dbuf.h \
|
|
$(top_srcdir)/include/sys/trace_dmu.h \
|
|
$(top_srcdir)/include/sys/trace_dnode.h \
|
|
$(top_srcdir)/include/sys/trace_multilist.h \
|
|
$(top_srcdir)/include/sys/trace_txg.h \
|
|
$(top_srcdir)/include/sys/trace_zil.h \
|
|
$(top_srcdir)/include/sys/trace_zrlock.h \
|
|
$(top_srcdir)/include/sys/txg.h \
|
|
$(top_srcdir)/include/sys/txg_impl.h \
|
|
$(top_srcdir)/include/sys/u8_textprep_data.h \
|
|
$(top_srcdir)/include/sys/u8_textprep.h \
|
|
$(top_srcdir)/include/sys/uberblock.h \
|
|
$(top_srcdir)/include/sys/uberblock_impl.h \
|
|
$(top_srcdir)/include/sys/uio_impl.h \
|
|
$(top_srcdir)/include/sys/unique.h \
|
|
$(top_srcdir)/include/sys/uuid.h \
|
|
$(top_srcdir)/include/sys/vdev_disk.h \
|
|
$(top_srcdir)/include/sys/vdev_file.h \
|
|
$(top_srcdir)/include/sys/vdev.h \
|
|
$(top_srcdir)/include/sys/vdev_impl.h \
|
|
$(top_srcdir)/include/sys/xvattr.h \
|
|
$(top_srcdir)/include/sys/zap.h \
|
|
$(top_srcdir)/include/sys/zap_impl.h \
|
|
$(top_srcdir)/include/sys/zap_leaf.h \
|
|
$(top_srcdir)/include/sys/zfeature.h \
|
|
$(top_srcdir)/include/sys/zfs_acl.h \
|
|
$(top_srcdir)/include/sys/zfs_context.h \
|
|
$(top_srcdir)/include/sys/zfs_ctldir.h \
|
|
$(top_srcdir)/include/sys/zfs_debug.h \
|
|
$(top_srcdir)/include/sys/zfs_delay.h \
|
|
$(top_srcdir)/include/sys/zfs_dir.h \
|
|
$(top_srcdir)/include/sys/zfs_fuid.h \
|
|
$(top_srcdir)/include/sys/zfs_rlock.h \
|
|
$(top_srcdir)/include/sys/zfs_sa.h \
|
|
$(top_srcdir)/include/sys/zfs_stat.h \
|
|
$(top_srcdir)/include/sys/zfs_vfsops.h \
|
|
$(top_srcdir)/include/sys/zfs_vnops.h \
|
|
$(top_srcdir)/include/sys/zfs_znode.h \
|
|
$(top_srcdir)/include/sys/zil.h \
|
|
$(top_srcdir)/include/sys/zil_impl.h \
|
|
$(top_srcdir)/include/sys/zio_checksum.h \
|
|
$(top_srcdir)/include/sys/zio_compress.h \
|
|
$(top_srcdir)/include/sys/zio.h \
|
|
$(top_srcdir)/include/sys/zio_impl.h \
|
|
$(top_srcdir)/include/sys/zrlock.h
|
|
|
|
KERNEL_H = \
|
|
$(top_srcdir)/include/sys/zfs_ioctl.h \
|
|
$(top_srcdir)/include/sys/zfs_onexit.h \
|
|
${top_srcdir}/include/sys/zpl.h \
|
|
$(top_srcdir)/include/sys/zvol.h
|
|
|
|
USER_H =
|
|
|
|
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
|
|
|
|
if CONFIG_USER
|
|
libzfsdir = $(includedir)/libzfs/sys
|
|
libzfs_HEADERS = $(COMMON_H) $(USER_H)
|
|
endif
|
|
|
|
if CONFIG_KERNEL
|
|
kerneldir = @prefix@/src/zfs-$(VERSION)/include/sys
|
|
kernel_HEADERS = $(COMMON_H) $(KERNEL_H)
|
|
endif
|