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


Revision 1.198.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (4 months ago) by tls
Branch: tls-maxphys
Changes since 1.198.2.2: +104 -5 lines
Diff to previous 1.198.2.2 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored) to selected 1.160 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.201.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (4 months, 1 week ago) by tls
Branch: tls-earlyentropy
Changes since 1.201: +103 -5 lines
Diff to previous 1.201 (colored) next main 1.202 (colored) to selected 1.160 (colored)

Rebase.

Revision 1.203 / (download) - annotate - [select for diffs], Fri Jun 13 19:09:07 2014 UTC (6 months, 1 week ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, nick-nhusb, netbsd-7-base, netbsd-7, HEAD
Changes since 1.202: +101 -3 lines
Diff to previous 1.202 (colored) to selected 1.160 (colored)

Add kern.pool for memory pool stats.

Revision 1.190.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.190.2.3: +22 -10 lines
Diff to previous 1.190.2.3 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored) to selected 1.160 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.194.2.2 / (download) - annotate - [select for diffs], Wed May 21 20:34:38 2014 UTC (7 months ago) by bouyer
Branch: netbsd-6
Changes since 1.194.2.1: +4 -4 lines
Diff to previous 1.194.2.1 (colored) to branchpoint 1.194 (colored) next main 1.195 (colored) to selected 1.160 (colored)

Pull up following revision(s) (requested by abs in ticket #1054):
	sys/kern/subr_pool.c: revision 1.202
Ensure pool_head is non static - for "vmstat -i"

Revision 1.200.6.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:07 2014 UTC (7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.200: +7 -6 lines
Diff to previous 1.200 (colored) next main 1.201 (colored) to selected 1.160 (colored)

sync with head

Revision 1.202 / (download) - annotate - [select for diffs], Sat Apr 26 16:30:05 2014 UTC (7 months, 3 weeks ago) by abs
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.201: +4 -4 lines
Diff to previous 1.201 (colored) to selected 1.160 (colored)

Ensure pool_head is non static - for "vmstat -i"

Revision 1.201 / (download) - annotate - [select for diffs], Mon Feb 17 20:40:06 2014 UTC (10 months ago) by para
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.200: +5 -4 lines
Diff to previous 1.200 (colored) to selected 1.160 (colored)

replace vmem(9) custom boundary tag allocation with a pool(9)

Revision 1.198.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:58 2013 UTC (17 months, 4 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.198.2.1: +15 -4 lines
Diff to previous 1.198.2.1 (colored) to branchpoint 1.198 (colored) to selected 1.160 (colored)

resync from head

Revision 1.200 / (download) - annotate - [select for diffs], Mon Mar 11 21:37:54 2013 UTC (21 months, 1 week ago) by pooka
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.199: +15 -4 lines
Diff to previous 1.199 (colored) to selected 1.160 (colored)

In pool_cache_put_slow(), pool_get() can block (it does mutex_enter()),
so we need to retry if curlwp took a context switch during the call.
Otherwise, CPU-local invariants can get screwed up:

    panic: kernel diagnostic assertion "cur->pcg_avail == cur->pcg_size" failed

This is (was) very easy to reproduce by just running:

  while : ; do RUMP_NCPU=32 ./a.out ; done

where a.out only calls rump_init().  But, any situation there's contention
and a pool doesn't have emptygroups would do.

Revision 1.198.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:53 2013 UTC (21 months, 3 weeks ago) by tls
Branch: tls-maxphys
Changes since 1.198: +4 -4 lines
Diff to previous 1.198 (colored) to selected 1.160 (colored)

resync with head

Revision 1.199 / (download) - annotate - [select for diffs], Sat Feb 9 00:31:21 2013 UTC (22 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.198: +4 -4 lines
Diff to previous 1.198 (colored) to selected 1.160 (colored)

printflike maintenance.

Revision 1.190.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:34 2012 UTC (2 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.190.2.2: +35 -47 lines
Diff to previous 1.190.2.2 (colored) to branchpoint 1.190 (colored) to selected 1.160 (colored)

sync with head

Revision 1.198 / (download) - annotate - [select for diffs], Tue Aug 28 15:52:19 2012 UTC (2 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.197: +6 -2 lines
Diff to previous 1.197 (colored) to selected 1.160 (colored)

proper locking for DEBUG

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Mon Jul 2 19:04:42 2012 UTC (2 years, 5 months ago) by jdc
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.194: +10 -21 lines
Diff to previous 1.194 (colored) to selected 1.160 (colored)

Pull up revisions:
  src/sys/kern/subr_pool.c revision 1.196
  src/share/man/man9/pool_cache.9 patch
(requested by jym in ticket #366).

As pool reclaiming is unlikely to happen at interrupt or softint
context, re-enable the portion of code that allows invalidation of
CPU-bound pool caches.

Two reasons:
- CPU cached objects being invalidated, the probability of fetching an
obsolete object from the pool_cache(9) is greatly reduced. This speeds
up pool_cache_get() quite a bit as it does not have to keep destroying
objects until it finds an updated one when an invalidation is in progress.

- for situations where we have to ensure that no obsolete object remains
after a state transition (canonical example: pmap mappings between Xen
VM restoration), invalidating all pool_cache(9) is the safest way to go.

As it uses xcall(9) to broadcast the execution of pool_cache_transfer(),
pool_cache_invalidate() cannot be called from interrupt or softint
context (scheduling a xcall(9) can put a LWP to sleep).

pool_cache_xcall() => pool_cache_transfer() to reflect its use.

Invalidation being a costly process (1000s objects may be destroyed),
all places where pool_cache_invalidate() may be called from
interrupt/softint context will now get caught by the proper KASSERT(),
and fixed. Ping me when you see one.

Tested under i386 and amd64 by running ATF suite within 64MiB HVM
domains (tried triggering pgdaemon a few times).

No objection on tech-kern@.

XXX a similar fix has to be pulled up to NetBSD-6, but with a more
conservative approach.

See http://mail-index.netbsd.org/tech-kern/2012/05/29/msg013245.html

Revision 1.197 / (download) - annotate - [select for diffs], Tue Jun 5 22:51:47 2012 UTC (2 years, 6 months ago) by jym
Branch: MAIN
Changes since 1.196: +11 -35 lines
Diff to previous 1.196 (colored) to selected 1.160 (colored)

Now that pool_cache_invalidate() is synchronous and can handle per-CPU
caches, merge together pool_drain_start() and pool_drain_end() into

bool pool_drain(struct pool **ppp);

"bool" value indicates whether reclaiming was fully done (true) or not (false)
"ppp" will contain a pointer to the pool that was drained (optional).

See http://mail-index.netbsd.org/tech-kern/2012/06/04/msg013287.html

Revision 1.196 / (download) - annotate - [select for diffs], Tue Jun 5 22:28:11 2012 UTC (2 years, 6 months ago) by jym
Branch: MAIN
Changes since 1.195: +23 -15 lines
Diff to previous 1.195 (colored) to selected 1.160 (colored)

As pool reclaiming is unlikely to happen at interrupt or softint
context, re-enable the portion of code that allows invalidation of CPU-bound
pool caches.

Two reasons:
- CPU cached objects being invalidated, the probability of fetching an
obsolete object from the pool_cache(9) is greatly reduced. This speeds up
pool_cache_get() quite a bit as it does not have to keep destroying objects
until it finds an updated one when an invalidation is in progress.

- for situations where we have to ensure that no obsolete object remains
after a state transition (canonical example: pmap mappings between Xen VM
restoration), invalidating all pool_cache(9) is the safest way to go.

As it uses xcall(9) to broadcast the execution of pool_cache_transfer(),
pool_cache_invalidate() cannot be called from interrupt or softint context
(scheduling a xcall(9) can put a LWP to sleep).

pool_cache_xcall() => pool_cache_transfer() to reflect its use.

Invalidation being a costly process (1000s objects may be destroyed),
all places where pool_cache_invalidate() may be called from
interrupt/softint context will now get caught by the proper KASSERT(), and
fixed. Ping me when you see one.

Tested under i386 and amd64 by running ATF suite within 64MiB HVM
domains (tried triggering pgdaemon a few times).

No objection on tech-kern@.

XXX a similar fix has to be pulled up to NetBSD-6, but with a more
conservative approach.

See http://mail-index.netbsd.org/tech-kern/2012/05/29/msg013245.html

Revision 1.190.6.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:33 2012 UTC (2 years, 6 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.190.6.1: +3 -237 lines
Diff to previous 1.190.6.1 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored) to selected 1.160 (colored)

sync to latest -current.

Revision 1.190.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:11 2012 UTC (2 years, 7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.190.2.1: +3 -237 lines
Diff to previous 1.190.2.1 (colored) to branchpoint 1.190 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.195 / (download) - annotate - [select for diffs], Sat May 5 19:15:10 2012 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.194: +3 -237 lines
Diff to previous 1.194 (colored) to selected 1.160 (colored)

G/C POOL_DIAGNOSTIC option.  No objection on tech-kern@.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:28 2012 UTC (2 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.190: +91 -197 lines
Diff to previous 1.190 (colored) to selected 1.160 (colored)

sync with head

Revision 1.190.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:32 2012 UTC (2 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.190: +91 -197 lines
Diff to previous 1.190 (colored) to selected 1.160 (colored)

merge to -current.

Revision 1.194 / (download) - annotate - [select for diffs], Sat Feb 4 22:11:42 2012 UTC (2 years, 10 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.193: +4 -24 lines
Diff to previous 1.193 (colored) to selected 1.160 (colored)

make acorn26 compile by fixing up subpage pool allocations

ok: riz@

Revision 1.193 / (download) - annotate - [select for diffs], Sun Jan 29 20:20:18 2012 UTC (2 years, 10 months ago) by he
Branch: MAIN
Changes since 1.192: +5 -3 lines
Diff to previous 1.192 (colored) to selected 1.160 (colored)

Use the same style for initialization of pool_allocator_kmem under
POOL_SUBPAGE as all the other poll_allocator structs.  Fixes build
problem for acorn26.

Revision 1.192 / (download) - annotate - [select for diffs], Sat Jan 28 00:00:06 2012 UTC (2 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.191: +24 -26 lines
Diff to previous 1.191 (colored) to selected 1.160 (colored)

pool_page_alloc, pool_page_alloc_meta: avoid extra compare, use const.
ffs_mountfs,sys_swapctl: replace memset with kmem_zalloc.
sys_swapctl: move kmem_free outside the lock path.
uvm_init: fix comment, remove pointless numeration of steps.
uvm_map_enter: remove meflagval variable.
Fix some indentation.

Revision 1.191 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:40 2012 UTC (2 years, 10 months ago) by para
Branch: MAIN
Changes since 1.190: +86 -172 lines
Diff to previous 1.190 (colored) to selected 1.160 (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.190 / (download) - annotate - [select for diffs], Tue Sep 27 01:02:39 2011 UTC (3 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.189: +4 -4 lines
Diff to previous 1.189 (colored) to selected 1.160 (colored)

Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html

Revision 1.186.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:35 2011 UTC (3 years, 6 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.186: +8 -3 lines
Diff to previous 1.186 (colored) next main 1.187 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.182.4.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:09 2011 UTC (3 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.182.4.3: +2 -0 lines
Diff to previous 1.182.4.3 (colored) to branchpoint 1.182 (colored) next main 1.183 (colored) to selected 1.160 (colored)

sync with head

Revision 1.189 / (download) - annotate - [select for diffs], Tue Mar 22 15:16:23 2011 UTC (3 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.188: +4 -2 lines
Diff to previous 1.188 (colored) to selected 1.160 (colored)

pnbuf_cache is used all over the place outside of vfs, so put it
in one place to avoid many definitions.

Revision 1.182.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:19 2011 UTC (3 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.182.4.2: +6 -3 lines
Diff to previous 1.182.4.2 (colored) to branchpoint 1.182 (colored) to selected 1.160 (colored)

sync with head

Revision 1.188 / (download) - annotate - [select for diffs], Mon Jan 17 07:36:58 2011 UTC (3 years, 11 months ago) by uebayasi
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.187: +3 -0 lines
Diff to previous 1.187 (colored) to selected 1.160 (colored)

Fix a conditional include.

Revision 1.187 / (download) - annotate - [select for diffs], Mon Jan 17 07:13:32 2011 UTC (3 years, 11 months ago) by uebayasi
Branch: MAIN
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored) to selected 1.160 (colored)

Include internal definitions (uvm/uvm.h) only where necessary.

Revision 1.182.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:30 2010 UTC (4 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.182.2.1: +30 -15 lines
Diff to previous 1.182.2.1 (colored) to branchpoint 1.182 (colored) next main 1.183 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.158.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:42 2010 UTC (4 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.2.4: +38 -22 lines
Diff to previous 1.158.2.4 (colored) to branchpoint 1.158 (colored) next main 1.159 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.182.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:54 2010 UTC (4 years, 5 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.182.4.1: +8 -5 lines
Diff to previous 1.182.4.1 (colored) to branchpoint 1.182 (colored) to selected 1.160 (colored)

sync with head

Revision 1.186 / (download) - annotate - [select for diffs], Thu Jun 3 10:40:17 2010 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Changes since 1.185: +8 -5 lines
Diff to previous 1.185 (colored) to selected 1.160 (colored)

Report result of pool_reclaim() from pool_drain_end().

Revision 1.182.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:58 2010 UTC (4 years, 6 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.182: +32 -19 lines
Diff to previous 1.182 (colored) to selected 1.160 (colored)

sync with head

Revision 1.185 / (download) - annotate - [select for diffs], Wed May 12 08:11:16 2010 UTC (4 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.184: +5 -4 lines
Diff to previous 1.184 (colored) to selected 1.160 (colored)

pool_{cache_}get: improve previous diagnostic by checking for panicstr,
so it wont trigger the assert while trying to dump core on crash.

Revision 1.184 / (download) - annotate - [select for diffs], Wed May 12 03:43:46 2010 UTC (4 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.183: +25 -14 lines
Diff to previous 1.183 (colored) to selected 1.160 (colored)

- Sprinkle asserts to catch calls from interrupt context on IPL_NONE pools.
- Add diagnostic drain attempt.

Revision 1.182.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:12 2010 UTC (4 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.182: +8 -7 lines
Diff to previous 1.182 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.183 / (download) - annotate - [select for diffs], Sun Apr 25 11:49:04 2010 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: uebayasi-xip-base1
Changes since 1.182: +8 -7 lines
Diff to previous 1.182 (colored) to selected 1.160 (colored)

MAXCPUS -> __arraycount

Revision 1.158.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:18 2010 UTC (4 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.2.3: +99 -38 lines
Diff to previous 1.158.2.3 (colored) to branchpoint 1.158 (colored) to selected 1.160 (colored)

sync with head

Revision 1.182 / (download) - annotate - [select for diffs], Wed Jan 20 23:40:42 2010 UTC (4 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.181: +4 -3 lines
Diff to previous 1.181 (colored) to selected 1.160 (colored)

pool_cache_invalidate: comment out invalidation of per-CPU caches (nobody depends
on it, at the moment) until we decide how to fix it (xcall(9) cannot be used from
interrupt context).  XXX: Perhaps implement XC_HIGHPRI.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Jan 3 09:42:22 2010 UTC (4 years, 11 months ago) by mlelstv
Branch: MAIN
Changes since 1.180: +6 -6 lines
Diff to previous 1.180 (colored) to selected 1.160 (colored)

drop __predict micro optimization in pool_init for cleaner code.

Revision 1.180 / (download) - annotate - [select for diffs], Sun Jan 3 01:07:19 2010 UTC (4 years, 11 months ago) by mlelstv
Branch: MAIN
Changes since 1.179: +6 -4 lines
Diff to previous 1.179 (colored) to selected 1.160 (colored)

Pools are created way before the pool subsystem mutexes are
initialized.

Ignore also pool_allocator_lock while the system is in cold state.

When the system has left cold state, uvm_init() should have
also initialized the pool subsystem and the mutexes are
ready to use.

Revision 1.179 / (download) - annotate - [select for diffs], Sat Jan 2 15:20:39 2010 UTC (4 years, 11 months ago) by mlelstv
Branch: MAIN
Changes since 1.178: +21 -17 lines
Diff to previous 1.178 (colored) to selected 1.160 (colored)

Move initialization of pool_allocator_lock before its first use.
This failed on archs where a mutex isn't initialized to a zero
value.

Defer allocation of pool log to the logging action, if allocation
fails, it will be retried the next time something is logged.

Clear pool log on allocation so that ddb doesn't crash when showing
so far unused log entries.

Revision 1.178 / (download) - annotate - [select for diffs], Wed Dec 30 18:57:17 2009 UTC (4 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.177: +15 -4 lines
Diff to previous 1.177 (colored) to selected 1.160 (colored)

Turn PA_INITIALIZED to a reference count for the pool allocator, and once
it drops to zero destroy the mutex we initialize. This fixes the problem
mentioned in

	http://mail-index.netbsd.org/tech-kern/2009/12/28/msg006727.html

Also remove pa_flags now that it's no longer needed.

Idea from matt@, okay matt@.

Revision 1.177 / (download) - annotate - [select for diffs], Tue Oct 20 17:24:22 2009 UTC (5 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.176: +3 -3 lines
Diff to previous 1.176 (colored) to selected 1.160 (colored)

Fix a bug where on MP systems, pool_cache_invalidate(9) could be called
early during boot, just after CPUs are attached but before they are marked
as running.

This will result in a list of CPUs without the SPCF_RUNNING flag set, and
will trigger the 'KASSERT(xc_tailp < xc_headp)' in xc_lowpri() as no cross
call is issued.

Bug reported and patch tested by tron@.

See also http://mail-index.netbsd.org/tech-kern/2009/10/19/msg006293.html

Revision 1.176 / (download) - annotate - [select for diffs], Thu Oct 15 20:50:12 2009 UTC (5 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.175: +24 -16 lines
Diff to previous 1.175 (colored) to selected 1.160 (colored)

- pool_cache_invalidate(): broadcast a cross-call to drain the per-CPU
  caches before draining the global cache.
- pool_cache_invalidate_local(): remove.

Revision 1.175 / (download) - annotate - [select for diffs], Thu Oct 8 21:54:45 2009 UTC (5 years, 2 months ago) by jym
Branch: MAIN
Changes since 1.174: +54 -19 lines
Diff to previous 1.174 (colored) to selected 1.160 (colored)

Add pool_cache_invalidate_local() to the pool_cache(9) API, to permit
per-CPU objects invalidation when cached in the pool cache.

See http://mail-index.netbsd.org/tech-kern/2009/10/05/msg006206.html .

Reviewed by bouyer@. Thanks!

Revision 1.158.2.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:38:01 2009 UTC (5 years, 3 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.2.2: +3 -10 lines
Diff to previous 1.158.2.2 (colored) to branchpoint 1.158 (colored) to selected 1.160 (colored)

sync with head

Revision 1.174 / (download) - annotate - [select for diffs], Sun Sep 13 18:45:11 2009 UTC (5 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8
Changes since 1.173: +2 -9 lines
Diff to previous 1.173 (colored) to selected 1.160 (colored)

Wipe out the last vestiges of POOL_INIT with one swift stroke.  In
most cases, use a proper constructor.  For proplib, give a local
equivalent of POOL_INIT for the kernel object implementation.  This
way the code structure can be preserved, and a local link set is
not hazardous anyway (unless proplib is split to several modules,
but that'll be the day).

tested by booting a kernel in qemu and compile-testing i386/ALL

Revision 1.173 / (download) - annotate - [select for diffs], Sat Aug 29 00:09:02 2009 UTC (5 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.172: +3 -3 lines
Diff to previous 1.172 (colored) to selected 1.160 (colored)

Make pool_head static.

Revision 1.171.4.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (5 years, 7 months ago) by jym
Branch: jym-xensuspend
Changes since 1.171: +3 -2 lines
Diff to previous 1.171 (colored) next main 1.172 (colored) to selected 1.160 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.158.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (5 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158.2.1: +123 -162 lines
Diff to previous 1.158.2.1 (colored) to branchpoint 1.158 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.170.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:00 2009 UTC (5 years, 7 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.170.2.1: +3 -2 lines
Diff to previous 1.170.2.1 (colored) to branchpoint 1.170 (colored) next main 1.171 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.172 / (download) - annotate - [select for diffs], Wed Apr 15 11:45:18 2009 UTC (5 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.171: +3 -2 lines
Diff to previous 1.171 (colored) to selected 1.160 (colored)

pool_cache_put_paddr: add an assertion.

Revision 1.170.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:39 2009 UTC (5 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.170: +22 -11 lines
Diff to previous 1.170 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.151.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (5 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.151.6.3: +21 -10 lines
Diff to previous 1.151.6.3 (colored) to branchpoint 1.151 (colored) next main 1.152 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.165.2.3 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (6 years ago) by haad
Branch: haad-dm
Changes since 1.165.2.2: +22 -11 lines
Diff to previous 1.165.2.2 (colored) next main 1.166 (colored) to selected 1.160 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.170.4.1 / (download) - annotate - [select for diffs], Mon Nov 17 18:46:11 2008 UTC (6 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.170: +22 -11 lines
Diff to previous 1.170 (colored) next main 1.171 (colored) to selected 1.160 (colored)

Pull up following revision(s) (requested by ad in ticket #72):
	sys/kern/subr_pool.c: revision 1.171
Avoid recursive mutex_enter() when the system is low on KVA.
Should fix crash reported by riz on current-users.

Revision 1.171 / (download) - annotate - [select for diffs], Tue Nov 11 16:13:03 2008 UTC (6 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.170: +22 -11 lines
Diff to previous 1.170 (colored) to selected 1.160 (colored)

Avoid recursive mutex_enter() when the system is low on KVA.
Should fix crash reported by riz on current-users.

Revision 1.165.2.2 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:28 2008 UTC (6 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.165.2.1: +3006 -0 lines
Diff to previous 1.165.2.1 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.170 / (download) - annotate - [select for diffs], Wed Oct 15 08:13:17 2008 UTC (6 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.169: +3 -3 lines
Diff to previous 1.169 (colored) to selected 1.160 (colored)

- Rename cpu_lookup_byindex() to cpu_lookup(). The hardware ID isn't of
  interest to MI code. No functional change.
- Change /dev/cpu to operate on cpu index, not hardware ID. Now cpuctl
  shouldn't print confused output.

Revision 1.151.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:53 2008 UTC (6 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.151.6.2: +109 -154 lines
Diff to previous 1.151.6.2 (colored) to branchpoint 1.151 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.160.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:43 2008 UTC (6 years, 3 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.160.2.1: +111 -156 lines
Diff to previous 1.160.2.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored) to selected 1.160 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.169 / (download) - annotate - [select for diffs], Mon Aug 11 02:48:42 2008 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.168: +7 -7 lines
Diff to previous 1.168 (colored) to selected 1.160 (colored)

make pcg_dummy const to catch bugs earlier.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Aug 11 02:46:40 2008 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.167: +10 -2 lines
Diff to previous 1.167 (colored) to selected 1.160 (colored)

add some KASSERTs.

Revision 1.167 / (download) - annotate - [select for diffs], Fri Aug 8 16:58:01 2008 UTC (6 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.166: +3 -3 lines
Diff to previous 1.166 (colored) to selected 1.160 (colored)

Comment whitespace.

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:49 2008 UTC (6 years, 5 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.161: +102 -155 lines
Diff to previous 1.161 (colored) next main 1.162 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.166 / (download) - annotate - [select for diffs], Wed Jul 9 02:43:53 2008 UTC (6 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.165: +2 -5 lines
Diff to previous 1.165 (colored) to selected 1.160 (colored)

pool_do_put: fix a pool corruption bug discovered by
the recent exec_pool changes.

Revision 1.165.2.1, Mon Jul 7 12:27:19 2008 UTC (6 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.165: +0 -3001 lines
FILE REMOVED

file subr_pool.c was added on branch haad-dm on 2008-10-19 22:17:28 +0000

Revision 1.165 / (download) - annotate - [select for diffs], Mon Jul 7 12:27:19 2008 UTC (6 years, 5 months ago) by yamt
Branch: MAIN
Branch point for: haad-dm
Changes since 1.164: +10 -6 lines
Diff to previous 1.164 (colored) to selected 1.160 (colored)

fix pool corruption bugs in subr_pool.c 1.162.

Revision 1.164 / (download) - annotate - [select for diffs], Fri Jul 4 16:41:00 2008 UTC (6 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.163: +3 -3 lines
Diff to previous 1.163 (colored) to selected 1.160 (colored)

Move an assignment later.

Revision 1.163 / (download) - annotate - [select for diffs], Fri Jul 4 16:38:59 2008 UTC (6 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.162: +30 -44 lines
Diff to previous 1.162 (colored) to selected 1.160 (colored)

- Keep cache locked while allocating a cache group - later we might want
  to automatically tune the group sizes at run time.
- Fix broken assertion.
- Avoid another test+branch.

Revision 1.162 / (download) - annotate - [select for diffs], Fri Jul 4 13:28:08 2008 UTC (6 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.161: +110 -150 lines
Diff to previous 1.161 (colored) to selected 1.160 (colored)

Remove a bunch of conditional branches from the pool_cache fast path.

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (6 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.160: +5 -11 lines
Diff to previous 1.160 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (6 years, 6 months ago) by yamt
Branch: yamt-pf42
Changes since 1.156.2.1: +5 -11 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored) to selected 1.160 (colored)

sync with head

Revision 1.151.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:11 2008 UTC (6 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.151.6.1: +9 -38 lines
Diff to previous 1.151.6.1 (colored) to branchpoint 1.151 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.161 / (download) - annotate - [select for diffs], Sat May 31 13:31:25 2008 UTC (6 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.160: +5 -11 lines
Diff to previous 1.160 (colored)

Use __noinline.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:09 2008 UTC (6 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.156: +8 -31 lines
Diff to previous 1.156 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:26 2008 UTC (6 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.158: +4 -11 lines
Diff to previous 1.158 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.160 / (download) - annotate - [selected], Mon Apr 28 20:24:04 2008 UTC (6 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.159: +2 -9 lines
Diff to previous 1.159 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.159 / (download) - annotate - [select for diffs], Mon Apr 28 15:36:01 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.158: +4 -4 lines
Diff to previous 1.158 (colored) to selected 1.160 (colored)

Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.

Revision 1.158 / (download) - annotate - [select for diffs], Sun Apr 27 11:37:48 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.157: +4 -4 lines
Diff to previous 1.157 (colored) to selected 1.160 (colored)

- Rename crit_enter/crit_exit to kpreempt_disable/kpreempt_enable.
  DragonflyBSD uses the crit names for something quite different.
- Add a kpreempt_disabled function for diagnostic assertions.
- Add inline versions of kpreempt_enable/kpreempt_disable for primitives.
- Make some more changes for preemption safety to the x86 pmap.

Revision 1.157 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:36 2008 UTC (6 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.156: +6 -22 lines
Diff to previous 1.156 (colored) to selected 1.160 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.151.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:03 2008 UTC (6 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.151: +14 -15 lines
Diff to previous 1.151 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.156 / (download) - annotate - [select for diffs], Thu Mar 27 18:30:15 2008 UTC (6 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.155: +6 -8 lines
Diff to previous 1.155 (colored) to selected 1.160 (colored)

Replace use of CACHE_LINE_SIZE in some obvious places.

Revision 1.101.2.13 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.12: +6 -4 lines
Diff to previous 1.101.2.12 (colored) next main 1.102 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.151.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (6 years, 9 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.151: +10 -9 lines
Diff to previous 1.151 (colored) next main 1.152 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.131.2.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:00 2008 UTC (6 years, 9 months ago) by matt
Branch: matt-armv6
Changes since 1.131.2.3: +23 -20 lines
Diff to previous 1.131.2.3 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored) to selected 1.160 (colored)

sync with HEAD

Revision 1.155 / (download) - annotate - [select for diffs], Mon Mar 17 17:05:54 2008 UTC (6 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.154: +6 -4 lines
Diff to previous 1.154 (colored) to selected 1.160 (colored)

Make them compile again.

Revision 1.101.2.12 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.11: +6 -7 lines
Diff to previous 1.101.2.11 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Mar 17 08:27:50 2008 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored) to selected 1.160 (colored)

- simplify ASSERT_SLEEPABLE.
- move it from proc.h to systm.h.
- add some more checks.
- make it a little more lkm friendly.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Mar 10 22:20:14 2008 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.152: +3 -3 lines
Diff to previous 1.152 (colored) to selected 1.160 (colored)

Use cpu index instead of the machine dependend, not very expressive
cpuid when naming user-visible kernel entities.

Revision 1.152 / (download) - annotate - [select for diffs], Sun Mar 2 12:19:58 2008 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.151: +3 -4 lines
Diff to previous 1.151 (colored) to selected 1.160 (colored)

pool_do_put: remove pa_starved_p check for now as it seems to cause
more problems than it solves.  PR/37993 from Greg A. Woods.

Revision 1.101.2.11 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:56 2008 UTC (6 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.10: +13 -13 lines
Diff to previous 1.101.2.10 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.133.4.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (6 years, 10 months ago) by mjf
Branch: mjf-devfs
Changes since 1.133.4.3: +78 -57 lines
Diff to previous 1.133.4.3 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.151 / (download) - annotate - [select for diffs], Thu Feb 14 11:45:24 2008 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.150: +13 -13 lines
Diff to previous 1.150 (colored) to selected 1.160 (colored)

use time_uptime instead of getmicrotime() for ph_time.

Revision 1.101.2.10 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.9: +3 -3 lines
Diff to previous 1.101.2.9 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.150 / (download) - annotate - [select for diffs], Tue Feb 5 10:11:19 2008 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored) to selected 1.160 (colored)

Revert previous as requested by yamt.

Revision 1.101.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:16 2008 UTC (6 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.8: +5 -3 lines
Diff to previous 1.101.2.8 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.149 / (download) - annotate - [select for diffs], Sat Feb 2 20:21:55 2008 UTC (6 years, 10 months ago) by skrll
Branch: MAIN
Changes since 1.148: +3 -3 lines
Diff to previous 1.148 (colored) to selected 1.160 (colored)

Check alignment against pp->pr_align not pp->pr_alloc->pa_pagesz.

DIAGNOSTIC kernels on hppa boot again.

OK'd by ad.

Revision 1.148 / (download) - annotate - [select for diffs], Mon Jan 28 10:26:12 2008 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.147: +4 -2 lines
Diff to previous 1.147 (colored) to selected 1.160 (colored)

pool_cache_get_paddr: don't bother to clear pcgo_va unless DIAGNOSTIC.

Revision 1.101.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:20 2008 UTC (6 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.7: +266 -75 lines
Diff to previous 1.101.2.7 (colored) to selected 1.160 (colored)

sync with head

Revision 1.131.2.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:18 2008 UTC (6 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.131.2.2: +363 -146 lines
Diff to previous 1.131.2.2 (colored) to branchpoint 1.131 (colored) to selected 1.160 (colored)

sync with HEAD

Revision 1.138.4.3 / (download) - annotate - [select for diffs], Tue Jan 8 22:11:40 2008 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.138.4.2: +0 -1 lines
Diff to previous 1.138.4.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Fri Jan 4 21:18:13 2008 UTC (6 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.146: +2 -3 lines
Diff to previous 1.146 (colored) to selected 1.160 (colored)

Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.

Revision 1.138.4.2 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:09 2008 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.138.4.1: +196 -61 lines
Diff to previous 1.138.4.1 (colored) to branchpoint 1.138 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.146 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:53 2008 UTC (6 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.145: +17 -11 lines
Diff to previous 1.145 (colored) to selected 1.160 (colored)

Merge vmlocking2 to head.

Revision 1.137.2.7 / (download) - annotate - [select for diffs], Mon Dec 31 16:25:02 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.137.2.6: +5 -3 lines
Diff to previous 1.137.2.6 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored) to selected 1.160 (colored)

Make pool_cache_disable work again.

Revision 1.137.2.6 / (download) - annotate - [select for diffs], Fri Dec 28 15:06:20 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.137.2.5: +14 -10 lines
Diff to previous 1.137.2.5 (colored) to branchpoint 1.137 (colored) to selected 1.160 (colored)

pool_cache_put_slow: fill cc_previous if empty. Pointed out by yamt@.

Revision 1.133.4.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:08 2007 UTC (6 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.133.4.2: +206 -34 lines
Diff to previous 1.133.4.2 (colored) to branchpoint 1.133 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.137.2.5 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:42 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.137.2.4: +204 -36 lines
Diff to previous 1.137.2.4 (colored) to branchpoint 1.137 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.137.2.4 / (download) - annotate - [select for diffs], Wed Dec 26 17:55:57 2007 UTC (6 years, 11 months ago) by ad
Branch: vmlocking2
Changes since 1.137.2.3: +3 -2 lines
Diff to previous 1.137.2.3 (colored) to branchpoint 1.137 (colored) to selected 1.160 (colored)

Need sys/atomic.h here.

Revision 1.145 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:36 2007 UTC (6 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.144: +50 -36 lines
Diff to previous 1.144 (colored) to selected 1.160 (colored)

Merge more changes from vmlocking2, mainly:

- Locking improvements.
- Use pool_cache for more items.

Revision 1.144 / (download) - annotate - [select for diffs], Sat Dec 22 04:31:34 2007 UTC (7 years ago) by yamt
Branch: MAIN
Changes since 1.143: +1 -1 lines
Diff to previous 1.143 (colored) to selected 1.160 (colored)

pool_in_cg: don't bother to check slots past pcg_avail.

Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 22 03:28:48 2007 UTC (7 years ago) by yamt
Branch: MAIN
Changes since 1.142: +98 -4 lines
Diff to previous 1.142 (colored) to selected 1.160 (colored)

pool_whatis: print cached items as well.

Revision 1.142 / (download) - annotate - [select for diffs], Thu Dec 20 23:49:10 2007 UTC (7 years ago) by ad
Branch: MAIN
Changes since 1.141: +41 -20 lines
Diff to previous 1.141 (colored) to selected 1.160 (colored)

- Support two different sizes of pool_cache group. The default has 14 or 15
  items, and the new large groups (for busy caches) have 62 or 63 items.
- Add PR_LARGECACHE flag as a hint that a pool_cache should use large groups.
  This should be eventually be tuned at runtime.
- Report group size for vmstat -C.

Revision 1.137.2.3 / (download) - annotate - [select for diffs], Sat Dec 15 02:22:22 2007 UTC (7 years ago) by ad
Branch: vmlocking2
Changes since 1.137.2.2: +43 -33 lines
Diff to previous 1.137.2.2 (colored) to branchpoint 1.137 (colored) to selected 1.160 (colored)

Sort list of pools/caches to make easier them easier to find.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Thu Dec 13 21:56:54 2007 UTC (7 years ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.138: +73 -16 lines
Diff to previous 1.138 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Thu Dec 13 05:06:01 2007 UTC (7 years ago) by yamt
Branch: yamt-kmem
Changes since 1.138.2.2: +73 -16 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.141 / (download) - annotate - [select for diffs], Thu Dec 13 02:45:10 2007 UTC (7 years ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3
Changes since 1.140: +74 -19 lines
Diff to previous 1.140 (colored) to selected 1.160 (colored)

add ddb "whatis" command.  inspired from solaris ::whatis dcmd.

Revision 1.140 / (download) - annotate - [select for diffs], Thu Dec 13 01:22:50 2007 UTC (7 years ago) by yamt
Branch: MAIN
Changes since 1.139: +6 -4 lines
Diff to previous 1.139 (colored) to selected 1.160 (colored)

don't forget to initialize ph_off for PR_NOTOUCH.

Revision 1.137.2.2 / (download) - annotate - [select for diffs], Wed Dec 12 22:03:31 2007 UTC (7 years ago) by ad
Branch: vmlocking2
Changes since 1.137.2.1: +14 -7 lines
Diff to previous 1.137.2.1 (colored) to branchpoint 1.137 (colored) to selected 1.160 (colored)

Add a global 'pool_cache_disable', to be set from the debugger. Helpful
when tracking down leaks.

Revision 1.139 / (download) - annotate - [select for diffs], Tue Dec 11 19:07:27 2007 UTC (7 years ago) by ad
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored) to selected 1.160 (colored)

Change the ncpu test to work when a pool_cache or softint is initialized
between mi_cpu_attach() and attachment of the boot CPU. Suggested by mrg@.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Mon Dec 10 12:56:10 2007 UTC (7 years ago) by yamt
Branch: yamt-kmem
Changes since 1.138.2.1: +10 -10 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) to selected 1.160 (colored)

- separate kernel va allocation (kernel_va_arena) from
  in-kernel fault handling (kernel_map).
- add vmem bootstrap code.  vmem doesn't rely on malloc anymore.
- make kmem_alloc interrupt-safe.
- kill kmem_map.  make malloc a wrapper of kmem_alloc.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Dec 10 08:56:56 2007 UTC (7 years ago) by yamt
Branch: yamt-kmem
Changes since 1.138: +16 -3 lines
Diff to previous 1.138 (colored) to selected 1.160 (colored)

add pool_cache_bootstrap_destroy.  will be used by vmem.

Revision 1.129.12.6 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:24 2007 UTC (7 years ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.129.12.5: +18 -4 lines
Diff to previous 1.129.12.5 (colored) to branchpoint 1.129 (colored) next main 1.130 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.133.4.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:37 2007 UTC (7 years ago) by mjf
Branch: mjf-devfs
Changes since 1.133.4.1: +18 -4 lines
Diff to previous 1.133.4.1 (colored) to branchpoint 1.133 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.137.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:46 2007 UTC (7 years ago) by ad
Branch: vmlocking2
Changes since 1.137: +18 -4 lines
Diff to previous 1.137 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.101.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:07 2007 UTC (7 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.6: +38 -30 lines
Diff to previous 1.101.2.6 (colored) to selected 1.160 (colored)

sync with head

Revision 1.138 / (download) - annotate - [select for diffs], Wed Dec 5 06:52:01 2007 UTC (7 years ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base2, yamt-kmem-base, vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, bouyer-xeni386
Changes since 1.137: +18 -4 lines
Diff to previous 1.137 (colored) to selected 1.160 (colored)

pool_init, pool_cache_init: hack around IP input processing which can
not yet safely block without severely confusing soo_write() and friends.
If the pool's IPL is IPL_SOFTNET, initialize the mutex at IPL_VM so that
it's a spinlock. To be dealt with correctly in the near future.

Revision 1.129.12.5 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:03 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.129.12.4: +22 -28 lines
Diff to previous 1.129.12.4 (colored) to branchpoint 1.129 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.133.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:50 2007 UTC (7 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.133: +901 -486 lines
Diff to previous 1.133 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:50 2007 UTC (7 years, 1 month ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.133.2.1: +33 -29 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.137 / (download) - annotate - [select for diffs], Sun Nov 18 16:27:43 2007 UTC (7 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2
Changes since 1.136: +22 -28 lines
Diff to previous 1.136 (colored) to selected 1.160 (colored)

Work around issues with pool_cache on sparc.

Revision 1.101.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:49 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.5: +907 -486 lines
Diff to previous 1.101.2.5 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.129.12.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:44 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.129.12.3: +15 -5 lines
Diff to previous 1.129.12.3 (colored) to branchpoint 1.129 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Nov 14 11:14:13 2007 UTC (7 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.135: +13 -3 lines
Diff to previous 1.135 (colored) to selected 1.160 (colored)

fix freecheck.

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:21 2007 UTC (7 years, 1 month ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.133: +897 -486 lines
Diff to previous 1.133 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.129.12.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:08 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.129.12.2: +897 -486 lines
Diff to previous 1.129.12.2 (colored) to branchpoint 1.129 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.135 / (download) - annotate - [select for diffs], Sat Nov 10 07:29:28 2007 UTC (7 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.134: +53 -45 lines
Diff to previous 1.134 (colored) to selected 1.160 (colored)

for PR_NOTOUCH pool_item_header, use a bitmap rather than a freelist.
it saves some space and allows more items per a page.

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:05 2007 UTC (7 years, 1 month ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.131.2.1: +844 -441 lines
Diff to previous 1.131.2.1 (colored) to branchpoint 1.131 (colored) to selected 1.160 (colored)

sync with -HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:23 2007 UTC (7 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.133: +844 -441 lines
Diff to previous 1.133 (colored) to selected 1.160 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:15 2007 UTC (7 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.131: +2 -13 lines
Diff to previous 1.131 (colored) to selected 1.160 (colored)

sync with HEAD

Revision 1.128.2.13 / (download) - annotate - [select for diffs], Thu Nov 1 21:10:14 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.128.2.12: +44 -6 lines
Diff to previous 1.128.2.12 (colored) next main 1.129 (colored) to selected 1.160 (colored)

pool_reclaim: acquire kernel_lock if the pool is at IPL_SOFTCLOCK,
SOFTNET or SOFTSERIAL, as mutexes at these levels must still be
spinlocks. It's not yet safe for e.g. ip_intr() to block as this
upsets code calling up from the socket layer. It can find pcbs
sitting half baked.

pool_cache_xcall: go to splvm to prevent kernel_lock from being
taken, for the reason listed above.

Pointed out by yamt@.

Revision 1.128.2.12 / (download) - annotate - [select for diffs], Mon Oct 29 16:37:44 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.128.2.11: +12 -9 lines
Diff to previous 1.128.2.11 (colored) to selected 1.160 (colored)

pool_drain_start: tweak assertions/comments.

Revision 1.101.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:33 2007 UTC (7 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.4: +2 -13 lines
Diff to previous 1.101.2.4 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.128.2.11 / (download) - annotate - [select for diffs], Fri Oct 26 17:03:10 2007 UTC (7 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.128.2.10: +113 -24 lines
Diff to previous 1.128.2.10 (colored) to selected 1.160 (colored)

- Use a cross call to drain the per-CPU component of pool caches.
- When draining, skip over pools that are completly inactive.

Revision 1.129.12.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:40 2007 UTC (7 years, 1 month ago) by joerg
Branch: jmcneill-pm
Changes since 1.129.12.1: +2 -13 lines
Diff to previous 1.129.12.1 (colored) to branchpoint 1.129 (colored) to selected 1.160 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.131.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:46 2007 UTC (7 years, 2 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.131: +2 -13 lines
Diff to previous 1.131 (colored) next main 1.132 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.133 / (download) - annotate - [select for diffs], Thu Oct 11 19:53:37 2007 UTC (7 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.132: +2 -6 lines
Diff to previous 1.132 (colored) to selected 1.160 (colored)

Remove LOCK_ASSERT(!simple_lock_held(&foo));

Revision 1.132 / (download) - annotate - [select for diffs], Thu Oct 11 19:45:25 2007 UTC (7 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.131: +2 -9 lines
Diff to previous 1.131 (colored) to selected 1.160 (colored)

Merge from vmlocking:

- G/C spinlockmgr() and simple_lock debugging.
- Always include the kernel_lock functions, for LKMs.
- Slightly improved subr_lockdebug code.
- Keep sizeof(struct lock) the same if LOCKDEBUG.

Revision 1.128.2.10 / (download) - annotate - [select for diffs], Tue Sep 25 01:36:19 2007 UTC (7 years, 2 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.9: +14 -10 lines
Diff to previous 1.128.2.9 (colored) to selected 1.160 (colored)

If no constructor/destructor are provided for a pool_cache, use nullop.
Remove the tests for pc_ctor/pc_dtor != NULL.

Revision 1.128.2.9 / (download) - annotate - [select for diffs], Mon Sep 10 11:13:17 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.8: +6 -8 lines
Diff to previous 1.128.2.8 (colored) to selected 1.160 (colored)

Fix a deadlock.

Revision 1.128.2.8 / (download) - annotate - [select for diffs], Sun Sep 9 23:17:14 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.7: +16 -55 lines
Diff to previous 1.128.2.7 (colored) to selected 1.160 (colored)

- Re-enable pool_cache, since it works on i386 again after today's pmap
  change. pool_cache_invalidate() no longer invalidates objects stored
  in the per-CPU caches. This needs some thought.
- Remove pcg_get, pcg_put since they are only called from one place each.
- Remove cc_busy assertions, since they don't work correctly. Pointed out
  by yamt@.
- Add some more-assertions and simplify.

Revision 1.129.12.1 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:49 2007 UTC (7 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.129: +28 -9 lines
Diff to previous 1.129 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.101.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:04 2007 UTC (7 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.3: +56 -37 lines
Diff to previous 1.101.2.3 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.129.8.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:02 2007 UTC (7 years, 3 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.129: +28 -9 lines
Diff to previous 1.129 (colored) next main 1.130 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.128.2.7 / (download) - annotate - [select for diffs], Sat Sep 1 12:55:15 2007 UTC (7 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.6: +639 -310 lines
Diff to previous 1.128.2.6 (colored) to selected 1.160 (colored)

- Add a CPU layer to pool caches. In combination with vmem/kmem this
  provides CPU-local slab/object and general purpose allocators. The
  strategy used is as described in Jeff Bonwick's USENIX paper, except in
  at least one place where the described allocation strategy doesn't make
  sense. For exclusive access to the CPU layer the IPL is raised or kernel
  preemption disabled. Where the interrupt priority levels are software
  emulated this is much cheaper than taking a lock, and I think that
  writing to a local %pil register is likely to have a similar penalty to
  taking a lock.

  No tuning of the group sizes is currently done - all groups have 15
  items each, but this should be fairly easy to implement. Also, the
  reclamation mechanism should probably use a cross-call to drain the
  CPU-level caches on remote CPUs.

  Currently this causes kernel memory corruption on i386, yet works without
  a problem on amd64. The cache layer is disabled for the time being until I
  can find the bug.

- Change the pool_cache API so that the caches are themselves dynamically
  allocated, and that each cache is tied to a single pool only. Add some
  stubs to change pool_cache parameters that call directly through to the
  pool layer (e.g. pool_cache_sethiwat). The idea here is that pool_cache
  should become the default object allocator (and so LKM friendly), and
  that the pool allocator should be for kernel-internal use only. This will
  be posted to tech-kern@ for review.

Revision 1.128.2.6 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:37 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.5: +28 -9 lines
Diff to previous 1.128.2.5 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.131 / (download) - annotate - [select for diffs], Sat Aug 18 00:37:14 2007 UTC (7 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5
Branch point for: yamt-x86pmap, matt-armv6
Changes since 1.130: +4 -2 lines
Diff to previous 1.130 (colored) to selected 1.160 (colored)

pool_drain: add a comment.

Revision 1.130 / (download) - annotate - [select for diffs], Sat Aug 18 00:33:38 2007 UTC (7 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.129: +26 -9 lines
Diff to previous 1.129 (colored) to selected 1.160 (colored)

pool_do_cache_invalidate_grouplist: drop locks while calling the destructor.
XXX Expensive - to be revisited.

Revision 1.128.2.5 / (download) - annotate - [select for diffs], Sun Jul 29 11:34:47 2007 UTC (7 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.4: +4 -2 lines
Diff to previous 1.128.2.4 (colored) to selected 1.160 (colored)

Trap free() of areas that contain undestroyed locks. Not a major problem
but it helps to catch bugs.

Revision 1.125.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:04 2007 UTC (7 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.125.2.2: +7 -7 lines
Diff to previous 1.125.2.2 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.128.2.4 / (download) - annotate - [select for diffs], Thu Mar 22 12:30:29 2007 UTC (7 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.3: +3 -12 lines
Diff to previous 1.128.2.3 (colored) to selected 1.160 (colored)

- Remove debugging crud.
- wakeup -> cv_broadcast.

Revision 1.128.2.3 / (download) - annotate - [select for diffs], Wed Mar 21 20:10:22 2007 UTC (7 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.2: +2 -9 lines
Diff to previous 1.128.2.2 (colored) to selected 1.160 (colored)

GC the simplelock/spinlock debugging stuff.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Tue Mar 13 17:50:58 2007 UTC (7 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.128.2.1: +119 -131 lines
Diff to previous 1.128.2.1 (colored) to selected 1.160 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:56 2007 UTC (7 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.128: +7 -7 lines
Diff to previous 1.128 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:34 2007 UTC (7 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.128: +7 -7 lines
Diff to previous 1.128 (colored) to selected 1.160 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.125.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:41 2007 UTC (7 years, 9 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.125.2.1: +25 -25 lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.128 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:07 2007 UTC (7 years, 9 months ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.127: +25 -25 lines
Diff to previous 1.127 (colored) to selected 1.160 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:27 2007 UTC (7 years, 9 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.125: +7 -7 lines
Diff to previous 1.125 (colored) to selected 1.160 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:15 2007 UTC (7 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.2: +28 -12 lines
Diff to previous 1.101.2.2 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:44 2007 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.126: +6 -6 lines
Diff to previous 1.126 (colored) to selected 1.160 (colored)

TRUE -> true, FALSE -> false

Revision 1.126 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:05 2007 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.125: +6 -6 lines
Diff to previous 1.125 (colored) to selected 1.160 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.125 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (7 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.124: +23 -7 lines
Diff to previous 1.124 (colored) to selected 1.160 (colored)

Merge newlock2 to head.

Revision 1.122.2.3 / (download) - annotate - [select for diffs], Fri Jan 19 20:49:54 2007 UTC (7 years, 11 months ago) by ad
Branch: newlock2
Changes since 1.122.2.2: +11 -2 lines
Diff to previous 1.122.2.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored) to selected 1.160 (colored)

Add some DEBUG code to check that items being freed were previously
allocated from the same source. Needs to be enabled via DDB.

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:06 2006 UTC (7 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101.2.1: +64 -37 lines
Diff to previous 1.101.2.1 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.122.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:45 2006 UTC (8 years ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.122.4.1: +11 -12 lines
Diff to previous 1.122.4.1 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.124 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.123: +11 -12 lines
Diff to previous 1.123 (colored) to selected 1.160 (colored)

remove some __unused from function parameters.

Revision 1.122.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (8 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.122: +12 -11 lines
Diff to previous 1.122 (colored) to selected 1.160 (colored)

sync with head

Revision 1.122.2.2 / (download) - annotate - [select for diffs], Fri Oct 20 20:03:56 2006 UTC (8 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.122.2.1: +2 -4 lines
Diff to previous 1.122.2.1 (colored) to branchpoint 1.122 (colored) to selected 1.160 (colored)

Remove sched_lock assertion.

Revision 1.123 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:18 2006 UTC (8 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.122: +12 -11 lines
Diff to previous 1.122 (colored) to selected 1.160 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.122.2.1 / (download) - annotate - [select for diffs], Mon Sep 11 00:12:01 2006 UTC (8 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.122: +14 -5 lines
Diff to previous 1.122 (colored) to selected 1.160 (colored)

From the newlock branch: add some KASSERT() verifying correct alignment.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (8 years, 3 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.111: +285 -262 lines
Diff to previous 1.111 (colored) next main 1.112 (colored) to selected 1.160 (colored)

sync with head

Revision 1.112.2.6 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (8 years, 3 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112.2.5: +62 -35 lines
Diff to previous 1.112.2.5 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Sun Sep 3 06:25:19 2006 UTC (8 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.121: +4 -3 lines
Diff to previous 1.121 (colored) to selected 1.160 (colored)

avoid empty else statement

Revision 1.121 / (download) - annotate - [select for diffs], Sun Aug 20 09:35:25 2006 UTC (8 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.120: +57 -31 lines
Diff to previous 1.120 (colored) to selected 1.160 (colored)

implement PR_NOALIGN.  (allow unaligned pages)
to be used by vmem quantum cache.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Aug 19 14:01:15 2006 UTC (8 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.119: +1 -1 lines
Diff to previous 1.119 (colored) to selected 1.160 (colored)

pool_init: in the case of PR_NOTOUCH, don't bump item size to
sizeof(struct pool_item).

Revision 1.112.2.5 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (8 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112.2.4: +4 -4 lines
Diff to previous 1.112.2.4 (colored) to branchpoint 1.112 (colored) to selected 1.160 (colored)

sync with head

Revision 1.119 / (download) - annotate - [select for diffs], Fri Jul 21 10:08:41 2006 UTC (8 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.118: +4 -4 lines
Diff to previous 1.118 (colored) to selected 1.160 (colored)

use ASSERT_SLEEPABLE where appropriate.

Revision 1.112.2.4 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:57 2006 UTC (8 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112.2.3: +127 -137 lines
Diff to previous 1.112.2.3 (colored) to branchpoint 1.112 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (8 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.101: +423 -375 lines
Diff to previous 1.101 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:16 2006 UTC (8 years, 6 months ago) by chap
Branch: chap-midi
Changes since 1.116: +127 -137 lines
Diff to previous 1.116 (colored) next main 1.117 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.118 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:40 2006 UTC (8 years, 6 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.117: +5 -14 lines
Diff to previous 1.117 (colored) to selected 1.160 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.111.4.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:09 2006 UTC (8 years, 6 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.111.4.2: +124 -125 lines
Diff to previous 1.111.4.2 (colored) next main 1.112 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.117 / (download) - annotate - [select for diffs], Thu May 25 14:27:28 2006 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.116: +124 -125 lines
Diff to previous 1.116 (colored) to selected 1.160 (colored)

move wait points for kva from upper layers to vm_map.  PR/33185 #1.

XXX there is a concern about interaction with kva fragmentation.
see: http://mail-index.NetBSD.org/tech-kern/2006/05/11/0000.html

Revision 1.112.6.2 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (8 years, 7 months ago) by tron
Branch: peter-altq
Changes since 1.112.6.1: +20 -6 lines
Diff to previous 1.112.6.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.160 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.112.2.3 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (8 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112.2.2: +20 -5 lines
Diff to previous 1.112.2.2 (colored) to branchpoint 1.112 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.111.4.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (8 years, 8 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.111.4.1: +98 -92 lines
Diff to previous 1.111.4.1 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.112.4.1 / (download) - annotate - [select for diffs], Wed Apr 19 05:14:00 2006 UTC (8 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.112: +66 -62 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.116 / (download) - annotate - [select for diffs], Sat Apr 15 14:23:11 2006 UTC (8 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, elad-kernelauth-base
Branch point for: chap-midi
Changes since 1.115: +18 -4 lines
Diff to previous 1.115 (colored) to selected 1.160 (colored)

Add a DEBUG check that panics if pool_init() is called more than
once on the same pool.

As discussed on tech-kern a few months ago.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Apr 15 04:47:11 2006 UTC (8 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.114: +4 -3 lines
Diff to previous 1.114 (colored) to selected 1.160 (colored)

Coverity CID 760: Protect against NULL deref.

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Tue Apr 11 11:55:47 2006 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112.2.1: +2 -3 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) to selected 1.160 (colored)

sync with head

Revision 1.114 / (download) - annotate - [select for diffs], Sun Apr 2 13:25:34 2006 UTC (8 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4
Changes since 1.113: +0 -1 lines
Diff to previous 1.113 (colored) to selected 1.160 (colored)

pool_grow: don't increase pr_minpages.  (fix a mistake in 1.113)

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Sat Apr 1 12:07:40 2006 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.112: +49 -59 lines
Diff to previous 1.112 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.112.6.1 / (download) - annotate - [select for diffs], Tue Mar 28 09:42:26 2006 UTC (8 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.112: +49 -59 lines
Diff to previous 1.112 (colored) to selected 1.160 (colored)

Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.

Revision 1.113 / (download) - annotate - [select for diffs], Fri Mar 17 10:09:25 2006 UTC (8 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base3
Changes since 1.112: +49 -59 lines
Diff to previous 1.112 (colored) to selected 1.160 (colored)

make duplicated code fragments into a function, pool_grow.

Revision 1.99.8.1.2.1 / (download) - annotate - [select for diffs], Fri Mar 10 13:19:48 2006 UTC (8 years, 9 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.99.8.1: +32 -30 lines
Diff to previous 1.99.8.1 (colored) next main 1.99.8.2 (colored) to selected 1.160 (colored)

Pull up following revision(s) (requested by bjh21 in ticket #1192):
	sys/sys/pool.h: revision 1.48
	sys/kern/subr_pool.c: revision 1.112
Medium-sized overhaul of POOL_SUBPAGE support so that:
1: I can understand it, and
2: It works.
Notable externally-visible changes are that POOL_SUBPAGE now has to be a
compile-time constant, and that trying to initialise a pool whose objects are
larger than POOL_SUBPAGE automatically generates a pool that doesn't use
subpages.
NetBSD/acorn26 now boots multi-user again.

Revision 1.99.8.2 / (download) - annotate - [select for diffs], Fri Mar 10 13:19:42 2006 UTC (8 years, 9 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.99.8.1: +32 -30 lines
Diff to previous 1.99.8.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.160 (colored)

Pull up following revision(s) (requested by bjh21 in ticket #1192):
	sys/sys/pool.h: revision 1.48
	sys/kern/subr_pool.c: revision 1.112
Medium-sized overhaul of POOL_SUBPAGE support so that:
1: I can understand it, and
2: It works.
Notable externally-visible changes are that POOL_SUBPAGE now has to be a
compile-time constant, and that trying to initialise a pool whose objects are
larger than POOL_SUBPAGE automatically generates a pool that doesn't use
subpages.
NetBSD/acorn26 now boots multi-user again.

Revision 1.110.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:46 2006 UTC (8 years, 9 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.110.2.1: +34 -32 lines
Diff to previous 1.110.2.1 (colored) next main 1.111 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Feb 24 11:46:20 2006 UTC (8 years, 9 months ago) by bjh21
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.111: +34 -32 lines
Diff to previous 1.111 (colored) to selected 1.160 (colored)

Medium-sized overhaul of POOL_SUBPAGE support so that:
1: I can understand it, and
2: It works.
Notable externally-visible changes are that POOL_SUBPAGE now has to be a
compile-time constant, and that trying to initialise a pool whose objects are
larger than POOL_SUBPAGE automatically generates a pool that doesn't use
subpages.

NetBSD/acorn26 now boots multi-user again.

Revision 1.111.4.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:30:17 2006 UTC (8 years, 10 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.111: +5 -14 lines
Diff to previous 1.111 (colored) to selected 1.160 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Wed Feb 1 14:52:20 2006 UTC (8 years, 10 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.160 (colored)

sync with head.

Revision 1.111 / (download) - annotate - [select for diffs], Thu Jan 26 15:07:25 2006 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.110: +3 -3 lines
Diff to previous 1.110 (colored) to selected 1.160 (colored)

PR/32631: Yves-Emmanuel JUTARD: Fix DIAGNOSTIC panic in the pool code. At
the time pool_get() calls pool_catchup(), pp has been free'd but it is still
in the "entered" state. The chain pool_catchup() -> pool_allocator_alloc()
-> pool_reclaim() on pp fails because pp is still in the "entered" state.
Call pr_leave() before calling calling pool_catchup() to avoid this.

Thanks for the excellent analysis!

Revision 1.110 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (8 years, 11 months ago) by perry
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.109: +14 -14 lines
Diff to previous 1.109 (colored) to selected 1.160 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Dec 20 15:52:14 2005 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.108: +12 -9 lines
Diff to previous 1.108 (colored) to selected 1.160 (colored)

Commit temporary fix against kva starvation from yamt:

- pool_allocator_alloc: drain ourselves as well,
  so that pool_cache on us is drained as well.
- pool_cache_put_paddr: destruct objects if underlying pool is starved.
- pool_get: on kva starvation, wake up once a second and try again.

Fixes:
PR/32287: Processes hang in "mclpl"
PR/32330: shark kernel hangs under memory load.

Revision 1.87.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:12 2005 UTC (9 years ago) by christos
Branch: ktrace-lwp
Changes since 1.87.2.6: +18 -2 lines
Diff to previous 1.87.2.6 (colored) next main 1.88 (colored) to selected 1.160 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Dec 1 13:21:05 2005 UTC (9 years ago) by yamt
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.107: +18 -2 lines
Diff to previous 1.107 (colored) to selected 1.160 (colored)

add "show all pools" command for ddb.

Revision 1.87.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (9 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.87.2.5: +226 -163 lines
Diff to previous 1.87.2.5 (colored) to selected 1.160 (colored)

Sync with HEAD. Here we go again...

Revision 1.107 / (download) - annotate - [select for diffs], Wed Nov 2 14:32:54 2005 UTC (9 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead
Changes since 1.106: +3 -7 lines
Diff to previous 1.106 (colored) to selected 1.160 (colored)

pool_printit: don't keep a lock when printing info.
we can't clean it up if ddb pager is quitted.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Oct 16 02:55:18 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, thorpej-vnode-attr-base, thorpej-vnode-attr
Changes since 1.105: +9 -11 lines
Diff to previous 1.105 (colored) to selected 1.160 (colored)

Make the grouplist invalidate function take a grouplist instead of a group.
Suggested by yamt.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Oct 16 02:21:40 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.104: +20 -9 lines
Diff to previous 1.104 (colored) to selected 1.160 (colored)

This is why I hate gotos: My previous change had different semantics than
the original code since if fullgroups was empty and partgroups wasn't, we
would not clean up partgroups (pointed out by yamt). Well, this one has
different semantics from the original, they are the correct ones I think..

Revision 1.104 / (download) - annotate - [select for diffs], Sun Oct 16 00:28:04 2005 UTC (9 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.103: +4 -9 lines
Diff to previous 1.103 (colored) to selected 1.160 (colored)

avoid a goto.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Oct 15 21:22:46 2005 UTC (9 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.102: +21 -12 lines
Diff to previous 1.102 (colored) to selected 1.160 (colored)

in pool_do_cache_invalidate(), make sure to process both full and partial
group lists even if the first one we look at is empty.  fix ddb print routine.

Revision 1.102 / (download) - annotate - [select for diffs], Sun Oct 2 17:29:31 2005 UTC (9 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.101: +155 -131 lines
Diff to previous 1.101 (colored) to selected 1.160 (colored)

optimize pool_caches similarly to how I optimized pools before:
split the single list of pool cache groups into three lists:
completely full, partially full, and completely empty.
use LIST instead of TAILQ where appropriate.

Revision 1.99.8.1 / (download) - annotate - [select for diffs], Sat Jun 18 11:13:12 2005 UTC (9 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1
Branch point for: netbsd-3-0
Changes since 1.99: +114 -84 lines
Diff to previous 1.99 (colored) to selected 1.160 (colored)

Pull up revision 1.101 (requested by thorpej in ticket #474):
Fix some locking issues:
- Make the locking rules for pr_rmpage() sane, and don't modify fields
protected by the pool lock without actually holding it.
- Always defer freeing the pool page to the back-end allocator, to avoid
invoking the pool_allocator with the pool locked (which would violate
the pool_allocator -> pool locking order).
- Fix pool_reclaim() to not violate the pool_cache -> pool locking order
by using a trylock.
Reviewed by Chuq Silvers.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jun 18 01:34:03 2005 UTC (9 years, 6 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.100: +114 -84 lines
Diff to previous 1.100 (colored) to selected 1.160 (colored)

Fix some locking issues:
- Make the locking rules for pr_rmpage() sane, and don't modify fields
  protected by the pool lock without actually holding it.
- Always defer freeing the pool page to the back-end allocator, to avoid
  invoking the pool_allocator with the pool locked (which would violate
  the pool_allocator -> pool locking order).
- Fix pool_reclaim() to not violate the pool_cache -> pool locking order
  by using a trylock.

Reviewed by Chuq Silvers.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (9 years, 7 months ago) by kent
Branch: kent-audio2
Changes since 1.99: +6 -7 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.160 (colored)

sync with -current

Revision 1.87.2.5 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:56 2005 UTC (9 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.87.2.4: +6 -7 lines
Diff to previous 1.87.2.4 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:37 2005 UTC (9 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.99: +6 -7 lines
Diff to previous 1.99 (colored) to selected 1.160 (colored)

merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Tue Jan 25 12:59:35 2005 UTC (9 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.99: +6 -7 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.160 (colored)

convert to new apis.

Revision 1.87.2.4 / (download) - annotate - [select for diffs], Mon Jan 17 19:32:25 2005 UTC (9 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.87.2.3: +238 -70 lines
Diff to previous 1.87.2.3 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Jan 1 21:09:56 2005 UTC (9 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, netbsd-3-base, matt-timespec, kent-audio1-beforemerge
Branch point for: yamt-km, netbsd-3, kent-audio2
Changes since 1.98: +22 -13 lines
Diff to previous 1.98 (colored) to selected 1.160 (colored)

PR_NOTOUCH:
- use uint8_t instead of uint16_t for freelist index.
- set ph_off only if PR_NOTOUCH.
- comment.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Jan 1 21:08:02 2005 UTC (9 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.97: +32 -15 lines
Diff to previous 1.97 (colored) to selected 1.160 (colored)

in the case of !PMAP_MAP_POOLPAGE, gather pool backend allocations to
large chunks for kernel_map and kmem_map to ease kva fragmentation.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Jan 1 21:04:39 2005 UTC (9 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.96: +206 -64 lines
Diff to previous 1.96 (colored) to selected 1.160 (colored)

introduce a new flag for pool_init, PR_NOTOUCH.
if it's specified, don't use free items as storage for internal state.
so that we can use pools for non memory backed objects.
inspired from solaris's KMC_NOTOUCH.

Revision 1.87.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:12 2004 UTC (10 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.87.2.2: +2 -2 lines
Diff to previous 1.87.2.2 (colored) to selected 1.160 (colored)

Fix the sync with head I botched.

Revision 1.87.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (10 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.87.2.1: +0 -0 lines
Diff to previous 1.87.2.1 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:55 2004 UTC (10 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.87: +292 -209 lines
Diff to previous 1.87 (colored) to selected 1.160 (colored)

Sync with HEAD

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Tue Jun 22 08:58:42 2004 UTC (10 years, 6 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.93: +3 -5 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.160 (colored)

Pull up revision 1.96 (requested by thorpej in ticket #522):
Remove PR_IMMEDRELEASE, since setting the high water mark will achieve
the same thing.
Pointed out back in January by YAMAMOTO Takashi.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jun 20 18:19:27 2004 UTC (10 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.95: +3 -5 lines
Diff to previous 1.95 (colored) to selected 1.160 (colored)

Remove PR_IMMEDRELEASE, since setting the high water mark will achieve
the same thing.

Pointed out back in January by YAMAMOTO Takashi.

Revision 1.95 / (download) - annotate - [select for diffs], Thu May 20 05:08:29 2004 UTC (10 years, 7 months ago) by atatat
Branch: MAIN
Changes since 1.94: +5 -2 lines
Diff to previous 1.94 (colored) to selected 1.160 (colored)

Add a DIAGNOSTIC check to detect un-initialized pools.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (10 years, 7 months ago) by simonb
Branch: MAIN
Changes since 1.93: +17 -2 lines
Diff to previous 1.93 (colored) to selected 1.160 (colored)

Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.

Revision 1.93 / (download) - annotate - [select for diffs], Mon Mar 8 22:48:09 2004 UTC (10 years, 9 months ago) by dbj
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.92: +17 -5 lines
Diff to previous 1.92 (colored) to selected 1.160 (colored)

add splvm() around a few pa_slock and psppool calls since they
may be shared with pools that can be used in interrupt context.

Revision 1.92 / (download) - annotate - [select for diffs], Sun Feb 22 00:19:48 2004 UTC (10 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.91: +20 -12 lines
Diff to previous 1.91 (colored) to selected 1.160 (colored)

Modify pool page header allocation strategy as follows:
In addition to current one (i.e., don't wast so large part of the page),
- if the header fitsin the page without wasting any items, put it there.
- don't put the header in the page if it may consume rather big item.

For example, on i386, header is now allocated in the page for the pools
like fdescpl or sigapl, and allocated off the page for the pools like
buf1k or buf2k.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Jan 16 12:47:37 2004 UTC (10 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.90: +23 -8 lines
Diff to previous 1.90 (colored) to selected 1.160 (colored)

- fix locking order problem. (pa_slock -> pr_slock)
- protect pr_phtree with pr_slock.
- add some LOCK_ASSERTs.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Jan 9 19:00:16 2004 UTC (10 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.89: +10 -5 lines
Diff to previous 1.89 (colored) to selected 1.160 (colored)

Add a new pool initialization flag, PR_IMMEDRELEASE.  This flag causes
idle pool pages to be returned to the system immediately upon becoming
de-fragmented.

Also, in pool_do_put(), don't free back an idle page unless we are over
our minimum page claim.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Dec 29 16:04:58 2003 UTC (10 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.88: +6 -3 lines
Diff to previous 1.88 (colored) to selected 1.160 (colored)

pool_prime_page: initialize ph_time to mono_time instead of zero
as it's a mono_time relative value.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Nov 13 02:44:01 2003 UTC (11 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.87: +214 -190 lines
Diff to previous 1.87 (colored) to selected 1.160 (colored)

two changes in improve scalability:

 (1) split the single list of pages allocated to a pool into three lists:
     completely full, partially full, and completely empty.
     there is no longer any need to traverse any list looking for a
     certain type of page.

 (2) replace the 8-element hash table for out-of-page page headers
     with a splay tree.

these two changes (together with the recent enhancements to the wait code)
give us linear scaling for a fork+exit microbenchmark.

Revision 1.87 / (download) - annotate - [select for diffs], Wed Apr 9 18:22:13 2003 UTC (11 years, 8 months ago) by thorpej
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.86: +42 -20 lines
Diff to previous 1.86 (colored) to selected 1.160 (colored)

Add the ability for pool caches to cache the physical address of
objects.  Clients of the pool_cache API must consistently use
the "paddr" variants or not, otherwise behavior is undefined.

Enable this on Alpha, ARM, MIPS, and x86.  Other platforms must
define POOL_VTOPHYS() in the appropriate manner in order to enable
the feature.

Part 1 of a series of simple patches contributed by Wasabi Systems
to improve network performance.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Mar 16 08:06:51 2003 UTC (11 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored) to selected 1.160 (colored)

Only define POOL_LOGSIZE/pool_size if POOL_DIAGNOSTIC is defined.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Feb 23 21:25:19 2003 UTC (11 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.84: +5 -5 lines
Diff to previous 1.84 (colored) to selected 1.160 (colored)

Use splvm() instead of splhigh() when accessing the internal page header pool.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:33 2003 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.160 (colored)

Merge the nathanw_sa branch.

Revision 1.50.2.13 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:08 2002 UTC (12 years ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.50.2.12: +2 -2 lines
Diff to previous 1.50.2.12 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.160 (colored)

Sync with HEAD.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Nov 24 11:37:57 2002 UTC (12 years, 1 month ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored) to selected 1.160 (colored)

Quell uninitialised variable warnings.

Revision 1.76.6.1 / (download) - annotate - [select for diffs], Mon Nov 11 23:31:43 2002 UTC (12 years, 1 month ago) by he
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.76: +5 -3 lines
Diff to previous 1.76 (colored) next main 1.77 (colored) to selected 1.160 (colored)

Pull up revision 1.78 (requested by thorpej in ticket #582):
  Bring down a fix from the "newlock" branch, slightly modified:
   o In pool_prime_page(), assert that the object being placed
     onto the free list meets the alignment constraints (that
     "ioff" within the object is aligned to "align").
   o In pool_init(), round up the object size to the alignment
     value (or ALIGN(1), if no special alignment is needed) so
     that the above invariant holds true.

Revision 1.50.2.12 / (download) - annotate - [select for diffs], Mon Nov 11 22:13:58 2002 UTC (12 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.11: +2 -3 lines
Diff to previous 1.50.2.11 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Catch up to -current

Revision 1.82 / (download) - annotate - [select for diffs], Sat Nov 9 20:12:55 2002 UTC (12 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored) to selected 1.160 (colored)

Fix signed/unsigned comparison warnings.

Revision 1.81 / (download) - annotate - [select for diffs], Fri Nov 8 02:08:57 2002 UTC (12 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored) to selected 1.160 (colored)

Parse the modifier of ddb command as documented.

Revision 1.50.2.11 / (download) - annotate - [select for diffs], Fri Oct 18 02:44:55 2002 UTC (12 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.10: +3 -3 lines
Diff to previous 1.50.2.10 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Catch up to -current.

Revision 1.60.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:14 2002 UTC (12 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.3: +5 -5 lines
Diff to previous 1.60.2.3 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.160 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.80 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:46 2002 UTC (12 years, 2 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored) to selected 1.160 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.60.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:04 2002 UTC (12 years, 3 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.2: +8 -5 lines
Diff to previous 1.60.2.2 (colored) to branchpoint 1.60 (colored) to selected 1.160 (colored)

sync kqueue branch with HEAD

Revision 1.76.4.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:10 2002 UTC (12 years, 3 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.76.4.1: +7 -4 lines
Diff to previous 1.76.4.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored) to selected 1.160 (colored)

catch up with -current.

Revision 1.50.2.10 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:30 2002 UTC (12 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.9: +2 -1 lines
Diff to previous 1.50.2.9 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Catch up to -current.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Aug 25 23:03:40 2002 UTC (12 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.78: +4 -3 lines
Diff to previous 1.78 (colored) to selected 1.160 (colored)

Fix signed/unsigned comparison warnings from GCC 3.3.

Revision 1.50.2.9 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:24 2002 UTC (12 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.8: +6 -4 lines
Diff to previous 1.50.2.8 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Catch up to -current.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Jul 30 01:41:00 2002 UTC (12 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.77: +5 -3 lines
Diff to previous 1.77 (colored) to selected 1.160 (colored)

Bring down a fix from the "newlock" branch, slightly modified:
* In pool_prime_page(), assert that the object being placed onto the
  free list meets the alignment constraints (that "ioff" within the
  object is aligned to "align").
* In pool_init(), round up the object size to the alignment value (or
  ALIGN(1), if no special alignment is needed) so that the above invariant
  holds true.

Revision 1.76.4.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:36:39 2002 UTC (12 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.160 (colored)

catch up with -current.

Revision 1.77 / (download) - annotate - [select for diffs], Thu Jul 11 17:18:48 2002 UTC (12 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.160 (colored)

Add wchan to a panic (must have NOWAIT).

Revision 1.50.2.8 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:56 2002 UTC (12 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.7: +3 -3 lines
Diff to previous 1.50.2.7 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.50.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:56 2002 UTC (12 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.50.2.6: +344 -202 lines
Diff to previous 1.50.2.6 (colored) to branchpoint 1.50 (colored) to selected 1.160 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:50 2002 UTC (12 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.60.2.1: +344 -202 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) to selected