yamt
62905a1302
uvm_pageidlezero: grab kernel_lock before uvm.fpageqlock. PR/27259.
2004-10-23 21:29:27 +00:00
yamt
56a653490c
expose vm_page_zero_enable as vm.idlezero sysctl.
...
XXX assuming boolean_t == int.
2004-10-10 09:57:31 +00:00
yamt
ffaa06d53c
g/c stale declarations of page queues.
2004-10-07 10:56:26 +00:00
enami
682c3c9443
- Don't let pagedaemon sleep while draining buf.
...
- Estimate amount of memory to free at a time.
Address PR#27057 (and similar hangs I saw several months ago).
2004-10-03 08:47:48 +00:00
enami
a55995c148
Count obj pages freed by pagedaemon.
2004-10-03 07:59:02 +00:00
yamt
49fe2034a3
uvm_map_printit:
...
- print wired_count if available.
- fix a printf format.
2004-09-25 04:19:38 +00:00
yamt
9555030270
make free page queue filo rather than fifo.
...
data in pages freed more recently are more likely on cpu cache.
2004-09-17 20:46:03 +00:00
yamt
175e99933e
uvm_pagefree: when orphaning an A->K loaned page,
...
- decrement uvmexp.anonpages as it's no longer an anon page.
- null out anon->u.an_page as the anon no longer own the page.
uvm_anfree: add related assertions.
2004-09-01 11:53:38 +00:00
yamt
23c60dbfe0
uvm_anfree: remove a comment which is no longer true.
2004-09-01 10:09:26 +00:00
thorpej
6c08646cb8
Garbage-collect pagemove(); nothing use it anymore (YAY!!!)
2004-08-28 22:12:40 +00:00
jdolecek
0139d61d6f
uvm_grow(): avoid needless arithmetic and make LP64 safe
2004-08-28 12:44:22 +00:00
hannken
8c21bc6224
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
...
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
Snapshots may not be opened for writing and the attributes are read-only.
Use the mtime as the time this snapshot was taken.
Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
a vnode.
- Add snapshot support to ls, fsck_ffs and dump.
Welcome to 2.0F.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-05-25 14:54:55 +00:00
atatat
db2f5beb7d
Sysctl descriptions under vm subtree
2004-05-25 04:31:17 +00:00
he
df7ebfa9c3
Move variable declaration up before the code. Fixes compile error
...
for vax, and also conforms better to KNF.
2004-05-19 22:02:05 +00:00
darrenr
e6416b1b3c
rather than just try to get a mapping from a device as only PROT_EXEC, work
...
down the list of protections until either we run out or we find one that the
device is willing to work with.
2004-05-19 13:20:27 +00:00
christos
6d5a568271
don't accept a negative number of swap devices; it will attempt to malloc
...
something very large and might crash the kernel; From Evgeny Demidov
2004-05-14 16:56:09 +00:00
yamt
5469c2b7c1
add assertions.
2004-05-12 20:09:50 +00:00
yamt
1b03fa5302
uvm_page_unbusy: add assertions and comments about PG_RELEASED anon pages.
2004-05-05 11:58:27 +00:00
yamt
8368dac6a2
fix a amap_wirerange deadlock problem by re-introducing
...
PG_RELEASED for anon pages. PR/23171 from Christian Limpach.
for details, see discussion filed in the PR database.
uvm_anon_release: a new function to free anon-owned PG_RELEASED page.
uvm_anfree: we can't wait for the page here because the caller might hold
amap lock. instead, just mark the page as PG_RELEASED.
who unbusy the page should check the PG_RELEASED.
uvm_aio_aiodone: uvm_anon_release() instead of uvm_page_unbusy()
if appropriate.
uvmfault_anonget: check PG_RELEASED.
2004-05-05 11:54:32 +00:00
yamt
bd712164d0
ubc_release: grab uobj's vmobjlock when calling uvm_page_unbusy().
2004-05-05 11:35:40 +00:00
pk
2fb3dac280
Since a vmspace' always includes a
vm_map' we can re-use vm_map's
...
reference count lock to also protect the vmspace's reference count.
2004-05-04 21:33:40 +00:00
petrov
1ac4411c10
Revert default uvm counters, rename UVMMAP_COUNTERS to UVMMAP_NOCOUNTERS.
2004-05-03 20:10:35 +00:00
pk
9b96c17df2
Make uvm_uarea_free an inline function.
2004-05-02 13:04:57 +00:00
petrov
5f4709f782
Replace uvm counters with evcnt, initialize them through __link_set (from Matt Thomas),
...
disable counters by default and add configuration option UVMMAP_COUNTERS.
2004-05-01 19:40:39 +00:00
enami
4b8bc2b80f
Make strlen calls to be folded to constant at compile time.
2004-04-29 23:13:35 +00:00
junyoung
9262158d3e
Fix typo in comments.
2004-04-27 09:50:43 +00:00
junyoung
f539f210cc
FINDSPACE_FIXED -> UVM_FLAG_FIXED in comment.
2004-04-27 09:45:02 +00:00
simonb
b5d0e6bf06
Initialise (most) pools from a link set instead of explicit calls
...
to pool_init. Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.
Convert struct session, ucred and lockf to pools.
2004-04-25 16:42:40 +00:00
simonb
04680727b1
s/this this/this/.
2004-04-23 02:48:12 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
simonb
19f85c9cf1
Fix a tyop.
2004-04-05 01:39:07 +00:00
pk
daff668b49
Use maxdmap and maxsmap instead of MAXDSIZ and MAXSSIZ.
2004-04-04 18:21:48 +00:00
yamt
dabac1bc03
uvm_map_findspace: don't return unaligned address if alignment is specified.
...
discussed on tech-kern@.
2004-03-30 12:59:09 +00:00
he
8721979173
Conditionalize a few more declarations, as they may be defined as macros:
...
pmap_collect, pmap_reference, and pmap_remove (observed lossage for vax).
2004-03-27 00:59:55 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
junyoung
325f5482a8
Nuke __P().
2004-03-24 07:55:01 +00:00
junyoung
1e2b269ded
- Nuke __P().
...
- Drop trailing spaces.
2004-03-24 07:50:48 +00:00
junyoung
7e0c058612
Drop trailing spaces.
2004-03-24 07:47:32 +00:00
junyoung
ff32ba0bff
pmap_copy() and pmap_update() might be defined as macros in <machine/pmap.h>.
2004-03-23 14:15:59 +00:00
mycroft
2fef5d8dfc
Something I posted to tech-kern a long time ago...
...
Slightly simplify uvm_map_extract() slightly by eliminating "oldstart".
2004-03-17 23:58:12 +00:00
jdolecek
43bafa5c97
fix typo in comment
2004-03-14 16:47:23 +00:00
pooka
c5e500a486
Reflect dropping mappings in map_size.
...
Avoids panic on DIAGNOSTIC kernels.
ok by chs
2004-03-11 15:03:47 +00:00
dbj
5dc123ec73
add debugging assertion ensuring UBC_FAULTBUSY is only used with UBC_WRITE
2004-03-05 20:44:01 +00:00
yamt
9359a18b6a
uvm_fault: check loan_count of neighborhood object page properly.
...
PR/24595 from Stephan Uphoff.
2004-03-02 11:43:44 +00:00
dsl
bcaf57b039
Fix prev. so it compiles
2004-02-14 16:40:22 +00:00
jdolecek
af46922ada
add compat hook in check for zerodev; use this hook to recognize
...
the old ARM /dev/zero minor mapping #ifdef COMPAT_16
fixes second part of PR kern/23581 by Richard Earnshaw
2004-02-14 12:20:14 +00:00
drochner
41b5db514b
make this compile whether DIAGNOSTIC is defined or not
2004-02-13 17:17:04 +00:00
yamt
546aea4d9c
when breaking a loan from uobj,
...
insert the replacement page into the same position
as the original page on the object memq so that
genfs_putpages (and lfs) won't be confused.
noted by Stephan Uphoff (PR/24328)
2004-02-13 13:47:16 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
yamt
babebaa9f9
uvm_loanentry: add a missing uvmfault_unlockall.
2004-02-13 11:15:30 +00:00