Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-03-27 | Clean up some return value handling now that we know that what's returned | Artur Grabowski | |
is proper errnos. millert@ ok and some help | |||
2007-03-26 | Rip out the KERN_ error codes. | Artur Grabowski | |
ok otto@ | |||
2007-03-25 | Remove references to KERN_SUCCESS, okay miod@ | Pedro Martelletto | |
2007-03-25 | Remove the flags_lock simplelock from struct vm_map; | Thordur I. Bjornsson | |
Cleanup the code accordingly. ok pedro@, art@ | |||
2007-03-25 | remove KERN_SUCCESS and use 0 instead. | Artur Grabowski | |
eyeballed by miod@ and pedro@ | |||
2007-02-25 | Make integer wrap checks the same for mmap, munmap, msync, etc | Todd C. Miller | |
by factoring most of the checks into a macro. OK otto@ | |||
2007-02-14 | Consistently spell FALLTHROUGH to appease lint. | Jonathan Gray | |
ok kettenis@ cloder@ tom@ henning@ | |||
2007-02-12 | Let this compile with 'option DEBUG' again. | Tom Cosgrove | |
ok dim@ | |||
2007-01-16 | Implement multiple segment allocation for uvm_pglistalloc, which fixes | Dimitry 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-12 | proper define for MAX_KMAPENT; miod@ ok | Michael Shalayeff | |
2007-01-12 | Switch 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-29 | We don't use mb_map anymore since a long time already. Remove it. | Miod Vallat | |
2006-11-29 | Remove cpu_swapin() and cpu_swapout(), they are no longer necessary (except | Miod Vallat | |
for cpu_swapin() on hppa* which is kept). | |||
2006-11-29 | Kernel stack can be swapped. This means that stuff that's on the stack | Miod 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-29 | Add an alignment parameter to uvm_km_alloc1(), and change all callers to | Miod Vallat | |
pass zero; this will be used shortly. From art@ | |||
2006-10-03 | Introduce daddr64_t and use it for physical block numbers | Pedro Martelletto | |
Okay weingart@, "I'm game with putting my name on it" dlg@ | |||
2006-07-31 | fix 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-26 | fix fmts for UVMHIST_LOG() entries making it more useful on 64bit archs; ↵ | Michael Shalayeff | |
miod@ ok | |||
2006-07-13 | Back out the anon change. Apparently it was tested by a few, but most of | Theo 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-29 | fallout from previous: remmapping anonymous memory did not account dsize ↵ | Michael Shalayeff | |
proper; found by krause and mmap_fixed | |||
2006-06-21 | from 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-16 | IS_VM_PHYSADDR is no longer used. | Miod Vallat | |
2006-06-10 | Make uvn_sync_lock a rwlock, okay thib@ tedu@ | Pedro Martelletto | |
2006-06-01 | Make umv_pglistalloc() return EINVAL if it is asked for 0 bytes. This | Kenneth R Westerback | |
will prevent panics in, e.g., bus_dmamem_alloc(). ok jason@ art@ | |||
2006-05-25 | Enable optional specific handling of the u-area in pmap via PMAP_UAREA if | Miod Vallat | |
defined; from NetBSD. Currently only used on xscale arm to use the mini data cache for u area mappings instead of the main data cache. | |||
2006-05-16 | tpyo | Michael Shalayeff | |
2006-05-07 | remove drain hooks from pool. | Ted Unangst | |
1. drain hooks and lists of allocators make the code complicated 2. the only hooks in the system are the mbuf reclaim routines 3. if reclaim is actually able to put a meaningful amount of memory back in the system, i think something else is dicked up. ie, if reclaiming your ip fragment buffers makes the difference thrashing swap and not, your system is in a load of trouble. 4. it's a scary amount of code running with very weird spl requirements and i'd say it's pretty much totally untested. raise your hand if your router is running at the edge of swap. 5. the reclaim stuff goes back to when mbufs lived in a tiny vm_map and you could run out of va. that's very unlikely (like impossible) now. ok/tested pedro krw sturm | |||
2006-04-27 | from PAE work: | Michael Shalayeff | |
as paddr_t could be a long long (soon) always cast and print as llx. | |||
2006-04-27 | from PAE work: | Michael Shalayeff | |
as freepages being vconverted back to byte address make sure to perform calculations in (upcoming) larger paddr_t to avoid losing higher bits in calculation. | |||
2006-04-25 | limit pool backend preallocation to 2048 pages max (which only affects >2g ↵ | Michael Shalayeff | |
physmem); miod@ toby@ ok | |||
2006-04-06 | Fix a process datasize leak with MAP_FIXED. When zapping old mappings | Kurt Miller | |
call uvm_unmap_p instead of uvm_unmap so that it has the process information and can adjust vm_dused. okay pedro@ tedu@ | |||
2006-04-04 | Revert r1.58, I was on drugs - the array we are locking is one byte per | Miod Vallat | |
page, so the arithmetic was ok. Spotted by david@ | |||
2006-03-16 | In sys_mincore(), pass a size in bytes, not pages, to uvm_vslock() and | Miod Vallat | |
uvm_vsunlock(). ok mickey@ | |||
2006-03-06 | deal w/ uvm_km_alloc() returning null; tedu@ ok | Michael Shalayeff | |
2006-03-06 | do not panic unwiring unmapped memory (mmap3 regress); from netbsd; ↵ | Michael Shalayeff | |
kettenis@ tedu@ ok | |||
2006-01-16 | add another uvm histroy for physpage alloc/free and propagate a debugging ↵ | Michael Shalayeff | |
pgfree check into pglist; no functional change for normal kernels; make histories uncommon | |||
2006-01-02 | fix typo in comment | Tom Cosgrove | |
ok deraadt@ | |||
2005-12-10 | Don't check/free new_entry here, since it can't have been set. Spotted | Kenneth R Westerback | |
by lint. "Probably a bogus cut'n paste." says moid. ok miod@ pedro@ | |||
2005-12-10 | {en,re}trys -> {en,re}tries; eyeballed by jmc@ | Miod Vallat | |
2005-11-29 | apply patch from david hill for two netbsd prs: | Ted Unangst | |
14060 skip MADV_SEQUENTIAL if refaulting 18037 missing pageactivate tested for some time by jolan krw | |||
2005-11-25 | do not use any casting in the atop/ptoa; tested on all archs by martin@ ↵ | Michael Shalayeff | |
miod@ mickey@ | |||
2005-11-19 | Remove unnecessary lockmgr() archaism that was costing too much in terms | Pedro Martelletto | |
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks. | |||
2005-11-15 | Only two `h' in threshold. | Miod Vallat | |
2005-11-04 | Add an extra flags argument to uvm_io(), to specify whether we want to fix | Miod Vallat | |
the protection of the memory mapping we're doing I/O on, or if we want to leave them as they are. This should only be necessary for breakpoint insertion in code, so we'll only use it for ptrace requests. Initially from art@ after discussion with kettenis@ millert@ and I, tested by many. | |||
2005-11-01 | In uvm_swapout(), protect "p->p_swtime = 0;" with SCHED_LOCK() as is already | Aaron Campbell | |
done in uvm_swapin(). Looks like this was a mistake made while editing. No response from art@. deraadt@, miod@, pedro@ ok | |||
2005-10-27 | Following a next pointer of an element deleted from a list is bad | Otto Moerbeek | |
practise. Depending on the list implementation, this might or might not work; so make it use a safe idiom. ok pedro@ millert@ deraadt@ | |||
2005-10-23 | typo | Pedro Martelletto | |
2005-10-06 | typo | Brad Smith | |
2005-09-30 | revert MAX_KMAPENT hack added just before 3.7 now that | Brad Smith | |
a proper fix has been implemented in uvm_mapent_alloc(). ok pedro@ | |||
2005-09-30 | Make ddb's 'show uvmexp' print information about kmapent, okay deraadt@ | Pedro Martelletto | |