summaryrefslogtreecommitdiffstats
path: root/sys/vm
Commit message (Collapse)AuthorAgeFilesLines
* MFC r313693:kib2017-02-201-71/+10
| | | | Remove MPSAFE and ARGUSED annotations, ANSI-fy syscall handlers.
* MFC r313249:kib2017-02-071-2/+2
| | | | Style, use tab after #define.
* MFC 310028: Use db_lookup_proc() in the DDB 'show procvm' command.jhb2017-01-181-1/+1
| | | | This allows processes to be identified by PID as well as a pointer address.
* MFC r267546 (by alc):kib2017-01-081-77/+59
| | | | | | | | | | | | | | | | | | | | | | | | Tidy up the early parts of vm_map_insert(). MFC r267645 (by alc): When MAP_STACK_GROWS_{DOWN,UP} are passed to vm_map_insert() set the corresponding flag(s) in the new map entry. Pass MAP_STACK_GROWS_DOWN to vm_map_insert() from vm_map_growstack() when extending the stack in the downward direction. MFC r267850 (by alc): Place the check that blocks map entry coalescing on stack entries in vm_map_simplify_entry(). MFC r267917 (by alc): Delay the call to crhold() in vm_map_insert() until we know that we won't have to undo it by calling crfree(). Eliminate an unnecessary variable from vm_map_insert(). MFC r311014: Style fixes for vm_map_insert(). Tested by: pho
* MFC r310982:kib2017-01-071-36/+22
| | | | Ansify vm/vm_pager.c. Style.
* MFC r310821:kib2017-01-061-16/+22
| | | | Style.
* MFC r310834:kib2017-01-061-6/+10
| | | | | Assert that the pages found on the object queue by vm_page_next() and vm_page_prev() have correct ownership.
* MFC r310616:kib2017-01-021-10/+3
| | | | Remove redundancy in vmtotal().
* MFC r310182:kib2016-12-231-9/+9
| | | | In swp_pager_meta_free_all(), fix type of the index variable. Style.
* MFC r310098:kib2016-12-211-0/+10
| | | | Provide introductory description of the default pager.
* MFC r309709:kib2016-12-151-3/+3
| | | | Move map_generation snapshot value into struct faultstate.
* MFC r309708:kib2016-12-151-10/+4
| | | | Style.
* MFC r308733:kib2016-11-231-30/+50
| | | | | | Move the fast fault path into the separate function. Tested by: pho
* MFC r308114:kib2016-11-061-4/+4
| | | | Change remained internal uses of boolean_t to bool in vm/vm_fault.c.
* MFC r308113:kib2016-11-061-1/+0
| | | | Remove vm_pager_has_page() declaration.
* MFC r308109:kib2016-11-061-5/+2
| | | | Remove vnode_locked label and goto.
* MFC r304053, r304054:markj2016-11-052-3/+3
| | | | | | Initialize busy lock state and strengthen busy lock assertions. Tested by: Oliver Pinter
* MFC r308094:kib2016-11-051-15/+15
| | | | | | | Add unlock_vp() helper. MFC r308095 (by markj): Add one more use of unlock_vp().
* MFC r307236:markj2016-10-211-0/+2
| | | | Plug a vnode lock leak in vm_fault_hold().
* MFC r307218:kib2016-10-203-16/+16
| | | | Fix a race in vm_page_busy_sleep(9).
* MFC r307064:kib2016-10-181-1/+12
| | | | | When downgrading exclusively busied page to shared-busy state, wakeup waiters.
* MFC r305129:kib2016-09-141-9/+22
| | | | Make swapoff reliable.
* MFC r303982alc2016-08-281-11/+14
| | | | | | Correct errors and clean up the comments on the active queue scan. Eliminate some unnecessary blank lines.
* MFC r303059markj2016-08-141-3/+2
| | | | Release the second critical section in uma_zfree_arg() slightly earlier.
* MFC r303516markj2016-08-141-1/+1
| | | | Use vm_page_undirty() instead of manually setting a page field.
* MFC r303244, r303399markj2016-08-141-19/+19
| | | | De-pluralize "queues" in the pagedaemon code.
* MFC r303773alc2016-08-101-1/+1
| | | | Correct a spelling error.
* MFC r302567:kib2016-07-251-0/+4
| | | | | | | | In vgonel(), postpone setting BO_DEAD until VOP_RECLAIM() is called, if vnode is VMIO. For VMIO vnodes, set BO_DEAD in vm_object_terminate(). MFC r302580: Fix grammar.
* MFC r303101alc2016-07-231-0/+9
| | | | Add a comment describing the 'fast path' that was introduced in r270011.
* MFC r301212:markj2016-07-161-0/+2
| | | | Reset the page busy lock state after failing to insert into the object.
* MFC r301210:markj2016-07-161-6/+2
| | | | Don't preserve the page's object linkage in vm_page_insert_after().
* MFC r302236:kib2016-07-101-4/+11
| | | | | | | | Handle the vm_fault() handler race with the vm_object_collapse() sleepable scan. MFC r302317: Change type of the 'dead' variable to boolean.
* MFC r302063:kib2016-06-282-46/+37
| | | | Avoid the active object marking for vm.vmtotal sysctl.
* MFC r301851:kib2016-06-201-0/+1
| | | | Explicitely initialize sw_alloc_sx.
* Redo MFC r300220,r300223:ngie2016-06-112-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D6803 Reviewed by: alc, kib Sponsored by: EMC / Isilon Storage Division r300220 (by cem): sys/vmmeter.h: Fix trivial '-Wsign-compare' warning in common header Frankly, it doesn't make sense for vm_pageout_wakeup_thresh to have a negative value (it is only ever set to a fraction of v_free_min, which is unsigned and also obviously non-negative). But I'm not going to try and convert every non-negative scalar in the VM to unsigned today, so just cast it for the comparison. r300223 (by cem): vm/vm_page.h: Fix trivial '-Wpointer-sign' warning pq_vcnt, as a count of real things, has no business being negative. It is only ever initialized by a u_int counter. The warning came from the atomic_add_int() in vm_pagequeue_cnt_add(). Rectify the warning by changing the variable to u_int. No functional change. Suggested by: Clang 3.3
* MFC r300959:kib2016-06-051-0/+1
| | | | | Do not leak the vm object lock when swap reservation failed, in vm_object_coalesce().
* MFC r300758:kib2016-06-021-0/+5
| | | | Prevent parallel object collapses.
* MFC r300756:kib2016-06-021-9/+6
| | | | Style.
* MFC r300622:kib2016-06-011-1/+2
| | | | | In vm_page_cache(), only drop the vnode after radix insert failure for empty page cache when the object type is OBJT_VNODE.
* MFC r300596:kib2016-06-011-1/+3
| | | | | | In vm_page_alloc_contig(), on vm_page_insert() failure, mark each freed page as VPO_UNMANAGED. Otherwise vm_pge_free_toq() insists on owning the page lock.
* MFC r300432:kib2016-05-251-2/+0
| | | | Giant is dropped by mi_startup() before passing the control to swapper.
* MFC r298891:kib2016-05-081-5/+13
| | | | | Avoid duplicated calls to pmap_page_get_memattr(). Avoid logging inconsistency for the /dev/mem device.
* MFC r298482:pfg2016-04-261-1/+1
| | | | | | Cleanup redundant parenthesis from existing howmany()/roundup() macro uses. Requested by: dchagin
* MFC 290728:jhb2016-01-181-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Export various helper variables describing the layout and size of certain kernel structures for use by debuggers. This mostly aids in examining cores from a kernel without debug symbols as a debugger can infer these values if debug symbols are available. One set of variables describes the layout of 'struct linker_file' to walk the list of loaded kernel modules. A second set of variables describes the layout of 'struct proc' and 'struct thread' to walk the list of processes in the kernel and the threads in each process. The 'pcb_size' variable is used to index into the stoppcbs[] array. The 'vm_maxuser_address' is used to distinguish kernel virtual addresses from user addresses. This doesn't have to be perfect, and 'vm_maxuser_address' is a cheap and simple way to differentiate kernel pointers from simple values like TIDs and PIDs. While here, annotate the fields in struct pcb used by kgdb on amd64 and i386 to note that their ABI should be preserved. Annotations for other platforms will be added in the future.
* MFC r291576:kib2015-12-151-97/+84
| | | | | Handle invalid pages found during the sleepable collapse scan, do not free the shadow page swap space. Combine the sleep code.
* MFC r291408:kib2015-12-111-5/+6
| | | | | In vm_pageout_grow_cache(), do not re-try the inactive queue when active queue scan initiated write, to avoid infinite loop.
* MFC r290920:kib2015-12-072-14/+30
| | | | | Raise OOM when pagedaemon is unable to produce a free page in several back-to-back passes.
* MFC r290917:kib2015-12-071-3/+63
| | | | | | Provide the OOM-specific vm_pageout_oom_pagecount() function which estimates the amount of reclamaible memory which could be stolen if the process is killed.
* MFC r290915:kib2015-12-071-1/+2
| | | | | Do not skip a process which has inhibited thread due to the swap-out, in the OOM selection loop.
* MFC r291446:kib2015-12-061-18/+10
| | | | | | | | | | Minor cleanup. Systematically use ANSI C functions definitions. Correct type of the flags argument to the dev_pager_putpages() function. vm_pager_free_nonreq() does not exist in stable/10, this part is not merged.
OpenPOWER on IntegriCloud