diff options
author | mm <mm@FreeBSD.org> | 2010-05-16 07:16:28 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-05-16 07:16:28 +0000 |
commit | f9955a0614d1eb8c967aca8aa64f4b769359c224 (patch) | |
tree | 5050e445ad49ebb571bcb144a8f511776664be30 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c | |
parent | ece653335efe421b33bad15592a70dc0a27448eb (diff) | |
download | FreeBSD-src-f9955a0614d1eb8c967aca8aa64f4b769359c224.zip FreeBSD-src-f9955a0614d1eb8c967aca8aa64f4b769359c224.tar.gz |
Fix perfomance problem with ZFS prefetch caching [1]
Add statistics for ZFS prefetch (sysctl kstat.zfs.misc.zfetchstats)
Partial import of OpenSolaris onnv revision 10474:0e96dd3b905a
Reported by: jhell@dataix.net (private e-mail) [1]
Approved by: pjd, delphij (mentor)
Obtained from: OpenSolaris (Bug ID 6859997, 6868951)
MFC after: 3 days
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c index 377efb9..55501e9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c @@ -1192,6 +1192,7 @@ dmu_init(void) { dbuf_init(); dnode_init(); + zfetch_init(); arc_init(); l2arc_init(); } @@ -1200,6 +1201,7 @@ void dmu_fini(void) { arc_fini(); + zfetch_fini(); dnode_fini(); dbuf_fini(); l2arc_fini(); |