The NetBSD Project

CVS log for src/external/cddl/osnet/dist/uts/common/fs/zfs/arc.c

[BACK] Up to [cvs.NetBSD.org] / src / external / cddl / osnet / dist / uts / common / fs / zfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Wed Aug 3 01:53:06 2022 UTC (20 months, 2 weeks ago) by chs
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

change the ARC reclaim code to use the pagedaemon's free page target
rather than having a separate target.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 4 15:49:55 2022 UTC (23 months, 2 weeks ago) by chs
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

fix ARC checks for available memory:
there's an extra check that we inherited from FreeBSD that tries to
detect KVA exhaustion on platforms with limited KVA, but the condition
that decided whether to use the extra check was using a FreeBSDism
that doesn't exist on NetBSD, resulting in this check being used on
all platforms.  on amd64 systems with lots of memory, this extra check
would result in the ARC thinking that it constantly needed to reclaim memory,
resulting in all the xcall threads running all the time but not doing
anything useful.  change this condition so that this extra check for
KVA exhaustion is only used on 32-bit platforms.  fixes PR 55707.

Revision 1.14.2.3 / (download) - annotate - [select for diffs], Thu Apr 22 10:07:58 2021 UTC (2 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.14.2.2: +7 -0 lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Pull up following revision(s) (requested by hannken in ticket #1250):

	external/cddl/osnet/dist/uts/common/fs/zfs/arc.c: revision 1.20

Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Apr 21 10:02:34 2021 UTC (2 years, 11 months ago) by hannken
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.19: +7 -0 lines
Diff to previous 1.19 (colored)

Prevent blocking l2arc_feed_thread() forever, skip the
cv_timedwait() for negative or zero ticks.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jun 11 19:20:42 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 (colored)

uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:04:20 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.12.2.1: +9 -2 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Merge changes from current as of 20200406

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 31 13:07:09 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Rename uvm_free() -> uvm_availmem().

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 21 13:00:20 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

uvmexp.free -> uvm_free()

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Wed Dec 11 14:46:28 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.14.2.1: +4 -0 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)

Pull up following revision(s) (requested by sevan in ticket #540):

	external/cddl/osnet/dist/uts/common/fs/zfs/arc.c: revision 1.16

We currently lack a tunable to control ZFS prefetch, so skip the warning and
FreeBSD specific instructions on settings.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 9 00:15:11 2019 UTC (4 years, 4 months ago) by sevan
Branch: MAIN
Changes since 1.15: +4 -0 lines
Diff to previous 1.15 (colored)

We currently lack a tunable to control ZFS prefetch, so skip the warning and
FreeBSD specific instructions on settings.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sun Dec 8 15:54:34 2019 UTC (4 years, 4 months ago) by martin
Branch: netbsd-9
Changes since 1.14: +3 -0 lines
Diff to previous 1.14 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #515):

	external/cddl/osnet/dist/uts/common/fs/zfs/arc.c: revision 1.15
	share/mk/bsd.own.mk: revision 1.1167
	external/cddl/osnet/dist/uts/common/os/fm.c: revision 1.2

Provide a default ptob() implementation
Need sys/atomic.h on NetBSD
Enable ZFS support on aarch64

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 1 20:26:05 2019 UTC (4 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +3 -0 lines
Diff to previous 1.14 (colored)

Provide a default ptob() implementation

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 21:52:02 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.12: +0 -18 lines
Diff to previous 1.12 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Sun May 26 10:21:00 2019 UTC (4 years, 10 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1
Branch point for: netbsd-9
Changes since 1.13: +0 -9 lines
Diff to previous 1.13 (colored)

Add missing part of kmem_cache cleanup.  Use Solaris argument order for
kmem_cache destructors, umem_cache_alloc() and umem_cache_free() too.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 23 08:32:30 2019 UTC (4 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.12: +0 -9 lines
Diff to previous 1.12 (colored)

Update the kmem_cache emulation to run its callbacks with
Solaris argument order.

No functional change intended.

Revision 1.11.38.1 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:21 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.11: +4744 -1945 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 28 21:05:07 2018 UTC (5 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.11: +4743 -1944 lines
Diff to previous 1.11 (colored)

merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
 - dtrace FBT probes can now be placed in kernel modules.
 - ZFS now supports mmap().

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Mon May 28 20:52:56 2018 UTC (5 years, 10 months ago) by chs
Branch: sun, FreeBSD
CVS Tags: CDDL-FreeBSD-r315983
Changes since 1.1.1.2: +4712 -1914 lines
Diff to previous 1.1.1.2 (colored)

import new CDDL dtrace and ZFS code from FreeBSD svn r315983.

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:04:08 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.9: +11 -32 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:38 2012 UTC (12 years, 2 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: pgoyette-compat
Changes since 1.10: +9 -30 lines
Diff to previous 1.10 (colored)

extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 20 02:54:25 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

enough with the compile time warnings.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 6 22:35:37 2010 UTC (13 years, 11 months ago) by haad
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.8: +3 -0 lines
Diff to previous 1.8 (colored)

Disable uvm_reclaim_hook for userland builds.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 6 22:31:46 2010 UTC (13 years, 11 months ago) by haad
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

Fix difference btween solaris cv_timedwait and NetBSD one. NetBSD takes
offset from current time and solaris exact time from unix born.

Revision 1.7 / (download) - annotate - [select for diffs], Sat Apr 3 19:01:15 2010 UTC (14 years ago) by christos
Branch: MAIN
Changes since 1.6: +9 -9 lines
Diff to previous 1.6 (colored)

don't use NULL for 0

Revision 1.6 / (download) - annotate - [select for diffs], Sat Feb 27 23:43:53 2010 UTC (14 years, 1 month ago) by haad
Branch: MAIN
Changes since 1.5: +517 -362 lines
Diff to previous 1.5 (colored)

Merge NetBSD local changes to new zfs version 22 sources.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 27 22:30:45 2010 UTC (14 years, 1 month ago) by haad
Branch: sun, FreeBSD
CVS Tags: osnet-20100224
Changes since 1.1.1.1: +519 -363 lines
Diff to previous 1.1.1.1 (colored)

Import new Opensolaris sources for zfs/dtrace.

Opensolaris mercurial changeset: 11751:58c0c8f4305f

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 11 10:58:06 2009 UTC (14 years, 6 months ago) by haad
Branch: MAIN
CVS Tags: matt-premerge-20091211, darran-pre-netbsd, darran-pre-freebsd, darran-pre-dtrace
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

Cast physmem to (uint64_t) so it works on a amd64 system with more than 4Gb ram.
undef btop if it was already included from other NetBSD header file.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 12 21:52:41 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN
Changes since 1.3: +29 -3 lines
Diff to previous 1.3 (colored)

Register callbacks for reclaiming kvm kernel space to arc. Unregister both
kvm address space and memory callbacks from kernel during arc_fini call.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 10 22:38:02 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN
Changes since 1.2: +36 -2 lines
Diff to previous 1.2 (colored)

Add some NetBSD fixes which I have forgot to commit during first round.
With these patches I can build solaris and zfs module again.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 7 20:16:45 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN
Changes since 1.1: +31 -8 lines
Diff to previous 1.1 (colored)

Add NetBSD specific changes to OpenSolaris code. These changes were made
by Andrew Doran and me. Thank you Andrew for your great help.

Oked by core@ and ad@.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Fri Aug 7 18:32:51 2009 UTC (14 years, 8 months ago) by haad
Branch: sun, FreeBSD
CVS Tags: osnet-20081117
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import Opensolaris source code used with zfs port. Zfs code si from date 
200811.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 7 18:32:51 2009 UTC (14 years, 8 months ago) by haad
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>