Up to [cvs.NetBSD.org] / src / sys / uvm
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.160 / (download) - annotate - [select for diffs], Sat Sep 1 00:26:37 2012 UTC (8 months, 2 weeks ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
tls-maxphys-nbase,
tls-maxphys-base,
tls-maxphys,
khorben-n900,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.159: +7 -3
lines
Diff to previous 1.159 (colored)
Add a __HAVE_CPU_UAREA_IDLELWP hook so that the MD code can allocate special UAREAs for idle lwp's.
Revision 1.159 / (download) - annotate - [select for diffs], Sun Apr 8 11:27:45 2012 UTC (13 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
yamt-pagecache-base4,
jmcneill-usbmp-base9,
jmcneill-usbmp-base10
Changes since 1.158: +8 -6
lines
Diff to previous 1.158 (colored)
Rework posix_spawn locking and memory management: - always provide a vmspace for the new proc, initially borrowing from proc0 (this part fixes PR 46286) - increase parallelism between parent and child if arguments allow this, avoiding a potential deadlock on exec_lock - add a new flag for userland to request old (lockstepped) behaviour for better error reporting - adapt test cases to the previous two and add a new variant to test the diagnostics flag - fix a few memory (and lock) leaks - provide netbsd32 compat
Revision 1.158 / (download) - annotate - [select for diffs], Fri Apr 6 17:16:30 2012 UTC (13 months, 1 week ago) by chs
Branch: MAIN
Changes since 1.157: +7 -4
lines
Diff to previous 1.157 (colored)
fix uarea_system_poolpage_free() to handle freeing a uarea that was not allocated by cpu_uarea_alloc() (ie. on plaforms where cpu_uarea_alloc() failing is not fatal). fixes PR 46284.
Revision 1.157 / (download) - annotate - [select for diffs], Mon Feb 20 12:21:23 2012 UTC (14 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3
Changes since 1.156: +4 -5
lines
Diff to previous 1.156 (colored)
Solve previous fix (for early posix_spawn children exiting on error) differently.
Revision 1.156 / (download) - annotate - [select for diffs], Sun Feb 12 11:18:04 2012 UTC (15 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.155: +4 -2
lines
Diff to previous 1.155 (colored)
In uvm_proc_exit bail out early if we have no vmspace yet (as it happens for failing posix_spawn child processes). Fixes PR kern/45991.
Revision 1.155 / (download) - annotate - [select for diffs], Sat Feb 11 23:16:18 2012 UTC (15 months ago) by martin
Branch: MAIN
Changes since 1.154: +4 -3
lines
Diff to previous 1.154 (colored)
Add a posix_spawn syscall, as discussed on tech-kern. Based on the summer of code project by Charles Zhang, heavily reworked later by me - all bugs are likely mine. Ok: core, releng.
Revision 1.154 / (download) - annotate - [select for diffs], Wed Feb 1 23:43:49 2012 UTC (15 months, 2 weeks ago) by para
Branch: MAIN
Changes since 1.153: +27 -10
lines
Diff to previous 1.153 (colored)
allocate uareas and buffers from kernel_map again add code to drain pools if kmem_arena runs out of space
Revision 1.153 / (download) - annotate - [select for diffs], Fri Jan 27 19:48:41 2012 UTC (15 months, 2 weeks ago) by para
Branch: MAIN
Changes since 1.152: +12 -29
lines
Diff to previous 1.152 (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.152 / (download) - annotate - [select for diffs], Wed Nov 23 01:07:50 2011 UTC (17 months, 3 weeks ago) by matt
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.151: +7 -2
lines
Diff to previous 1.151 (colored)
When allocating a page for a kernel stack and PMAP_ALLOC_POOLPAGE is defined, use it. (allows a MIPS N32 kernel to boot when there is memory outside of KSEG0).
Revision 1.151 / (download) - annotate - [select for diffs], Sat Jul 2 01:26:29 2011 UTC (22 months, 2 weeks ago) by matt
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.150: +9 -4
lines
Diff to previous 1.150 (colored)
Allow the MD code to decide to panic if cpu_uarea_alloc would return NULL. If NULL is returned, just allocate the standard way.
Revision 1.150 / (download) - annotate - [select for diffs], Sun Jun 12 03:36:03 2011 UTC (23 months ago) by rmind
Branch: MAIN
Changes since 1.149: +8 -15
lines
Diff to previous 1.149 (colored)
Welcome to 5.99.53! Merge rmind-uvmplock branch: - Reorganize locking in UVM and provide extra serialisation for pmap(9). New lock order: [vmpage-owner-lock] -> pmap-lock. - Simplify locking in some pmap(9) modules by removing P->V locking. - Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs). - Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner. Add TLBSTATS option for x86 to collect statistics about TLB shootdowns. - Unify /dev/mem et al in MI code and provide required locking (removes kernel-lock on some ports). Also, avoid cache-aliasing issues. Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches formed the core changes of this branch.
Revision 1.149 / (download) - annotate - [select for diffs], Fri Feb 18 10:43:52 2011 UTC (2 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
bouyer-quota2-nbase
Branch point for: cherry-xenmp
Changes since 1.148: +7 -7
lines
Diff to previous 1.148 (colored)
make this build w/o HAVE_CPU_UAREA_ROUTINES
Revision 1.148 / (download) - annotate - [select for diffs], Thu Feb 17 19:27:13 2011 UTC (2 years, 2 months ago) by matt
Branch: MAIN
Changes since 1.147: +63 -3
lines
Diff to previous 1.147 (colored)
Add support for cpu-specific uarea allocation routines. Allows different allocation for user and system lwps. MIPS will use this to map uareas of system lwp used direct-mapped addresses (to reduce the overhead of switching to kernel threads). ibm4xx could use to map uareas via direct mapped addresses and avoid the problem of having the kernel stack not in the TLB.
Revision 1.147 / (download) - annotate - [select for diffs], Wed Feb 2 15:25:27 2011 UTC (2 years, 3 months ago) by chuck
Branch: MAIN
CVS Tags: uebayasi-xip-base7,
bouyer-quota2-base
Changes since 1.146: +3 -8
lines
Diff to previous 1.146 (colored)
udpate license clauses on my code to match the new-style BSD licenses. based on second diff that rmind@ sent me. no functional change with this commit.
Revision 1.146 / (download) - annotate - [select for diffs], Fri Jan 14 02:06:34 2011 UTC (2 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.145: +7 -7
lines
Diff to previous 1.145 (colored)
Retire struct user, remove sys/user.h inclusions. Note sys/user.h header as obsolete. Remove USER_TO_UAREA/UAREA_TO_USER macros. Various #include fixes and review by matt@.
Revision 1.145 / (download) - annotate - [select for diffs], Fri Apr 16 03:21:49 2010 UTC (3 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
matt-mips64-premerge-20101231
Changes since 1.144: +9 -4
lines
Diff to previous 1.144 (colored)
- Merge sched_pstats() and uvm_meter()/uvm_loadav(). Avoids double loop through all LWPs and duplicate locking overhead. - Move sched_pstats() from soft-interrupt context to process 0 main loop. Avoids blocking effect on real-time threads. Mostly fixes PR/38792. Note: it might be worth to move the loop above PRI_PGDAEMON. Also, sched_pstats() might be cleaned-up slightly.
Revision 1.144 / (download) - annotate - [select for diffs], Thu Feb 25 23:10:49 2010 UTC (3 years, 2 months ago) by jym
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.143: +4 -3
lines
Diff to previous 1.143 (colored)
Change RSS (resident set size) limit. Instead of setting it arbitrarily to the total free memory available to the system, use the smallest value between VM_MAXUSER_ADDRESS and total free memory (having a RSS limit bigger than VM_MAXUSER_ADDRESS has no real meaning). Fix a possible int overflow when ptoa(uvmexp.free) is bigger than 4GB with a 32 bits vaddr_t. Reviewed by bouyer@. See also http://mail-index.netbsd.org/tech-kern/2010/02/24/msg007395.html
Revision 1.143 / (download) - annotate - [select for diffs], Thu Dec 17 01:25:11 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.142: +8 -6
lines
Diff to previous 1.142 (colored)
Replace few USER_TO_UAREA/UAREA_TO_USER uses, reduce sys/user.h inclusions.
Revision 1.142 / (download) - annotate - [select for diffs], Sat Nov 21 17:45:02 2009 UTC (3 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.141: +16 -2
lines
Diff to previous 1.141 (colored)
Add uvm_lwp_getuarea() and uvm_lwp_setuarea(). OK matt@.
Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 21 21:12:07 2009 UTC (3 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: jym-xensuspend-nbase
Changes since 1.140: +17 -454
lines
Diff to previous 1.140 (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.140 / (download) - annotate - [select for diffs], Mon Aug 10 16:50:18 2009 UTC (3 years, 9 months ago) by matt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7
Changes since 1.139: +3 -3
lines
Diff to previous 1.139 (colored)
Revent change to printf. (why can't __func__ concat with other string?)
Revision 1.139 / (download) - annotate - [select for diffs], Sun Aug 9 22:19:09 2009 UTC (3 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.138: +44 -8
lines
Diff to previous 1.138 (colored)
Only swapout uareas if VMSWAP_UAREA is defined (which is should be by default). If it's not defined and PMAP_MAP_POOLPAGE is defined and USPACE == PAGE_SIZE, then allocate/map USPACE via uvm_pagealloc/PMAP_MAP_POOLPAGE. On platforms like MIPS with 16KB pages, this means that uareas (and hence lwp kernel stacks) will be always be accessible since they will be KSEG0.
Revision 1.138 / (download) - annotate - [select for diffs], Sun Jun 28 15:18:51 2009 UTC (3 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6,
jymxensuspend-base
Changes since 1.137: +5 -2
lines
Diff to previous 1.137 (colored)
Ephemeral mapping (emap) implementation. Concept is based on the idea that activity of other threads will perform the TLB flush for the processes using emap as a side effect. To track that, global and per-CPU generation numbers are used. This idea was suggested by Andrew Doran; various improvements to it by me. Notes: - For now, zero-copy on pipe is not yet enabled. - TCP socket code would likely need more work. - Additional UVM loaning improvements are needed. Proposed on <tech-kern>, silence there. Quickly reviewed by <ad>.
Revision 1.137 / (download) - annotate - [select for diffs], Thu Apr 16 00:17:19 2009 UTC (4 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Changes since 1.136: +3 -7
lines
Diff to previous 1.136 (colored)
Avoid few #ifdef KSTACK_CHECK_MAGIC.
Revision 1.136 / (download) - annotate - [select for diffs], Sun Mar 29 01:02:51 2009 UTC (4 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.135: +4 -2
lines
Diff to previous 1.135 (colored)
- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
Revision 1.135 / (download) - annotate - [select for diffs], Sat Jan 31 09:13:09 2009 UTC (4 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.134: +3 -3
lines
Diff to previous 1.134 (colored)
uvm_swapin: uncomment an assertion which is now ok.
Revision 1.134 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:10 2008 UTC (4 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.133: +2 -126
lines
Diff to previous 1.133 (colored)
Make the emulations, exec formats, coredump, NFS, and the NFS server into modules. By and large this commit: - shuffles header files and ifdefs - splits code out where necessary to be modular - adds module glue for each of the components - adds/replaces hooks for things that can be installed at runtime
Revision 1.133 / (download) - annotate - [select for diffs], Wed Jun 25 19:20:56 2008 UTC (4 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
simonb-wapbl-nbase,
simonb-wapbl-base,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5,
haad-dm
Changes since 1.132: +4 -2
lines
Diff to previous 1.132 (colored)
Don't swap kernel stacks of realtime threads.
Revision 1.132 / (download) - annotate - [select for diffs], Mon Jun 16 10:19:57 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Changes since 1.131: +9 -3
lines
Diff to previous 1.131 (colored)
uvm_swapout: try to lock the vm_map before calling pmap_collect.
Revision 1.131 / (download) - annotate - [select for diffs], Mon Jun 9 11:52:34 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
Branch point for: simonb-wapbl
Changes since 1.130: +3 -3
lines
Diff to previous 1.130 (colored)
swappable: invert previous so we check for SACTIVE or SSTOP.
Revision 1.130 / (download) - annotate - [select for diffs], Mon Jun 9 11:51:43 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.129: +4 -2
lines
Diff to previous 1.129 (colored)
swappable: return false if l->l_proc->p_stat == SDYING.
Revision 1.129 / (download) - annotate - [select for diffs], Mon Jun 9 11:49:54 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.128: +4 -4
lines
Diff to previous 1.128 (colored)
uvm_proc_exit: use macros to disable preemption.
Revision 1.128 / (download) - annotate - [select for diffs], Wed Jun 4 12:45:28 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.127: +2 -17
lines
Diff to previous 1.127 (colored)
- vm_page: put listq, pageq into a union alongside a LIST_ENTRY, so we can use both types of list. - Make page coloring and idle zero state per-CPU. - Maintain per-CPU page freelists. When freeing, put pages onto the local CPU's lists and the global lists. When allocating, prefer to take pages from the local CPU. If none are available take from the global list as done now. Proposed on tech-kern@.
Revision 1.127 / (download) - annotate - [select for diffs], Sat May 31 21:26:01 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Changes since 1.126: +5 -3
lines
Diff to previous 1.126 (colored)
PR kern/38812 race between lwp_exit_switchaway and exit1/coredump Move the LWP RUNNING and TIMEINTR flags into the thread-private flag word.
Revision 1.126 / (download) - annotate - [select for diffs], Sun Apr 27 11:39:46 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
yamt-nfs-mp-base,
hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp,
wrstuden-revivesa
Changes since 1.125: +4 -2
lines
Diff to previous 1.125 (colored)
Disable preemption while swapping pmap.
Revision 1.125 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:31 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.124: +11 -11
lines
Diff to previous 1.124 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.124 / (download) - annotate - [select for diffs], Fri Apr 11 15:47:15 2008 UTC (5 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.123: +3 -3
lines
Diff to previous 1.123 (colored)
fix the order of printf arguments.
Revision 1.123 / (download) - annotate - [select for diffs], Fri Apr 11 15:31:37 2008 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.122: +15 -16
lines
Diff to previous 1.122 (colored)
- use uarea_swapin, rather than duplicating the code. - use __func__ where appropriate.
Revision 1.122 / (download) - annotate - [select for diffs], Sat Mar 29 20:40:52 2008 UTC (5 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.121: +4 -4
lines
Diff to previous 1.121 (colored)
make this compile
Revision 1.121 / (download) - annotate - [select for diffs], Sat Mar 29 20:15:54 2008 UTC (5 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.120: +3 -3
lines
Diff to previous 1.120 (colored)
Fix broken build. hi skrll :-)
Revision 1.120 / (download) - annotate - [select for diffs], Sat Mar 29 18:49:13 2008 UTC (5 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.119: +3 -5
lines
Diff to previous 1.119 (colored)
Fix unsed variable when DEBUG isn't defined.
Revision 1.119 / (download) - annotate - [select for diffs], Thu Mar 27 19:06:52 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.118: +3 -3
lines
Diff to previous 1.118 (colored)
Make rusage collection per-LWP and collate in the appropriate places. cloned threads need a little bit more work but the locking needs to be fixed first.
Revision 1.118 / (download) - annotate - [select for diffs], Fri Feb 29 12:08:04 2008 UTC (5 years, 2 months ago) by yamt
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.117: +3 -5
lines
Diff to previous 1.117 (colored)
update comment
Revision 1.117 / (download) - annotate - [select for diffs], Fri Feb 8 11:49:40 2008 UTC (5 years, 3 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.116: +7 -5
lines
Diff to previous 1.116 (colored)
uvm_uarea_init: fix compilation where PAGE_SIZE is not a constant. (sparc) reported by Tom Spindler.
Revision 1.116 / (download) - annotate - [select for diffs], Thu Feb 7 12:21:24 2008 UTC (5 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.115: +9 -3
lines
Diff to previous 1.115 (colored)
uvm_uarea_init: make #if about PR_NOALIGN clearer and add a comment to explain it.
Revision 1.115 / (download) - annotate - [select for diffs], Mon Jan 28 12:22:47 2008 UTC (5 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.114: +66 -89
lines
Diff to previous 1.114 (colored)
remove a special allocator for uareas, which is no longer necessary. use pool_cache instead.
Revision 1.114 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:16 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.113: +13 -9
lines
Diff to previous 1.113 (colored)
Merge vmlocking2 to head.
Revision 1.113 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:46 2007 UTC (5 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
vmlocking2-base3,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
jmcneill-base,
cube-autoconf-base,
cube-autoconf,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: vmlocking2,
bouyer-xeni386
Changes since 1.112: +6 -11
lines
Diff to previous 1.112 (colored)
Merge scheduler changes from the vmlocking branch. All discussed on tech-kern: - Invert priority space so that zero is the lowest priority. Rearrange number and type of priority levels into bands. Add new bands like 'kernel real time'. - Ignore the priority level passed to tsleep. Compute priority for sleep dynamically. - For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
Revision 1.112 / (download) - annotate - [select for diffs], Fri Sep 21 00:18:35 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
yamt-x86pmap,
vmlocking-base
Branch point for: mjf-devfs,
bouyer-xenamd64
Changes since 1.111: +3 -3
lines
Diff to previous 1.111 (colored)
uvm_swapin: disable the swaplock assertion. uvm_lwp_hold() can't take the lock yet.
Revision 1.111 / (download) - annotate - [select for diffs], Sat Aug 18 10:07:55 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Branch point for: matt-armv6
Changes since 1.110: +3 -4
lines
Diff to previous 1.110 (colored)
Include sys/cpu.h for CPU_INFO_FOREACH.
Revision 1.110 / (download) - annotate - [select for diffs], Sat Aug 18 00:31:32 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.109: +5 -4
lines
Diff to previous 1.109 (colored)
Fix error in previous.
Revision 1.109 / (download) - annotate - [select for diffs], Sat Aug 18 00:21:11 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.108: +83 -36
lines
Diff to previous 1.108 (colored)
Make the uarea cache per-CPU and drain in batches of 4.
Revision 1.108 / (download) - annotate - [select for diffs], Sat Jul 14 22:27:15 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: nick-csl-alignment,
jmcneill-pm
Changes since 1.107: +2 -4
lines
Diff to previous 1.107 (colored)
Revert unintentially committed change.
Revision 1.107 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:36 2007 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.106: +96 -38
lines
Diff to previous 1.106 (colored)
Merge some of the less invasive changes from the vmlocking branch: - kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
Revision 1.106 / (download) - annotate - [select for diffs], Thu May 17 14:51:43 2007 UTC (6 years ago) by yamt
Branch: MAIN
Changes since 1.105: +18 -9
lines
Diff to previous 1.105 (colored)
merge yamt-idlelwp branch. asked by core@. some ports still needs work. from doc/BRANCHES: idle lwp, and some changes depending on it. 1. separate context switching and thread scheduling. (cf. gmcgarry_ctxsw) 2. implement idle lwp. 3. clean up related MD/MI interfaces. 4. make scheduler(s) modular.
Revision 1.105 / (download) - annotate - [select for diffs], Sat Mar 24 21:15:39 2007 UTC (6 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic
Changes since 1.104: +4 -4
lines
Diff to previous 1.104 (colored)
Export uvm_uarea_free() to the rest. Make things compile again.
Revision 1.104 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:48 2007 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Branch point for: vmlocking,
reinoud-bufcleanup,
mjf-ufs-trans
Changes since 1.103: +4 -4
lines
Diff to previous 1.103 (colored)
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
Revision 1.103 / (download) - annotate - [select for diffs], Thu Feb 22 06:05:01 2007 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.102: +10 -10
lines
Diff to previous 1.102 (colored)
TRUE -> true, FALSE -> false
Revision 1.102 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:13 2007 UTC (6 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.101: +7 -7
lines
Diff to previous 1.101 (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.101 / (download) - annotate - [select for diffs], Mon Feb 19 01:35:20 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.100: +5 -2
lines
Diff to previous 1.100 (colored)
uvm_kick_scheduler(): do nothing until the swap subsystem is initialized.
Revision 1.100 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:45 2007 UTC (6 years, 3 months ago) by pavel
Branch: MAIN
Changes since 1.99: +10 -10
lines
Diff to previous 1.99 (colored)
Change the process/lwp flags seen by userland via sysctl back to the P_*/L_* naming convention, and rename the in-kernel flags to avoid conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD constant. Restores source compatibility with pre-newlock2 tools like ps or top. Reviewed by Andrew Doran.
Revision 1.99 / (download) - annotate - [select for diffs], Thu Feb 15 20:21:13 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.98: +87 -59
lines
Diff to previous 1.98 (colored)
Add uvm_kick_scheduler() (MP safe) to replace wakeup(&proc0).
Revision 1.98 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:43 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.97: +37 -22
lines
Diff to previous 1.97 (colored)
Merge newlock2 to head.
Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 5 14:48:33 2006 UTC (6 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
yamt-splraiseipl-base2,
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.96: +6 -6
lines
Diff to previous 1.96 (colored)
add support for O_DIRECT (I/O directly to application memory, bypassing any kernel caching for file data).
Revision 1.96 / (download) - annotate - [select for diffs], Tue Aug 29 23:34:48 2006 UTC (6 years, 8 months ago) by matt
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.95: +5 -2
lines
Diff to previous 1.95 (colored)
Make PTRACE and COREDUMP optional. Make the default (status quo) by putting them in conf/std.
Revision 1.95 / (download) - annotate - [select for diffs], Tue Jun 13 13:22:06 2006 UTC (6 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7,
yamt-pdpolicy-base6,
gdamore-uart-base,
gdamore-uart,
chap-midi-nbase,
chap-midi-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Changes since 1.94: +1 -1
lines
Diff to previous 1.94 (colored)
uvm_swapin: process -> lwp in a comment.
Revision 1.94 / (download) - annotate - [select for diffs], Mon May 22 13:43:54 2006 UTC (6 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base
Changes since 1.93: +20 -18
lines
Diff to previous 1.93 (colored)
introduce macros, UAREA_TO_USER and USER_TO_UAREA, to convert uarea VA into a pointer to struct user and vice versa, so that MD code can change the layout in uarea.
Revision 1.93 / (download) - annotate - [select for diffs], Wed Mar 15 18:09:25 2006 UTC (7 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3,
peter-altq-base,
elad-kernelauth-base
Branch point for: peter-altq,
chap-midi
Changes since 1.92: +6 -7
lines
Diff to previous 1.92 (colored)
-clean up the interface to uvm_fault: the "fault type" didn't serve any purpose (done by a macro, so we don't save any cycles for now) -kill vm_fault_t; it is not needed for real faults, and for simulated faults (wiring) it can be replaced by UVM internal flags -remove <uvm/uvm_fault.h> from uvm_extern.h again
Revision 1.92 / (download) - annotate - [select for diffs], Sat Dec 24 23:41:34 2005 UTC (7 years, 4 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5,
yamt-uio_vmspace,
yamt-pdpolicy-base2,
yamt-pdpolicy-base
Branch point for: yamt-pdpolicy,
simonb-timecounters,
rpaulo-netinet-merge-pcb,
elad-kernelauth
Changes since 1.91: +3 -3
lines
Diff to previous 1.91 (colored)
__inline__ -> inline
Revision 1.91 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:29 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.90: +2 -2
lines
Diff to previous 1.90 (colored)
merge ktrace-lwp.
Revision 1.90 / (download) - annotate - [select for diffs], Mon Oct 24 00:26:37 2005 UTC (7 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
ktrace-lwp-base
Changes since 1.89: +2 -3
lines
Diff to previous 1.89 (colored)
remove the assertion in uvm_swapout_threads() about LSONPROC lwps not running on the same CPU as the swapper. l_stat is protected by sched_lock, which isn't held here, so we can race with that lwp starting to run and see its l_cpu not updated yet, as in PR 31870. we check l_stat again in uvm_swapout() while holding sched_lock, so the race itself is harmless.
Revision 1.89 / (download) - annotate - [select for diffs], Mon Jun 27 02:19:48 2005 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base,
thorpej-vnode-attr-base,
thorpej-vnode-attr
Branch point for: yamt-vop,
yamt-lazymbuf
Changes since 1.88: +18 -43
lines
Diff to previous 1.88 (colored)
Use ANSI function decls.
Revision 1.88 / (download) - annotate - [select for diffs], Fri Jun 10 05:10:13 2005 UTC (7 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.87: +6 -8
lines
Diff to previous 1.87 (colored)
Rework the coredump code to have no explicit knownledge of how coredump
i/o is done. Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o. This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
Revision 1.87 / (download) - annotate - [select for diffs], Tue Jun 7 22:02:48 2005 UTC (7 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.86: +3 -2
lines
Diff to previous 1.86 (colored)
Make sure state.end has a valid initial value.
Revision 1.86 / (download) - annotate - [select for diffs], Thu Jun 2 17:01:44 2005 UTC (7 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.85: +57 -16
lines
Diff to previous 1.85 (colored)
When writing coredumps, don't write zero uninstantiated demand-zero pages. Also, with ELF core dumps, trim trailing zeroes from sections. These two changes can shrink coredumps by over 50% in size.
Revision 1.85 / (download) - annotate - [select for diffs], Fri May 6 19:34:47 2005 UTC (8 years ago) by nathanw
Branch: MAIN
Changes since 1.84: +7 -2
lines
Diff to previous 1.84 (colored)
uvm_coredump_walkmap(): Set UVM_COREDUMP_NODUMP on regions whose protection does not include VM_PROT_READ, so that the core dumping doesn't error out with EFAULT when trying to write that region. Addresses PR kern/30143; approach suggested by chs@.
Revision 1.84 / (download) - annotate - [select for diffs], Fri Apr 1 11:59:38 2005 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.83: +5 -4
lines
Diff to previous 1.83 (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.83 / (download) - annotate - [select for diffs], Tue Feb 8 08:22:37 2005 UTC (8 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
yamt-km-base2,
netbsd-3-base,
matt-timespec
Branch point for: netbsd-3
Changes since 1.82: +3 -3
lines
Diff to previous 1.82 (colored)
update a comment; malloc doesn't use uvm_kernacc anymore.
Revision 1.82 / (download) - annotate - [select for diffs], Fri Jan 21 03:24:40 2005 UTC (8 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.81: +27 -25
lines
Diff to previous 1.81 (colored)
reduce the size of user coredump files by not dumping regions of the address space that have never been touched (such as much of the virtual space allocated for pthread stacks).
Revision 1.81 / (download) - annotate - [select for diffs], Wed May 12 20:09:51 2004 UTC (9 years ago) by yamt
Branch: MAIN
CVS Tags: kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: kent-audio2
Changes since 1.80: +3 -2
lines
Diff to previous 1.80 (colored)
add assertions.
Revision 1.80 / (download) - annotate - [select for diffs], Sun May 2 13:04:57 2004 UTC (9 years ago) by pk
Branch: MAIN
Changes since 1.79: +42 -42
lines
Diff to previous 1.79 (colored)
Make uvm_uarea_free an inline function.
Revision 1.79 / (download) - annotate - [select for diffs], Sun Apr 4 18:21:48 2004 UTC (9 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.78: +4 -4
lines
Diff to previous 1.78 (colored)
Use maxdmap and maxsmap instead of MAXDSIZ and MAXSSIZ.
Revision 1.78 / (download) - annotate - [select for diffs], Wed Mar 24 07:50:48 2004 UTC (9 years, 1 month ago) by junyoung
Branch: MAIN
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-0-base,
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
Branch point for: netbsd-2-1,
netbsd-2-0,
netbsd-2
Changes since 1.77: +6 -6
lines
Diff to previous 1.77 (colored)
- Nuke __P(). - Drop trailing spaces.
Revision 1.77 / (download) - annotate - [select for diffs], Mon Feb 9 13:11:21 2004 UTC (9 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.76: +17 -4
lines
Diff to previous 1.76 (colored)
- borrow vmspace0 in uvm_proc_exit instead of uvmspace_free. the latter is not a appropriate place to do so and it broke vfork. - deactivate pmap before calling cpu_exit() to keep a balance of pmap_activate/deactivate.
Revision 1.76 / (download) - annotate - [select for diffs], Fri Jan 16 12:43:16 2004 UTC (9 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.75: +3 -3
lines
Diff to previous 1.75 (colored)
uvm_coredump_walkmap: use UVM_OBJ_IS_DEVICE macro.
Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 4 11:33:32 2004 UTC (9 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.74: +34 -12
lines
Diff to previous 1.74 (colored)
Rearrange process exit path to avoid need to free resources from different
process context ('reaper').
From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
as FPU state), and is the last potentially blocking operation;
all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
for both 'process' and 'lwp' exit
uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.
MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.
g/c now unneeded routines and variables, including the reaper kernel thread
Revision 1.74 / (download) - annotate - [select for diffs], Tue Dec 30 12:33:24 2003 UTC (9 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.73: +2 -18
lines
Diff to previous 1.73 (colored)
Replace the traditional buffer memory management -- based on fixed per buffer virtual memory reservation and a private pool of memory pages -- by a scheme based on memory pools. This allows better utilization of memory because buffers can now be allocated with a granularity finer than the system's native page size (useful for filesystems with e.g. 1k or 2k fragment sizes). It also avoids fragmentation of virtual to physical memory mappings (due to the former fixed virtual address reservation) resulting in better utilization of MMU resources on some platforms. Finally, the scheme is more flexible by allowing run-time decisions on the amount of memory to be used for buffers. On the other hand, the effectiveness of the LRU queue for buffer recycling may be somewhat reduced compared to the traditional method since, due to the nature of the pool based memory allocation, the actual least recently used buffer may release its memory to a pool different from the one needed by a newly allocated buffer. However, this effect will kick in only if the system is under memory pressure.
Revision 1.73 / (download) - annotate - [select for diffs], Thu Nov 13 03:09:30 2003 UTC (9 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.72: +2 -29
lines
Diff to previous 1.72 (colored)
eliminate uvm_useracc() in favor of checking the return value of copyin() or copyout(). uvm_useracc() tells us whether the mapping permissions allow access to the desired part of an address space, and many callers assume that this is the same as knowing whether an attempt to access that part of the address space will succeed. however, access to user space can fail for reasons other than insufficient permission, most notably that paging in any non-resident data can fail due to i/o errors. most of the callers of uvm_useracc() make the above incorrect assumption. the rest are all misguided optimizations, which optimize for the case where an operation will fail. we'd rather optimize for operations succeeding, in which case we should just attempt the access and handle failures due to insufficient permissions the same way we handle i/o errors. since there appear to be no good uses of uvm_useracc(), we'll just remove it.
Revision 1.72 / (download) - annotate - [select for diffs], Mon Nov 3 04:39:11 2003 UTC (9 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.71: +2 -5
lines
Diff to previous 1.71 (colored)
revert rev.1.70 as it was not needed. uvm_map_lookup_entry() should handle addresses out of the map.
Revision 1.71 / (download) - annotate - [select for diffs], Sun Nov 2 16:53:43 2003 UTC (9 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.70: +3 -8
lines
Diff to previous 1.70 (colored)
kill unneded SYSVSHM includes use ANSI C function definition for uvm_lwp_exit()
Revision 1.70 / (download) - annotate - [select for diffs], Sat Nov 1 10:43:27 2003 UTC (9 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.69: +5 -2
lines
Diff to previous 1.69 (colored)
don't try to lookup addresses out of the map in uvm_coredump_walkmap().
Revision 1.69 / (download) - annotate - [select for diffs], Fri Oct 24 13:07:33 2003 UTC (9 years, 6 months ago) by cl
Branch: MAIN
Changes since 1.68: +7 -5
lines
Diff to previous 1.68 (colored)
simplify tests: The case where l_stat == LSONPROC and l_cpu == curcpu cannot happen because the pagedaemon is the LWP on curcpu and the pagedaemon is a kernel thread and the code is only used by the pagedaemon. See also updated patch in PR kern/23095, which I ment to checkin originally.
Revision 1.68 / (download) - annotate - [select for diffs], Sun Oct 19 17:45:35 2003 UTC (9 years, 7 months ago) by cl
Branch: MAIN
Changes since 1.67: +15 -9
lines
Diff to previous 1.67 (colored)
don't uvm_swapout LWPs which are LSONPROC on another cpu. uvm_swapout_threads will swapout LWPs which are running on another CPU: - uvm_swapout_threads considers LWPs running on another CPU for swapout if their l_swtime is high - uvm_swapout_threads considers LWPs on the runqueue for swapout if their l_swtime is high but these LWPs might be running by the time uvm_swapout is called symptoms of failure: panic in setrunqueue fixes PR kern/23095
Revision 1.67 / (download) - annotate - [select for diffs], Mon Oct 13 20:43:03 2003 UTC (9 years, 7 months ago) by scw
Branch: MAIN
Changes since 1.66: +6 -2
lines
Diff to previous 1.66 (colored)
In uvm_lwp_fork(), check if PMAP_UAREA() is defined and if so, invoke it with the KVA of the newly-wired uarea. This is useful on some architectures (e.g. xscale) where the uarea mapping can be tweaked to use the mini-data cache instead of the main cache.
Revision 1.66 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:50 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.65: +4 -5
lines
Diff to previous 1.65 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.65 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:30 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.64: +7 -6
lines
Diff to previous 1.64 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 14 16:25:12 2003 UTC (10 years, 3 months ago) by atatat
Branch: MAIN
Changes since 1.63: +15 -4
lines
Diff to previous 1.63 (colored)
Rework the way in which the map is traversed when dumping core. Now we read-lock the map and call uvm_map_lookup_entry() instead of simply walking from the header to the next and to the next, etc. Dumping from sparsely populated amaps could cause faults that would result in amaps being split, which (in turn) resulted in the core dumping routines dumping some regions of memory twice. This makes the core file too large, the headers not match, gdb not work properly, and so on. Addresses PR 19260.
Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 22 12:52:17 2003 UTC (10 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.62: +3 -3
lines
Diff to previous 1.62 (colored)
make KSTACK_CHECK_* compile after sa merge.
Revision 1.62 / (download) - annotate - [select for diffs], Sat Jan 18 09:42:59 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.61: +122 -106
lines
Diff to previous 1.61 (colored)
Merge the nathanw_sa branch.
Revision 1.61 / (download) - annotate - [select for diffs], Sun Nov 17 08:32:45 2002 UTC (10 years, 6 months ago) by chs
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.60: +20 -13
lines
Diff to previous 1.60 (colored)
change uvm_uarea_alloc() to indicate whether the returned uarea is already backed by physical pages (ie. because it reused a previously-freed one), so that we can skip a bunch of useless work in that case. this fixes the underlying problem behind PR 18543, and also speeds up fork() quite a bit (eg. 7% on my pc, 1% on my ultra2) when we get a cache hit.
Revision 1.60 / (download) - annotate - [select for diffs], Sun Sep 22 07:20:32 2002 UTC (10 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge
Changes since 1.59: +50 -3
lines
Diff to previous 1.59 (colored)
encapsulate knowledge of uarea allocation in some new functions.
Revision 1.59 / (download) - annotate - [select for diffs], Tue Jul 2 20:27:48 2002 UTC (10 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.58: +10 -2
lines
Diff to previous 1.58 (colored)
add KSTACK_CHECK_MAGIC. discussed on tech-kern.
Revision 1.58 / (download) - annotate - [select for diffs], Wed May 15 06:57:49 2002 UTC (11 years ago) by matt
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
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,
netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.57: +6 -2
lines
Diff to previous 1.57 (colored)
When core dumping a process, don't dump maps backed up by the device pager. (move the pagerops externs to uvm_object.h and out the C files).
Revision 1.57 / (download) - annotate - [select for diffs], Mon Dec 31 22:34:39 2001 UTC (11 years, 4 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base,
newlock,
ifpoll-base,
ifpoll,
eeh-devprop-base,
eeh-devprop
Changes since 1.56: +6 -6
lines
Diff to previous 1.56 (colored)
introduce a new UVM fault type, VM_FAULT_WIREMAX. this is different
from VM_FAULT_WIRE in that when the pages being wired are faulted in,
the simulated fault is at the maximum protection allowed for the mapping
instead of the current protection. use this in uvm_map_pageable{,_all}()
to fix the problem where writing via ptrace() to shared libraries that
are also mapped with wired mappings in another process causes a
diagnostic panic when the wired mapping is removed.
this is a really obscure problem so it deserves some more explanation.
ptrace() writing to another process ends up down in uvm_map_extract(),
which for MAP_PRIVATE mappings (such as shared libraries) will cause
the amap to be copied or created. then the amap is made shared
(ie. the AMAP_SHARED flag is set) between the kernel and the ptrace()d
process so that the kernel can modify pages in the amap and have the
ptrace()d process see the changes. then when the page being modified
is actually faulted on, the object pages (from the shared library vnode)
is copied to a new anon page and inserted into the shared amap.
to make all the processes sharing the amap actually see the new anon
page instead of the vnode page that was there before, we need to
invalidate all the pmap-level mappings of the vnode page in the pmaps
of the processes sharing the amap, but we don't have a good way of
doing this. the amap doesn't keep track of the vm_maps which map it.
so all we can do at this point is to remove all the mappings of the
page with pmap_page_protect(), but this has the unfortunate side-effect
of removing wired mappings as well. removing wired mappings with
pmap_page_protect() is a legitimate operation, it can happen when a file
with a wired mapping is truncated. so the pmap has no way of knowing
whether a request to remove a wired mapping is normal or when it's due to
this weird situation. so the pmap has to remove the weird mapping.
the process being ptrace()d goes away and life continues. then,
much later when we go to unwire or remove the wired vm_map mapping,
we discover that the pmap mapping has been removed when it should
still be there, and we panic.
so where did we go wrong? the problem is that we don't have any way
to update just the pmap mappings that need to be updated in this
scenario. we could invent a mechanism to do this, but that is much
more complicated than this change and it doesn't seem like the right
way to go in the long run either.
the real underlying problem here is that wired pmap mappings just
aren't a good concept. one of the original properties of the pmap
design was supposed to be that all the information in the pmap could
be thrown away at any time and the VM system could regenerate it all
through fault processing, but wired pmap mappings don't allow that.
a better design for UVM would not require wired pmap mappings,
and Chuck C. and I are talking about this, but it won't be done
anytime soon, so this change will do for now.
this change has the effect of causing MAP_PRIVATE mappings to be
copied to anonymous memory when they are mlock()d, so that uvm_fault()
doesn't need to copy these pages later when called from ptrace(), thus
avoiding the call to pmap_page_protect() and the panic that results
from this when the mlock()d region is unlocked or freed. note that
this change doesn't help the case where the wired mapping is MAP_SHARED.
discussed at great length with Chuck Cranor.
fixes PRs 10363, 12554, 12604, 13041, 13487, 14580 and 14853.
Revision 1.56 / (download) - annotate - [select for diffs], Mon Dec 10 01:52:27 2001 UTC (11 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +62 -2
lines
Diff to previous 1.55 (colored)
Move the code that walks the process's VM map during a coredump into uvm_coredump_walkmap(), and use callbacks into the coredump routine to do something with each section.
Revision 1.55 / (download) - annotate - [select for diffs], Sat Nov 10 07:36:59 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.54: +4 -1
lines
Diff to previous 1.54 (colored)
add RCSIDs, and in some cases, slightly cleanup #include order
Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 6 05:34:42 2001 UTC (11 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.53: +1 -2
lines
Diff to previous 1.53 (colored)
in uvm_exit(), don't bother to unwire the uarea before we free it, the pages will be freed anyway.
Revision 1.53 / (download) - annotate - [select for diffs], Sun Sep 23 07:10:08 2001 UTC (11 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.52: +2 -1
lines
Diff to previous 1.52 (colored)
bump the rusage counter for "swaps" when we swap out a process. addresses PR 6170.
Revision 1.52 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:45 2001 UTC (11 years, 8 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.51: +10 -7
lines
Diff to previous 1.51 (colored)
a whole bunch of changes to improve performance and robustness under load:
- remove special treatment of pager_map mappings in pmaps. this is
required now, since I've removed the globals that expose the address range.
pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
no longer any need to special-case it.
- eliminate struct uvm_vnode by moving its fields into struct vnode.
- rewrite the pageout path. the pager is now responsible for handling the
high-level requests instead of only getting control after a bunch of work
has already been done on its behalf. this will allow us to UBCify LFS,
which needs tighter control over its pages than other filesystems do.
writing a page to disk no longer requires making it read-only, which
allows us to write wired pages without causing all kinds of havoc.
- use a new PG_PAGEOUT flag to indicate that a page should be freed
on behalf of the pagedaemon when it's unlocked. this flag is very similar
to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
pageout fails due to eg. an indirect-block buffer being locked.
this allows us to remove the "version" field from struct vm_page,
and together with shrinking "loan_count" from 32 bits to 16,
struct vm_page is now 4 bytes smaller.
- no longer use PG_RELEASED for swap-backed pages. if the page is busy
because it's being paged out, we can't release the swap slot to be
reallocated until that write is complete, but unlike with vnodes we
don't keep a count of in-progress writes so there's no good way to
know when the write is done. instead, when we need to free a busy
swap-backed page, just sleep until we can get it busy ourselves.
- implement a fast-path for extending writes which allows us to avoid
zeroing new pages. this substantially reduces cpu usage.
- encapsulate the data used by the genfs code in a struct genfs_node,
which must be the first element of the filesystem-specific vnode data
for filesystems which use genfs_{get,put}pages().
- eliminate many of the UVM pagerops, since they aren't needed anymore
now that the pager "put" operation is a higher-level operation.
- enhance the genfs code to allow NFS to use the genfs_{get,put}pages
instead of a modified copy.
- clean up struct vnode by removing all the fields that used to be used by
the vfs_cluster.c code (which we don't use anymore with UBC).
- remove kmem_object and mb_object since they were useless.
instead of allocating pages to these objects, we now just allocate
pages with no object. such pages are mapped in the kernel until they
are freed, so we can use the mapping to find the page to free it.
this allows us to remove splvm() protection in several places.
The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.
Revision 1.51 / (download) - annotate - [select for diffs], Mon Sep 10 21:19:42 2001 UTC (11 years, 8 months ago) by chris
Branch: MAIN
CVS Tags: pre-chs-ubcperf
Changes since 1.50: +2 -2
lines
Diff to previous 1.50 (colored)
Update pmap_update to now take the updated pmap as an argument. This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment. Currently this is a no-op on most platforms, so they should see no difference. Reviewed by Jason.
Revision 1.50 / (download) - annotate - [select for diffs], Sat Jun 2 18:09:26 2001 UTC (11 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp,
kqueue
Changes since 1.49: +3 -3
lines
Diff to previous 1.49 (colored)
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
Revision 1.49 / (download) - annotate - [select for diffs], Wed May 30 15:24:23 2001 UTC (11 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.48: +3 -2
lines
Diff to previous 1.48 (colored)
add missing #include "opt_kgdb.h"
Revision 1.48 / (download) - annotate - [select for diffs], Fri May 25 04:06:13 2001 UTC (11 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.47: +13 -13
lines
Diff to previous 1.47 (colored)
remove trailing whitespace.
Revision 1.47 / (download) - annotate - [select for diffs], Tue Apr 24 04:31:18 2001 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_beforemerge
Changes since 1.46: +2 -4
lines
Diff to previous 1.46 (colored)
Sprinkle pmap_update() calls after calls to: - pmap_enter() - pmap_remove() - pmap_protect() - pmap_kenter_pa() - pmap_kremove() as described in pmap(9). These calls are relatively conservative. It may be possible to optimize these a little more.
Revision 1.46 / (download) - annotate - [select for diffs], Sat Apr 21 17:38:24 2001 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_base
Changes since 1.45: +1 -2
lines
Diff to previous 1.45 (colored)
The pmap_update() call at the end of uvm_swapout_threads() is completely useless. Nuke it.
Revision 1.45 / (download) - annotate - [select for diffs], Thu Mar 15 06:10:57 2001 UTC (12 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.44: +8 -10
lines
Diff to previous 1.44 (colored)
eliminate the KERN_* error codes in favor of the traditional E* codes. the mapping is: KERN_SUCCESS 0 KERN_INVALID_ADDRESS EFAULT KERN_PROTECTION_FAILURE EACCES KERN_NO_SPACE ENOMEM KERN_INVALID_ARGUMENT EINVAL KERN_FAILURE various, mostly turn into KASSERTs KERN_RESOURCE_SHORTAGE ENOMEM KERN_NOT_RECEIVER <unused> KERN_NO_ACCESS <unused> KERN_PAGES_LOCKED <unused>
Revision 1.44 / (download) - annotate - [select for diffs], Tue Feb 6 19:54:44 2001 UTC (12 years, 3 months ago) by eeh
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.43: +1 -4
lines
Diff to previous 1.43 (colored)
Move maxdmap and maxsmap where they belong and make them big enough.
Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 25 06:27:59 2000 UTC (12 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.42: +26 -23
lines
Diff to previous 1.42 (colored)
lots of cleanup: use queue.h macros and KASSERT(). address amap offsets in pages instead of bytes. make amap_ref() and amap_unref() take an amap, offset and length instead of a vm_map_entry_t. improve whitespace and comments.
Revision 1.42 / (download) - annotate - [select for diffs], Wed Oct 11 17:27:59 2000 UTC (12 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +4 -3
lines
Diff to previous 1.41 (colored)
- uvmspace_share(): If p2 has a vmspace already, make sure to deactivate it and free it as appropriate. Activate p2's new address space once it references p1's. - uvm_fork(): Make sure the child's vmspace is NULL before calling uvmspace_share() (the child doens't have one already in this case). These changes do not change the behavior for the current use of uvmspace_share() (vfork(2)), but make it possible for an already running process (such as a kernel thread) to properly attach to another process's address space.
Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 23 00:43:10 2000 UTC (12 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.40: +5 -5
lines
Diff to previous 1.40 (colored)
splstatclock is insufficient to protect run queues. Acquire scheduler lock instead.
Revision 1.40 / (download) - annotate - [select for diffs], Mon Aug 21 02:29:32 2000 UTC (12 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +1 -3
lines
Diff to previous 1.39 (colored)
Remove a totally unnecessary splhigh/spl0 pair.
Revision 1.39 / (download) - annotate - [select for diffs], Sat Aug 12 17:46:25 2000 UTC (12 years, 9 months ago) by sommerfeld
Branch: MAIN
Changes since 1.38: +5 -1
lines
Diff to previous 1.38 (colored)
add comment warning about possible unlock/sleep race
Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 27 17:29:22 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.37: +1 -3
lines
Diff to previous 1.37 (colored)
remove include of <vm/vm.h>
Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:17 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.36: +1 -3
lines
Diff to previous 1.36 (colored)
remove/move more mach vm header files: <vm/pglist.h> -> <uvm/uvm_pglist.h> <vm/vm_inherit.h> -> <uvm/uvm_inherit.h> <vm/vm_kern.h> -> into <uvm/uvm_extern.h> <vm/vm_object.h> -> nothing <vm/vm_pager.h> -> into <uvm/uvm_pager.h> also includes a bunch of <vm/vm_page.h> include removals (due to redudancy with <vm/vm.h>), and a scattering of other similar headers.
Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 18 05:20:27 2000 UTC (12 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base,
netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2,
netbsd-1-5
Changes since 1.35: +2 -1
lines
Diff to previous 1.35 (colored)
Set p->p_addr to NULL after it gets freed.
Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 8 05:52:34 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +1 -26
lines
Diff to previous 1.34 (colored)
Change UVM_UNLOCK_AND_WAIT() to use ltsleep() (it is now atomic, as advertised). Garbage-collect uvm_sleep().
Revision 1.34 / (download) - annotate - [select for diffs], Sun May 28 05:49:06 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.33: +10 -6
lines
Diff to previous 1.33 (colored)
Rather than starting init and creating kthreads by forking and then doing a cpu_set_kpc(), just pass the entry point and argument all the way down the fork path starting with fork1(). In order to avoid special-casing the normal fork in every cpu_fork(), MI code passes down child_return() and the child process pointer explicitly. This fixes a race condition on multiprocessor systems; a CPU could grab the newly created processes (which has been placed on a run queue) before cpu_set_kpc() would be performed.
Revision 1.33 / (download) - annotate - [select for diffs], Fri May 26 00:36:53 2000 UTC (12 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.32: +2 -1
lines
Diff to previous 1.32 (colored)
Introduce a new process state distinct from SRUN called SONPROC which indicates that the process is actually running on a processor. Test against SONPROC as appropriate rather than combinations of SRUN and curproc. Update all context switch code to properly set SONPROC when the process becomes the current process on the CPU.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 30 12:31:50 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.31: +6 -6
lines
Diff to previous 1.31 (colored)
Remove more register declarations.
Revision 1.31 / (download) - annotate - [select for diffs], Sun Mar 26 20:54:47 2000 UTC (13 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.30: +11 -11
lines
Diff to previous 1.30 (colored)
Merge parts of chs-ubc2 into the trunk: Add a new type voff_t (defined as a synonym for off_t) to describe offsets into uvm objects, and update the appropriate interfaces to use it, the most visible effect being the ability to mmap() file offsets beyond the range of a vaddr_t. Originally by Chuck Silvers; blame me for problems caused by merging this into non-UBC.
Revision 1.30 / (download) - annotate - [select for diffs], Sat Nov 13 00:24:38 1999 UTC (13 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
fvdl-softdep-base,
chs-ubc2-newbase
Changes since 1.29: +2 -2
lines
Diff to previous 1.29 (colored)
Change the pmap_enter() API slightly; pmap_enter() now returns an error value (KERN_SUCCESS or KERN_RESOURCE_SHORTAGE) indicating if it succeeded or failed. Change the `wired' and `access_type' arguments to a single `flags' argument, which includes the access type, and flags: PMAP_WIRED the old `wired' boolean PMAP_CANFAIL pmap_enter() is allowed to fail If PMAP_CANFAIL is not specified, the pmap should behave as it always has in the face of a drastic resource shortage: fall over dead. Change the fault handler to deal with failure (which indicates resource shortage) by unlocking everything, waiting for the pagedaemon to free more memory, then retrying the fault.
Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 25 06:30:36 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: comdex-fall-1999-base,
comdex-fall-1999,
chs-ubc2-base
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.28: +3 -3
lines
Diff to previous 1.28 (colored)
Turn the proclist lock into a read/write spinlock. Update proclist locking calls to reflect this. Also, block statclock rather than softclock during in the proclist locking functions, to address a problem reported on current-users by Sean Doran.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Jul 22 22:58:38 1999 UTC (13 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +30 -1
lines
Diff to previous 1.27 (colored)
Garbage collect thread_sleep()/thread_wakeup() left over from the old Mach VM code. Also nuke iprintf(), which was no longer used anywhere. Add proclist locking where appropriate.
Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 8 18:11:03 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +3 -4
lines
Diff to previous 1.26 (colored)
Change the pmap_extract() interface to: boolean_t pmap_extract(pmap_t, vaddr_t, paddr_t *); This makes it possible for the pmap to map physical address 0.
Revision 1.26 / (download) - annotate - [select for diffs], Thu Jun 17 15:47:22 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +12 -4
lines
Diff to previous 1.25 (colored)
Make uvm_vslock() return the error code from uvm_fault_wire(). All places which use uvm_vslock() should now test the return value. If it's not KERN_SUCCESS, wiring the pages failed, so the operation which is using uvm_vslock() should error out. XXX We currently just EFAULT a failed uvm_vslock(). We may want to do more about translating error codes in the future.
Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 17 05:57:33 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +10 -3
lines
Diff to previous 1.24 (colored)
In uvm_useracc(), make sure we have a read lock on the map before calling uvm_map_checkprot().
Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 17 00:24:10 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +1 -12
lines
Diff to previous 1.23 (colored)
The i386 and pc532 pmaps are officially fixed.
Revision 1.23 / (download) - annotate - [select for diffs], Fri May 28 20:49:51 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +3 -3
lines
Diff to previous 1.22 (colored)
Make uvm_fault_unwire() take a vm_map_t, rather than a pmap_t, for consistency. Use this opportunity for checking for intrsafe map use in this routine (which is illegal).
Revision 1.22 / (download) - annotate - [select for diffs], Wed May 26 01:05:26 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -4
lines
Diff to previous 1.21 (colored)
Pass an access_type to uvm_vslock().
Revision 1.21 / (download) - annotate - [select for diffs], Wed May 26 00:33:52 1999 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +10 -4
lines
Diff to previous 1.20 (colored)
- uvm_fork()/uvm_swapin(): pass VM_PROT_READ|VM_PROT_WRITE access_type to uvm_fault_wire(), to guarantee that the kernel stacks will not cause even a mod/ref emulation fault. - uvm_vslock(): pass VM_PROT_NONE until this function is updated.
Revision 1.20 / (download) - annotate - [select for diffs], Thu May 13 21:58:38 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.19: +7 -3
lines
Diff to previous 1.19 (colored)
Allow the caller to specify a stack for the child process. If NULL, the child inherits the stack pointer from the parent (traditional behavior). Like the signal stack, the stack area is secified as a low address and a size; machine-dependent code accounts for stack direction. This is required for clone(2).
Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 30 21:23:50 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.18: +3 -6
lines
Diff to previous 1.18 (colored)
Pull signal actions out of struct user, make them a separate proc substructure, and allow them to be shared. Required for clone(2).
Revision 1.18 / (download) - annotate - [select for diffs], Fri Mar 26 21:58:39 1999 UTC (14 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Changes since 1.17: +2 -2
lines
Diff to previous 1.17 (colored)
Add a new `access type' argument to pmap_enter(). This indicates what type of memory access a mapping was caused by. This is passed through from uvm_fault() and udv_fault(), and in most other cases is 0. The pmap module may use this to preset R/M information. On MMUs which require R/M emulation, the implementation may preset the bits and avoid taking another fault. On MMUs which keep R/M information in hardware, the implementation may preset its cached bits to speed up the next call to pmap_is_modified() or pmap_is_referenced().
Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 25 18:48:51 1999 UTC (14 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.16: +1 -5
lines
Diff to previous 1.16 (colored)
remove now >1 year old pre-release message.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 15 07:55:19 1999 UTC (14 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.15: +1 -3
lines
Diff to previous 1.15 (colored)
remove a debugging printf.
Revision 1.15 / (download) - annotate - [select for diffs], Mon Oct 19 22:21:19 1998 UTC (14 years, 7 months ago) by tron
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach,
chs-ubc-base,
chs-ubc
Changes since 1.14: +2 -1
lines
Diff to previous 1.14 (colored)
Defopt SYSVMSG, SYSVSEM and SYSVSHM.
Revision 1.14 / (download) - annotate - [select for diffs], Tue Sep 8 23:44:22 1998 UTC (14 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.13: +18 -1
lines
Diff to previous 1.13 (colored)
Implement uvm_exit(), which frees VM resources when a process finishes exiting.
Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 13 02:11:00 1998 UTC (14 years, 9 months ago) by eeh
Branch: MAIN
Changes since 1.12: +15 -14
lines
Diff to previous 1.12 (colored)
Merge paddr_t changes into the main branch.
Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 9 22:36:38 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.11: +3 -3
lines
Diff to previous 1.11 (colored)
bzero->memset, bcopy->memcpy, bcmp->memcmp
Revision 1.11 / (download) - annotate - [select for diffs], Sat May 9 15:04:40 1998 UTC (15 years ago) by kleink
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.10: +9 -6
lines
Diff to previous 1.10 (colored)
Use size_t to pass the length of the memory region to operate on to chgkprot(), kernacc(), useracc(), vslock() and vsunlock(); (unsigned) ints are not adequate on all platforms.
Revision 1.10 / (download) - annotate - [select for diffs], Fri May 8 17:41:41 1998 UTC (15 years ago) by kleink
Branch: MAIN
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored)
Make uvm_vsunlock() actually use the proc * passed to it; per discussion with Jason Thorpe.
Revision 1.9 / (download) - annotate - [select for diffs], Thu Apr 30 06:28:59 1998 UTC (15 years ago) by thorpej
Branch: MAIN
Changes since 1.8: +6 -4
lines
Diff to previous 1.8 (colored)
Pass vslock() and vsunlock() a proc *, rather than implicitly operating on curproc.
Revision 1.8 / (download) - annotate - [select for diffs], Thu Apr 9 00:24:05 1998 UTC (15 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.7: +2 -2
lines
Diff to previous 1.7 (colored)
Oops, fix a typo.
Revision 1.7 / (download) - annotate - [select for diffs], Thu Apr 9 00:23:39 1998 UTC (15 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.6: +9 -26
lines
Diff to previous 1.6 (colored)
Allocate kernel virtual address space for the U-area before allocating
the new proc structure when performing a fork. This makes it much
easier to abort a fork operation and return an error if we run out
of KVA space.
The U-area pages are still wired down in {,u}vm_fork(), as before.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 9 00:58:56 1998 UTC (15 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.5: +315 -320
lines
Diff to previous 1.5 (colored)
KNF.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Feb 10 14:12:12 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.4: +3 -4
lines
Diff to previous 1.4 (colored)
- add defopt's for UVM, UVMHIST and PMAP_NEW. - remove unnecessary UVMHIST_DECL's.
Revision 1.4 / (download) - annotate - [select for diffs], Sat Feb 7 11:08:33 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.3: +2 -1
lines
Diff to previous 1.3 (colored)
restore rcsids
Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 7 02:26:04 1998 UTC (15 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.2: +8 -12
lines
Diff to previous 1.2 (colored)
add locking of kernel_map in uvm_kernacc(). check return value of uvm_fault_wire() in uvm_fork(). enable swappings.
Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 6 22:31:49 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +1 -1
lines
Diff to previous 1.1 (colored)
RCS ID police.
Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 5 06:25:10 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Initial revision