mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +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
106 lines
5.2 KiB
Makefile
106 lines
5.2 KiB
Makefile
MODULE := zfs
|
|
|
|
EXTRA_CFLAGS = $(ZFS_MODULE_CFLAGS) @KERNELCPPFLAGS@
|
|
|
|
obj-$(CONFIG_ZFS) := $(MODULE).o
|
|
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/arc.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/blkptr.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/bplist.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/bpobj.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dbuf_stats.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/bptree.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/ddt_zap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_diff.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_object.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_objset.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_send.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_traverse.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_tx.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dmu_zfetch.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dnode_sync.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dataset.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deadlist.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_deleg.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_bookmark.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_dir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_pool.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_prop.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_scan.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_synctask.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/fm.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/gzip.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/lzjb.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/lz4.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/metaslab.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/multilist.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/range_tree.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/refcount.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/rrwlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/sa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/sha256.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_boot.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_config.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_errlog.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_history.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_misc.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/spa_stats.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/space_map.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/space_reftree.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/txg.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/trace.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/uberblock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/unique.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_cache.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_disk.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_file.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_label.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_mirror.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_missing.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_queue.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_raidz.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/vdev_root.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_leaf.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zap_micro.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfeature_common.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_acl.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_byteswap.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ctldir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_debug.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_dir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fm.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_fuid.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_ioctl.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_log.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_onexit.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_replay.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_rlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_sa.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vfsops.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_vnops.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zfs_znode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zil.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_checksum.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_compress.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zio_inject.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zle.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_ctldir.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_export.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_file.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_inode.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_super.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zpl_xattr.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zrlock.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/zvol.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_destroy.o
|
|
$(MODULE)-objs += @top_srcdir@/module/zfs/dsl_userhold.o
|