The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:26 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.32: +11 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

sync with head

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:46 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

sync to -current.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 23 12:24:05 2012 UTC (3 months ago) by para
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, HEAD
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

change sched_upreempt_pri default to 0 as discussed on tech-kern@
should improve interactive performance on SMP machines
as user preemption happens immediately in x-cpu wakeup case now

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 2 12:31:03 2011 UTC (5 months, 3 weeks ago) by yamt
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.32: +10 -2 lines
Diff to previous 1.32 (colored)

comments

Revision 1.32 / (download) - annotate - [select for diffs], Sun Aug 7 21:13:05 2011 UTC (9 months, 2 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache
Changes since 1.31: +6 -6 lines
Diff to previous 1.31 (colored)

Remove LW_AFFINITY flag and fix some bugs affinity mask handling.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Aug 7 13:33:01 2011 UTC (9 months, 2 weeks ago) by rmind
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Add kcpuset(9) - a reworked dynamic CPU set implementation for kernel.
Suitable for use during the early boot.  MD and other implementations
should be replaced with this interface.

Discussed on: tech-kern@

Revision 1.22.4.3.4.2 / (download) - annotate - [select for diffs], Sat Feb 5 06:00:14 2011 UTC (15 months, 2 weeks ago) by cliff
Branch: matt-nb5-mips64
Changes since 1.22.4.3.4.1: +4 -2 lines
Diff to previous 1.22.4.3.4.1 (colored) to branchpoint 1.22.4.3 (colored) next main 1.22.4.4 (colored)

- include opt_multiprocessor.h for explicit MULTIPROCESSOR dependency

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:10 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.29: +2 -4 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD.

Revision 1.22.4.3.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:16 2010 UTC (2 years, 1 month ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.22.4.3: +13 -2 lines
Diff to previous 1.22.4.3 (colored)

sync to netbsd-5

Revision 1.3.4.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:17 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3.4.3: +19 -14 lines
Diff to previous 1.3.4.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 3 00:47:30 2010 UTC (2 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.29: +2 -4 lines
Diff to previous 1.29 (colored)

remove redundant checks of PK_MARKER.

Revision 1.22.4.3.2.1 / (download) - annotate - [select for diffs], Sat Jan 16 17:39:07 2010 UTC (2 years, 4 months ago) by bouyer
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE
Changes since 1.22.4.3: +13 -2 lines
Diff to previous 1.22.4.3 (colored) next main 1.22.4.4 (colored)

Pull up following revision(s) (requested by rmind in ticket #1240):
	sys/kern/kern_runq.c: revision 1.28
sched_catchlwp: fix the case when other CPU might see curlwp->l_cpu != curcpu()
while LWP is finishing context switch.  Should fix PR/42539, tested by martin@.

Revision 1.22.4.4 / (download) - annotate - [select for diffs], Sat Jan 16 17:39:01 2010 UTC (2 years, 4 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.22.4.3: +13 -2 lines
Diff to previous 1.22.4.3 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pull up following revision(s) (requested by rmind in ticket #1240):
	sys/kern/kern_runq.c: revision 1.28
sched_catchlwp: fix the case when other CPU might see curlwp->l_cpu != curcpu()
while LWP is finishing context switch.  Should fix PR/42539, tested by martin@.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 13 01:57:17 2010 UTC (2 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.28: +6 -10 lines
Diff to previous 1.28 (colored)

introduce a new function that returns a unique string for each cpu:

	char *cpu_name(struct cpu_info *);

and use it when setting up the runq event counters, avoiding an 8 byte
kmem(4) allocation for each cpu.  there are more places the cpuname is
used that can be converted to using this new interface, but that can
and will be done as future work.

as discussed with rmind.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 30 23:49:59 2009 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
Changes since 1.27: +13 -2 lines
Diff to previous 1.27 (colored)

sched_catchlwp: fix the case when other CPU might see curlwp->l_cpu != curcpu()
while LWP is finishing context switch.  Should fix PR/42539, tested by martin@.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:06 2009 UTC (2 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.24: +8 -4 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

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

Revision 1.3.4.3 / (download) - annotate - [select for diffs], Mon May 4 08:13:47 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3.4.2: +263 -82 lines
Diff to previous 1.3.4.2 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.22.2.1: +8 -4 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 2 21:17:29 2009 UTC (3 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, 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-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.25: +7 -3 lines
Diff to previous 1.25 (colored)

If DEBUG is enabled, drop kpreempt_pri to zero. It means that every
wakeup will cause a kernel preemption, simulating massive concurrency.

Proposed on tech-kern@.

Revision 1.22.4.3 / (download) - annotate - [select for diffs], Mon Mar 2 19:51:01 2009 UTC (3 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0, matt-nb5-mips64
Changes since 1.22.4.2: +3 -3 lines
Diff to previous 1.22.4.2 (colored) to branchpoint 1.22 (colored)

Pull up following revision(s) (requested by rmind in ticket #520):
	sys/kern/kern_runq.c: revision 1.25
Make sched_getrq() inline (gcc does not optimize it), avoids call.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 17 22:00:14 2009 UTC (3 years, 3 months ago) by rmind
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Make sched_getrq() inline (gcc does not optimize it), avoids call.

Revision 1.22.4.2 / (download) - annotate - [select for diffs], Mon Feb 2 03:18:32 2009 UTC (3 years, 3 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2
Changes since 1.22.4.1: +3 -3 lines
Diff to previous 1.22.4.1 (colored) to branchpoint 1.22 (colored)

Pull up following revision(s) (requested by ad in ticket #345):
	sys/kern/kern_runq.c: revision 1.23
	sys/sys/cpu.h: revision 1.25
- Wrap sys/cpu.h contents in _LOCORE.
- Add a RESCHED_LAZY flag and use instead of zero.

Revision 1.22.4.1 / (download) - annotate - [select for diffs], Thu Jan 22 20:06:47 2009 UTC (3 years, 4 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC1
Changes since 1.22: +37 -24 lines
Diff to previous 1.22 (colored)

Pull up following revision(s) (requested by rmind in ticket #284):
	sys/kern/kern_runq.c: revision 1.24
- Avoid calling sched_catchlwp() if CPUs have different processor-sets.
- sched_takecpu: check for psid earlier (be more strict).
PR/40419.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:38 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.22: +38 -25 lines
Diff to previous 1.22 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jan 18 05:07:51 2009 UTC (3 years, 4 months ago) by rmind
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.23: +37 -24 lines
Diff to previous 1.23 (colored)

- Avoid calling sched_catchlwp() if CPUs have different processor-sets.
- sched_takecpu: check for psid earlier (be more strict).

PR/40419.

Revision 1.16.2.6 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.2.5: +6 -3 lines
Diff to previous 1.16.2.5 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:08 2008 UTC (3 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.19.2.1: +3 -3 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Tue Dec 2 17:57:32 2008 UTC (3 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

- Wrap sys/cpu.h contents in _LOCORE.
- Add a RESCHED_LAZY flag and use instead of zero.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.19: +19 -16 lines
Diff to previous 1.19 (colored)

Sync with HEAD.

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Fri Oct 10 22:34:14 2008 UTC (3 years, 7 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.3.2.2: +15 -13 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Oct 7 09:48:27 2008 UTC (3 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.21: +7 -4 lines
Diff to previous 1.21 (colored)

- Replace lwp_t::l_sched_info with union: pointer and timeslice.
- Change minimal time-quantum to ~20 ms.
- Thus remove unneeded pool in M2, and unused sched_lwp_exit().
- Do not increase l_slptime twice for SCHED_4BSD (regression fix).

Revision 1.16.2.5 / (download) - annotate - [select for diffs], Sun Oct 5 20:11:32 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.2.4: +8 -9 lines
Diff to previous 1.16.2.4 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 30 16:28:45 2008 UTC (3 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.20: +10 -11 lines
Diff to previous 1.20 (colored)

- Schedule bound threads even if CPU is offline.  Might be revisited later,
  when decision what to do with already bound threads will be made.
- Do not allow to assign offline CPU to the processor-set.

Quick fix for PR/39349.

Revision 1.16.2.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:52 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.2.3: +4 -3 lines
Diff to previous 1.16.2.3 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:42 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.3.2.1: +6 -5 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.16.4.3 / (download) - annotate - [select for diffs], Fri Jul 18 16:37:49 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.16.4.2: +6 -5 lines
Diff to previous 1.16.4.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 14 01:18:10 2008 UTC (3 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.19: +6 -5 lines
Diff to previous 1.19 (colored)

sched_migratable: add KASSERT since this function cannot be called
without lock held now.  Few cosmetic changes, while here.

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (3 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.2.2: +1 -1 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.16.4.2 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:39 2008 UTC (3 years, 10 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.16.4.1: +3 -3 lines
Diff to previous 1.16.4.1 (colored) to branchpoint 1.16 (colored)

Sync with head.

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

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

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 22 00:06:36 2008 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: haad-dm
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Adjust to separate kcpuset_t and cpuset_t.

Revision 1.16.4.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (3 years, 11 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Sync with head.

Revision 1.3.6.4 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.3.6.3: +3 -3 lines
Diff to previous 1.3.6.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 16 01:41:20 2008 UTC (3 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

- Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Jun 15 20:32:57 2008 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Don't expose struct cpuset, share the l_affinity flag and only allocate it
if we need to. This is not a compatible change, but the syscalls are new
enough and they don't need to be versioned. Approved by rmind.

Revision 1.3.6.3 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.3.6.2: +221 -60 lines
Diff to previous 1.3.6.2 (colored) to branchpoint 1.3 (colored)

sync with head

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:09 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16.2.1: +884 -0 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

Sync with HEAD.

Revision 1.16.2.1, Fri May 30 12:18:14 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.16: +0 -884 lines
FILE REMOVED

file kern_runq.c was added on branch mjf-devfs2 on 2008-06-02 13:24:09 +0000

Revision 1.16 / (download) - annotate - [select for diffs], Fri May 30 12:18:14 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl, mjf-devfs2
Changes since 1.15: +3 -4 lines
Diff to previous 1.15 (colored)

PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Remove ifdef(i386), kernel preemption works on amd64 now.

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 30 08:31:42 2008 UTC (3 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

sched_idle: initialise 'tci' to NULL, avoids compiler warning.

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 29 22:33:27 2008 UTC (3 years, 11 months ago) by rmind
Branch: MAIN
Changes since 1.13: +97 -25 lines
Diff to previous 1.13 (colored)

Simplifcation for running LWP migration.  Removes double-locking in
mi_switch(), migration for LSONPROC is now performed via idle loop.
Handles/fixes on-CPU case in lwp_migrate(), misc.

Closes PR/38169, idea of migration via idle loop by Andrew Doran.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 27 22:05:50 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

Pull in sys/evcnt.h.

Revision 1.12 / (download) - annotate - [select for diffs], Tue May 27 21:36:03 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

#ifdef strikes again

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 27 19:05:52 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.10: +108 -80 lines
Diff to previous 1.10 (colored)

Sigh. The previous change did bad things to MySQL sysbench. Continue stealing
jobs from sched_nextlwp, but also do it in the idle loop. In sched_nextlwp
use trylock, in the idle LWP try harder.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 27 14:48:52 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.9: +121 -85 lines
Diff to previous 1.9 (colored)

PR kern/38707 scheduler related deadlock during build.sh

- Fix performance regression inroduced by the workaround by making job
  stealing a lot simpler: if the local run queue is empty, let the CPU enter
  the idle loop. In the idle loop, try to steal a job from another CPU's run
  queue if we are idle. If we succeed, re-enter mi_switch() immediatley to
  dispatch the job.

- When stealing jobs, consider a remote CPU to have one less job in its
  queue if it's currently in the idle loop. It will dispatch the job soon,
  so there's no point sloshing it about.

- Introduce a few event counters to monitor what's happening with the run
  queues.

- Revert the idle CPU bitmap change. It's pointless considering NUMA.

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 25 23:46:55 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.8: +3 -27 lines
Diff to previous 1.8 (colored)

PR kern/38707 scheduler related deadlock during build.sh

Fail sched_catchlwp() if mutex_tryenter() on the remote CPU's state fails.
Seems to work around the issue described in this PR.

XXX Stealing jobs from remote CPUs could probably be moved into the idle
loop, making the locking quite a bit simpler.

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 21 15:41:03 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Ugly hack until the amd64 fpu handling is working (which should be soon):
enable kernel preemption on i386.

Revision 1.7 / (download) - annotate - [select for diffs], Tue May 20 19:21:23 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.6: +25 -1 lines
Diff to previous 1.6 (colored)

Back out unintentional change.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 20 19:20:38 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.5: +3 -27 lines
Diff to previous 1.5 (colored)

If autoloading a module, don't consider the current working directory.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 19 17:06:02 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: hpcarm-cleanup-nbase
Changes since 1.4: +2 -5 lines
Diff to previous 1.4 (colored)

Reduce ifdefs due to MULTIPROCESSOR slightly.

Revision 1.4 / (download) - annotate - [select for diffs], Mon May 19 12:48:54 2008 UTC (4 years ago) by rmind
Branch: MAIN
Changes since 1.3: +58 -7 lines
Diff to previous 1.3 (colored)

- Make periodical balancing mandatory.
- Fix priority raising in M2 (broken after making runqueues mandatory).

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.3.6.1: +723 -0 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Fri May 16 02:25:25 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3.4.1: +723 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored)

sync with head.

Revision 1.3.6.1, Wed Apr 30 09:17:12 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.3: +0 -723 lines
FILE REMOVED

file kern_runq.c was added on branch yamt-pf42 on 2008-05-18 12:35:08 +0000

Revision 1.3.4.1, Wed Apr 30 09:17:12 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.3: +0 -723 lines
FILE REMOVED

file kern_runq.c was added on branch yamt-nfs-mp on 2008-05-16 02:25:25 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 30 09:17:12 2008 UTC (4 years ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

Set minimal count of LWPs for catching to 1, and cache-hotness time to ~3ms

Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 29 15:51:23 2008 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1 (colored)

Ignore processes with PK_MARKER set.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 29 14:35:20 2008 UTC (4 years ago) by rmind
Branch: MAIN

Split the runqueue management code into the separate file.
OK by <ad>.

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




CVSweb <webmaster@jp.NetBSD.org>