summaryrefslogtreecommitdiff
path: root/sys/uvm
AgeCommit message (Collapse)Author
2007-05-29Kill some simplelock goo that annoyed me while reading.Thordur I. Bjornsson
ok art@
2007-05-29Add a name argument to the RWLOCK_INITIALIZER macro.Thordur I. Bjornsson
Pick reasonble names for the locks involved.. ok tedu@, art@
2007-05-27pagemove() is no longer used.Miod Vallat
2007-05-26Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@Pedro Martelletto
deraadt@ dlg@.
2007-05-18Instead of checking whichqs directly, add a "sched_is_idle()" macro toArtur Grabowski
sys/sched.h and use that to check if there's something to do. kettenis@ thib@ ok
2007-05-18Instead of a silly loop with goto, just use while(1).Artur Grabowski
2007-05-09Truncate the addresses for the deadbeef values so that they don't needArtur Grabowski
to be page aligned and can contain more "noise". From mickey art@ ok
2007-04-29Change the loop test in uvm_km_kmemalloc from '<' to '!='. EverythingArtur Grabowski
is aligned just fine and in case we allocate the last piece of the address space we don't want wrap-around to cause us to fail. pointed out by and ok miod@
2007-04-27For uvm_map and uvm_unmap, splassert(IPL_NONE) for non-INTRSAFE maps.Artur Grabowski
miod@ ok
2007-04-27Another indentation cleanup without binary changes.Artur Grabowski
(I'm reading code, that's where this comes from).
2007-04-27Some ANSI function prototypes and misc cleanups.Artur Grabowski
only binary change is the line numbers to asserts.
2007-04-27Some indentation cleanup.Artur Grabowski
md5@ ok.
2007-04-27Use the right size when we're backing out the allocation inArtur Grabowski
uvm_km_kmemalloc. "should probbaly go in" millert@, "I think it should too" deraadt@
2007-04-19Also show fpu context switches in show uvmexp in ddb.Artur Grabowski
From mickey. art@ ok
2007-04-18Reserve a few pg_flags for pmaps that might want to use them.Artur Grabowski
i386 will use them soon and miod wants to work on other pmaps in parallell. miod@ ok
2007-04-15One more voff_t in the right place.Artur Grabowski
miod@ ok
2007-04-15Use the right types for calculating the object offset.Artur Grabowski
miod@ ok
2007-04-15Clean up prototypes, change vm_map_t to struct vm_map *.Artur Grabowski
miod@ ok
2007-04-15minor indentation.Artur Grabowski
2007-04-14remove staticTed Unangst
ok beck miod pedro thib
2007-04-14Clean up.Artur Grabowski
- ansi-fy - use struct vm_map * and struct vm_map_entry * instead of _t types - fix some indentation problems. miod@ ok
2007-04-13While splitting flags and pqflags might have been a good idea in theoryArtur Grabowski
to separate locking, on most modern machines this is not enough since operations on short types touch other short types that share the same word in memory. Merge pg_flags and pqflags again and now use atomic operations to change the flags. Also bump wire_count to an int and pg_version might go int as well, just for alignment. tested by many, many. ok miod@
2007-04-12Allow machine-dependant overrides for the ``deadbeef'' sentinel values,Miod Vallat
and make sure that nothing can ever be mapped at theses addresses. Only i386 overrides the default for now. From mickey@, ok art@ miod@
2007-04-12Unbreak compile with option UVMHIST after pg_flags changes.Artur Grabowski
from mickey
2007-04-11The return value of uvm_grow() (and previously, grow()) has not been usedMiod Vallat
in 15 years, make it a void function. ok art@
2007-04-11Instead of managing pages for intrsafe maps in special objects (aka.Artur Grabowski
kmem_object) just so that we can remove them, just use pmap_extract to get the pages to free and simplify a lot of code to not deal with the list of intrsafe maps, intrsafe objects, etc. miod@ ok
2007-04-04Switch vm_map lock to rwlock.Artur Grabowski
Use a simple "rw_exit_read(); rw_enter_write();" for lock upgrade, since that's what lockmgr did anyway. deraadt@ ok
2007-04-04Mechanically rename the "flags" and "version" fields in struct vm_pageArtur Grabowski
to "pg_flags" and "pg_version", so that they are a bit easier to work with. Whoever uses generic names like this for a popular struct obviously doesn't read much code. Most architectures compile and there are no functionality changes. deraadt@ ok ("if something fails to compile, we fix that by hand")
2007-03-27Clean up some return value handling now that we know that what's returnedArtur Grabowski
is proper errnos. millert@ ok and some help
2007-03-26Rip out the KERN_ error codes.Artur Grabowski
ok otto@
2007-03-25Remove references to KERN_SUCCESS, okay miod@Pedro Martelletto
2007-03-25Remove the flags_lock simplelock from struct vm_map;Thordur I. Bjornsson
Cleanup the code accordingly. ok pedro@, art@
2007-03-25remove KERN_SUCCESS and use 0 instead.Artur Grabowski
eyeballed by miod@ and pedro@
2007-02-25Make integer wrap checks the same for mmap, munmap, msync, etcTodd C. Miller
by factoring most of the checks into a macro. OK otto@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-02-12Let this compile with 'option DEBUG' again.Tom Cosgrove
ok dim@
2007-01-16Implement multiple segment allocation for uvm_pglistalloc, which fixesDimitry Andric
most agp_generic_bind_memory failures when memory is limited and very fragmented. In effect, this should fix a lot of X startup crashes after activities that exercise memory a lot (e.g. make builds, building big ports, etc). ok mickey, miod
2007-01-12proper define for MAX_KMAPENT; miod@ okMichael Shalayeff
2007-01-12Switch some lockmgr locks to rwlocks.Artur Grabowski
In this commit: - gdt lock on amd64 - sysctl lock - malloc sysctl lock - disk sysctl lock - swap syscall lock miod@, pedro@ ok (and "looks good" others@)
2006-11-29We don't use mb_map anymore since a long time already. Remove it.Miod Vallat
2006-11-29Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (exceptMiod Vallat
for cpu_swapin() on hppa* which is kept).
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-29Add an alignment parameter to uvm_km_alloc1(), and change all callers toMiod Vallat
pass zero; this will be used shortly. From art@
2006-10-03Introduce daddr64_t and use it for physical block numbersPedro Martelletto
Okay weingart@, "I'm game with putting my name on it" dlg@
2006-07-31fix uvmhist #2: args are always u_long so fix missing %d and %x and no %ll; ↵Michael Shalayeff
no change for normal code
2006-07-26fix fmts for UVMHIST_LOG() entries making it more useful on 64bit archs; ↵Michael Shalayeff
miod@ ok
2006-07-13Back out the anon change. Apparently it was tested by a few, but most ofTheo de Raadt
us did not see it or get a chance to test it before it was commited. It broke cvs, in the ami driver, making it not succeed at seeing it's devices.
2006-06-29fallout from previous: remmapping anonymous memory did not account dsize ↵Michael Shalayeff
proper; found by krause and mmap_fixed
2006-06-21from netbsd: make anons dynamically allocated from pool.Michael Shalayeff
this results in lesse kva waste due to static preallocation of those for every phys page and also every swap page. tested by beck krw miod
2006-06-16IS_VM_PHYSADDR is no longer used.Miod Vallat