svn commit: r321459 - in stable/10/sys: kern sys

2017-07-24 Thread Alan Cox
Author: alc Date: Tue Jul 25 04:13:43 2017 New Revision: 321459 URL: https://svnweb.freebsd.org/changeset/base/321459 Log: MFC r320077 Change blist_alloc()'s allocation policy from first-fit to next-fit so that disk writes are more likely to be sequential. This change is beneficial

svn commit: r321375 - in stable/10/sys: kern sys

2017-07-22 Thread Alan Cox
Author: alc Date: Sat Jul 22 17:49:18 2017 New Revision: 321375 URL: https://svnweb.freebsd.org/changeset/base/321375 Log: MFC r319905 Reduce the frequency of hint updates on allocation without incurring additional allocation overhead. Previously, blst_meta_alloc() updated the hint aft

svn commit: r321365 - stable/10/sys/sys

2017-07-22 Thread Alan Cox
Author: alc Date: Sat Jul 22 07:28:44 2017 New Revision: 321365 URL: https://svnweb.freebsd.org/changeset/base/321365 Log: MFC r319756 Style and comment fixes Modified: stable/10/sys/sys/blist.h Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/sys/blist.h

svn commit: r321363 - in stable/10/sys: amd64/amd64 i386/i386

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 06:40:57 2017 New Revision: 321363 URL: https://svnweb.freebsd.org/changeset/base/321363 Log: MFC r320546 When "force" is specified to pmap_invalidate_cache_range(), the given start address is not required to be page aligned. However, the loop within pma

svn commit: r321361 - stable/10/sys/kern

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 05:58:10 2017 New Revision: 321361 URL: https://svnweb.freebsd.org/changeset/base/321361 Log: MFC r315621 Use IDX_TO_OFF(), not ptoa(), when converting the difference between two vm_pindex_t's into a vm_ooffset_t. The length given to shm_dotruncate() m

svn commit: r321359 - in stable/10/sys: kern vm

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 04:57:51 2017 New Revision: 321359 URL: https://svnweb.freebsd.org/changeset/base/321359 Log: MFC r320498 Clear the MAP_WIREFUTURE flag on the vm map in exec_new_vmspace() when it recycles the current vm space. Otherwise, an mlockall(MCL_FUTURE) could st

svn commit: r320622 - in stable/10/sys: kern sys

2017-07-03 Thread Alan Cox
Author: alc Date: Mon Jul 3 22:21:44 2017 New Revision: 320622 URL: https://svnweb.freebsd.org/changeset/base/320622 Log: MFC r319699 When allocating swap blocks, if the available number of free blocks in a subtree is already zero, then setting the "largest contiguous free block" hi

svn commit: r320557 - stable/10/sys/vm

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 22:21:11 2017 New Revision: 320557 URL: https://svnweb.freebsd.org/changeset/base/320557 Log: MFC r320049 Pages that are passed to swap_pager_putpages() should already be fully dirty. Assert that they are fully dirty rather than redundantly calling vm_pa

svn commit: r320552 - stable/10/sys/vm

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 20:08:45 2017 New Revision: 320552 URL: https://svnweb.freebsd.org/changeset/base/320552 Log: MFC r320181 Eliminate an unused macro. Modified: stable/10/sys/vm/swap_pager.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/swap_p

svn commit: r320550 - stable/10/sys/vm

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 19:24:53 2017 New Revision: 320550 URL: https://svnweb.freebsd.org/changeset/base/320550 Log: MFC r319605 The variable "breakout" is used like a Boolean, so actually define it as one. Modified: stable/10/sys/vm/vm_pageout.c Directory Properties: stable/1

svn commit: r320440 - stable/10/sys/vm

2017-06-27 Thread Alan Cox
Author: alc Date: Wed Jun 28 06:40:13 2017 New Revision: 320440 URL: https://svnweb.freebsd.org/changeset/base/320440 Log: MFC r281771 Eliminate an unused variable. Modified: stable/10/sys/vm/uma_core.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/uma_c

svn commit: r320439 - stable/10/sys/vm

2017-06-27 Thread Alan Cox
Author: alc Date: Wed Jun 28 06:13:58 2017 New Revision: 320439 URL: https://svnweb.freebsd.org/changeset/base/320439 Log: MFC r281720 Eliminate an unused variable. Modified: stable/10/sys/vm/device_pager.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/d

svn commit: r320432 - in stable/10/sys: amd64/amd64 amd64/include i386/i386 i386/include

2017-06-27 Thread Alan Cox
Author: alc Date: Wed Jun 28 04:23:20 2017 New Revision: 320432 URL: https://svnweb.freebsd.org/changeset/base/320432 Log: MFC r314310 Refine the fix from r312954. Specifically, add a new PDE-only flag, PG_PROMOTED, that indicates whether lingering 4KB page mappings might need to be

svn commit: r319965 - in stable/10/sys: kern sys vm

2017-06-14 Thread Alan Cox
Author: alc Date: Thu Jun 15 03:58:23 2017 New Revision: 319965 URL: https://svnweb.freebsd.org/changeset/base/319965 Log: MFC r318995 In r118390, the swap pager's approach to striping swap allocation over multiple devices was changed. However, swapoff_one() was not fully and correc

svn commit: r304942 - stable/10/sys/vm

2016-08-27 Thread Alan Cox
Author: alc Date: Sun Aug 28 05:07:13 2016 New Revision: 304942 URL: https://svnweb.freebsd.org/changeset/base/304942 Log: MFC r303982 Correct errors and clean up the comments on the active queue scan. Eliminate some unnecessary blank lines. Modified: stable/10/sys/vm/vm_pageout.c

svn commit: r303940 - stable/10/sys/vm

2016-08-10 Thread Alan Cox
Author: alc Date: Wed Aug 10 20:34:25 2016 New Revision: 303940 URL: https://svnweb.freebsd.org/changeset/base/303940 Log: MFC r303773 Correct a spelling error. Modified: stable/10/sys/vm/vm_pageout.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/vm/vm_page

svn commit: r303246 - stable/10/sys/vm

2016-07-23 Thread Alan Cox
Author: alc Date: Sat Jul 23 21:15:40 2016 New Revision: 303246 URL: https://svnweb.freebsd.org/changeset/base/303246 Log: MFC r303101 Add a comment describing the 'fast path' that was introduced in r270011. Modified: stable/10/sys/vm/vm_fault.c Directory Properties: stable/10/ (props

svn commit: r288556 - stable/10/sys/vm

2015-10-03 Thread Alan Cox
Author: alc Date: Sat Oct 3 07:43:33 2015 New Revision: 288556 URL: https://svnweb.freebsd.org/changeset/base/288556 Log: MFC r288281 The conversion of kmem_alloc_attr() from operating on a vm map to a vmem arena in r254025 introduced a bug in the case when an allocation is only par

svn commit: r288302 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 05:45:16 2015 New Revision: 288302 URL: https://svnweb.freebsd.org/changeset/base/288302 Log: MFC r266588 There is no reason to perform the pmap_remove() on the kernel pmap while the kmem object lock is held. Do the pmap_remove() before acquiring the kme

svn commit: r288300 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 05:26:22 2015 New Revision: 288300 URL: https://svnweb.freebsd.org/changeset/base/288300 Log: MFC r283795 Document vm_page_alloc_contig()'s support for the VM_ALLOC_NODUMP option. Modified: stable/10/sys/vm/vm_page.c Directory Properties: stable/10/ (props

svn commit: r288296 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 04:47:08 2015 New Revision: 288296 URL: https://svnweb.freebsd.org/changeset/base/288296 Log: MFC r288025 Correct a non-fatal error in vm_pageout_worker(). vm_pageout_worker() should not assume that vm_pages_needed will remain set while it sleeps. Other

svn commit: r288294 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 04:36:09 2015 New Revision: 288294 URL: https://svnweb.freebsd.org/changeset/base/288294 Log: MFC r285282 The intention of r254304 was to scan the active queue continuously. However, I've observed the active queue scan stopping when there are frequent fre

svn commit: r288293 - stable/10/share/man/man9

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 04:25:07 2015 New Revision: 288293 URL: https://svnweb.freebsd.org/changeset/base/288293 Log: MFC r286513, r286784 Revise the text about the atomicity of the defined operations across multiple processors. In particular, clearly state that the operations

svn commit: r288292 - stable/10/lib/libc/sys

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 04:17:08 2015 New Revision: 288292 URL: https://svnweb.freebsd.org/changeset/base/288292 Log: MFC r285428 Correct the description of MADV_DONTNEED. Modified: stable/10/lib/libc/sys/madvise.2 Directory Properties: stable/10/ (props changed) Modified: stabl

svn commit: r288288 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 01:35:32 2015 New Revision: 288288 URL: https://svnweb.freebsd.org/changeset/base/288288 Log: MFC r287121 Testing whether a page is dirty does not require the page lock. Modified: stable/10/sys/vm/vm_pageout.c Directory Properties: stable/10/ (props change

svn commit: r288286 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 01:26:41 2015 New Revision: 288286 URL: https://svnweb.freebsd.org/changeset/base/288286 Log: MFC r284654 Avoid pmap_is_modified() on pages that can't be mapped. Modified: stable/10/sys/vm/vm_pageout.c Directory Properties: stable/10/ (props changed) Modi

svn commit: r288283 - stable/10/sys/vm

2015-09-26 Thread Alan Cox
Author: alc Date: Sun Sep 27 01:15:17 2015 New Revision: 288283 URL: https://svnweb.freebsd.org/changeset/base/288283 Log: MFC r287944 Eliminate (many) unnecessary calls to pmap_remove_all(). Modified: stable/10/sys/vm/vm_page.c Directory Properties: stable/10/ (props changed) Modifi

svn commit: r281778 - stable/10/sys/kern

2015-04-20 Thread Alan Cox
Author: alc Date: Mon Apr 20 17:43:36 2015 New Revision: 281778 URL: https://svnweb.freebsd.org/changeset/base/281778 Log: MFC r278402 Preset the object's color, or alignment, to maximize superpage usage. Modified: stable/10/sys/kern/uipc_shm.c Directory Properties: stable/10/ (props

svn commit: r281776 - stable/10/sys/vm

2015-04-20 Thread Alan Cox
Author: alc Date: Mon Apr 20 17:36:43 2015 New Revision: 281776 URL: https://svnweb.freebsd.org/changeset/base/281776 Log: MFC r279400 Eliminate a variable that became unused when VFS_LOCK_GIANT() was eliminated. Modified: stable/10/sys/vm/vm_mmap.c Directory Properties: stable/10/

svn commit: r281029 - stable/10/sys/vm

2015-04-03 Thread Alan Cox
Author: alc Date: Fri Apr 3 16:40:39 2015 New Revision: 281029 URL: https://svnweb.freebsd.org/changeset/base/281029 Log: MFC r279720 Correct a typo in vm_object_backing_scan() that originated in r254141. Specifically, change a lock acquire into a lock release. Modified: stable/10/sy

svn commit: r281001 - stable/10/sys/vm

2015-04-02 Thread Alan Cox
Author: alc Date: Thu Apr 2 19:10:33 2015 New Revision: 281001 URL: https://svnweb.freebsd.org/changeset/base/281001 Log: MFC r280238 Fix the root cause of the "vm_reserv_populate: reserv is already promoted" panics. PR: 198163 Modified: stable/10/sys/vm/vm_fault.c Di