The NetBSD Project

CVS log for src/sys/kern/subr_pool.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: netbsd-1-4


Revision 1.21.2.4 / (download) - annotate - [select for diffs], Fri Jun 25 00:08:22 1999 UTC (15 years, 4 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.21.2.3: +8 -8 lines
Diff to previous 1.21.2.3 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

somehow, the last commit was botched. fix it

Revision 1.21.2.3 / (download) - annotate - [select for diffs], Thu Jun 24 16:14:35 1999 UTC (15 years, 4 months ago) by perry
Branch: netbsd-1-4
Changes since 1.21.2.2: +7 -2 lines
Diff to previous 1.21.2.2 (colored) to branchpoint 1.21 (colored)

pullup 1.26->1.27 (pk): deal with missing "raise interrupt level" code

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Wed Apr 7 00:34:55 1999 UTC (15 years, 6 months ago) by thorpej
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: kame, chs-ubc2
Changes since 1.21.2.1: +22 -11 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored)

Pull up 1.22 -> 1.23.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sun Apr 4 17:20:14 1999 UTC (15 years, 6 months ago) by chs
Branch: netbsd-1-4
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

pull up rev 1.22.  approved by perry.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 31 23:23:48 1999 UTC (15 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.20: +185 -124 lines
Diff to previous 1.20 (colored)

Yet more fixes to the pool allocator:

- Protect userspace from unnecessary header inclusions (as noted on
current-users).

- Some const poisioning.

- GREATLY simplify the locking protocol, and fix potential deadlock
scenarios.  In particular, assume that the back-end page allocator
provides its own locking mechanism (this is currently true for all
such allocators in the NetBSD kernel).  Doing so allows us to simply
use one spin lock for serialized access to all r/w members of the pool
descriptor.  The spin lock is released before calling the back-end
allocator, and re-acquired upon return from it.

- Fix a problem in pr_rmpage() where a data structure was referenced
after it was freed.

- Minor tweak to page manaement.  Migrate both idle and empty pages
to the end of the page list.  As soon as a page becomes un-empty
(by a pool_put()), place it at the head of the page list, and set
curpage to point to it.  This reduces fragmentation as well as the
time required to find a non-empty page as soon as curpage becomes
empty again.

- Use mono_time throughout, and protect access to it w/ splclock().

- In pool_reclaim(), if freeing an idle page would reduce the number
of allocatable items to below the low water mark, don't.

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>