svn commit: r321373 - stable/11/sys/vm

2017-07-22 Thread Alan Cox
Author: alc Date: Sat Jul 22 16:58:47 2017 New Revision: 321373 URL: https://svnweb.freebsd.org/changeset/base/321373 Log: MFC r320319 Increase the pageout cluster size to 32 pages. Decouple the pageout cluster size from the size of the hash table entry used by the swap pager for

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: r321364 - stable/11/sys/sys

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

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

2017-07-22 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

svn commit: r321362 - in stable/11/sys: amd64/amd64 i386/i386

2017-07-22 Thread Alan Cox
Author: alc Date: Sat Jul 22 06:36:27 2017 New Revision: 321362 URL: https://svnweb.freebsd.org/changeset/base/321362 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

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()

svn commit: r321360 - stable/11/sys/kern

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 05:26:29 2017 New Revision: 321360 URL: https://svnweb.freebsd.org/changeset/base/321360 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()

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

svn commit: r321358 - in stable/11/sys: kern vm

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 04:20:08 2017 New Revision: 321358 URL: https://svnweb.freebsd.org/changeset/base/321358 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

svn commit: r321357 - stable/11/sys/kern

2017-07-21 Thread Alan Cox
Author: alc Date: Sat Jul 22 03:54:04 2017 New Revision: 321357 URL: https://svnweb.freebsd.org/changeset/base/321357 Log: MFC r315597 Style fixes. In particular, the variable "bogus" is used like a Boolean. Define it as such. Modified: stable/11/sys/kern/vfs_bio.c Directory

svn commit: r321102 - head/sys/kern

2017-07-17 Thread Alan Cox
Author: alc Date: Mon Jul 17 23:16:33 2017 New Revision: 321102 URL: https://svnweb.freebsd.org/changeset/base/321102 Log: Tidy up before making another round of functional changes: Remove end- of-line whitespace, remove excessive whitespace and blank lines, remove dead code, follow our

svn commit: r321015 - head/sys/amd64/amd64

2017-07-15 Thread Alan Cox
Author: alc Date: Sat Jul 15 16:42:55 2017 New Revision: 321015 URL: https://svnweb.freebsd.org/changeset/base/321015 Log: Style-only change: Consistently use the variable name "pdpg" throughout this file. Previously, half of the pointers to a vm_page being used as a page directory page

svn commit: r321003 - head/sys/amd64/amd64

2017-07-14 Thread Alan Cox
Author: alc Date: Sat Jul 15 01:49:54 2017 New Revision: 321003 URL: https://svnweb.freebsd.org/changeset/base/321003 Log: Extract the innermost loop of pmap_remove() out into its own function, pmap_remove_ptes(). (This new function will also be used by an upcoming change to pmap_enter()

svn commit: r320980 - head/sys/vm

2017-07-13 Thread Alan Cox
Author: alc Date: Fri Jul 14 02:15:48 2017 New Revision: 320980 URL: https://svnweb.freebsd.org/changeset/base/320980 Log: Generalize vm_page_ps_is_valid() to support testing other predicates on the (super)page, renaming the function to vm_page_ps_test(). Reviewed by: kib, markj MFC

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"

svn commit: r320621 - in stable/11/sys: kern sys

2017-07-03 Thread Alan Cox
Author: alc Date: Mon Jul 3 22:20:42 2017 New Revision: 320621 URL: https://svnweb.freebsd.org/changeset/base/320621 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"

svn commit: r320560 - head/sys/vm

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 23:39:49 2017 New Revision: 320560 URL: https://svnweb.freebsd.org/changeset/base/320560 Log: Modify vm_map_growstack() to protect itself from the possibility of the gap entry in the vm map being smaller than the sysctl-derived stack guard size. Otherwise, the

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

svn commit: r320556 - stable/11/sys/vm

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 21:54:11 2017 New Revision: 320556 URL: https://svnweb.freebsd.org/changeset/base/320556 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

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:

svn commit: r320551 - stable/11/sys/vm

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

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:

svn commit: r320548 - stable/11/sys/vm

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

svn commit: r320546 - in head/sys: amd64/amd64 i386/i386

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 16:42:09 2017 New Revision: 320546 URL: https://svnweb.freebsd.org/changeset/base/320546 Log: When "force" is specified to pmap_invalidate_cache_range(), the given start address is not required to be page aligned. However, the loop within

svn commit: r320527 - head/sys/kern

2017-07-01 Thread Alan Cox
Author: alc Date: Sat Jul 1 05:27:40 2017 New Revision: 320527 URL: https://svnweb.freebsd.org/changeset/base/320527 Log: Change blst_leaf_alloc() to handle a cursor argument, and to improve performance. To find in the leaf bitmap all ranges of sufficient length, use a doubling

svn commit: r320498 - in head/sys: kern vm

2017-06-30 Thread Alan Cox
Author: alc Date: Fri Jun 30 15:49:36 2017 New Revision: 320498 URL: https://svnweb.freebsd.org/changeset/base/320498 Log: 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 still be in effect on

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

2017-06-28 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:

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

2017-06-28 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:

svn commit: r320438 - stable/11/sys/kern

2017-06-27 Thread Alan Cox
Author: alc Date: Wed Jun 28 05:28:15 2017 New Revision: 320438 URL: https://svnweb.freebsd.org/changeset/base/320438 Log: MFC r315518 Avoid unnecessary calls to vm_map_protect() in elf_load_section(). Typically, when elf_load_section() unconditionally passed VM_PROT_ALL to

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

svn commit: r320429 - in stable/11/sys: amd64/amd64 amd64/include i386/i386 i386/include

2017-06-27 Thread Alan Cox
Author: alc Date: Wed Jun 28 04:01:29 2017 New Revision: 320429 URL: https://svnweb.freebsd.org/changeset/base/320429 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

svn commit: r320417 - head/sys/kern

2017-06-27 Thread Alan Cox
Author: alc Date: Tue Jun 27 17:45:26 2017 New Revision: 320417 URL: https://svnweb.freebsd.org/changeset/base/320417 Log: Address the remaining integer overflow issues with the "skip" parameters and "next_skip" variables. The "skip" value in struct blist has long been a 64-bit quantity

svn commit: r320319 - head/sys/vm

2017-06-24 Thread Alan Cox
Author: alc Date: Sat Jun 24 17:10:33 2017 New Revision: 320319 URL: https://svnweb.freebsd.org/changeset/base/320319 Log: Increase the pageout cluster size to 32 pages. Decouple the pageout cluster size from the size of the hash table entry used by the swap pager for mapping (object,

svn commit: r320181 - head/sys/vm

2017-06-20 Thread Alan Cox
Author: alc Date: Wed Jun 21 03:55:45 2017 New Revision: 320181 URL: https://svnweb.freebsd.org/changeset/base/320181 Log: Eliminate an unused macro. MFC after:3 days Modified: head/sys/vm/swap_pager.c Modified: head/sys/vm/swap_pager.c

svn commit: r320077 - in head/sys: kern sys

2017-06-18 Thread Alan Cox
Author: alc Date: Sun Jun 18 18:23:39 2017 New Revision: 320077 URL: https://svnweb.freebsd.org/changeset/base/320077 Log: 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 on both the solid

svn commit: r320049 - head/sys/vm

2017-06-16 Thread Alan Cox
Author: alc Date: Sat Jun 17 03:05:25 2017 New Revision: 320049 URL: https://svnweb.freebsd.org/changeset/base/320049 Log: Pages that are passed to swap_pager_putpages() should already be fully dirty. Assert that they are fully dirty rather than redundantly calling vm_page_dirty() on them.

svn commit: r319985 - stable/11/sys/kern

2017-06-15 Thread Alan Cox
Author: alc Date: Thu Jun 15 18:49:46 2017 New Revision: 319985 URL: https://svnweb.freebsd.org/changeset/base/319985 Log: MFC r319540 The data type returned by vmoff() is too narrow in its range. This could break the transmission of files longer than 4 GB on 32-bit architectures.

svn commit: r319981 - in stable/11/sys: kern sys vm

2017-06-15 Thread Alan Cox
Author: alc Date: Thu Jun 15 17:06:04 2017 New Revision: 319981 URL: https://svnweb.freebsd.org/changeset/base/319981 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

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

Re: svn commit: r319905 - in head/sys: kern sys

2017-06-14 Thread Alan Cox
On 06/14/2017 10:52, Rodney W. Grimes wrote: > [ Charset UTF-8 unsupported, converting... ] >> On 06/14/2017 06:04, Hans Petter Selasky wrote: >>> On 06/13/17 19:49, Alan Cox wrote: >>>> +#definebitcount64(x)__bitcount64((uint64_t)(x)) >>> bitcount6

Re: svn commit: r319905 - in head/sys: kern sys

2017-06-14 Thread Alan Cox
On 06/14/2017 06:04, Hans Petter Selasky wrote: > On 06/13/17 19:49, Alan Cox wrote: >> +#definebitcount64(x)__bitcount64((uint64_t)(x)) > > bitcount64() is already defined by sys/libkern.h - use that? This snippet appears in code that is only used when compiling this

svn commit: r319905 - in head/sys: kern sys

2017-06-13 Thread Alan Cox
Author: alc Date: Tue Jun 13 17:49:49 2017 New Revision: 319905 URL: https://svnweb.freebsd.org/changeset/base/319905 Log: Reduce the frequency of hint updates on allocation without incurring additional allocation overhead. Previously, blst_meta_alloc() updated the hint after every

svn commit: r319793 - in head/sys: kern sys

2017-06-10 Thread Alan Cox
Author: alc Date: Sat Jun 10 16:11:39 2017 New Revision: 319793 URL: https://svnweb.freebsd.org/changeset/base/319793 Log: Remove an unnecessary field from struct blist. (The comment describing what this field represented was also inaccurate.) Suggested by: kib In r178792,

svn commit: r319756 - head/sys/sys

2017-06-09 Thread Alan Cox
Author: alc Date: Fri Jun 9 17:19:27 2017 New Revision: 319756 URL: https://svnweb.freebsd.org/changeset/base/319756 Log: Style and comment fixes only. Reviewed by: kib MFC after:6 weeks Modified: head/sys/sys/blist.h Modified: head/sys/sys/blist.h

svn commit: r319755 - in head/sys: kern sys

2017-06-09 Thread Alan Cox
Author: alc Date: Fri Jun 9 16:19:24 2017 New Revision: 319755 URL: https://svnweb.freebsd.org/changeset/base/319755 Log: blist_fill()'s return type is too narrow. blist_fill() accepts a 64-bit quantity as the size of the range to fill, but returns a 32-bit quantity as the number of

Re: svn commit: r319702 - head/sys/vm

2017-06-08 Thread Alan Cox
> On Jun 8, 2017, at 5:28 PM, John Baldwin <j...@freebsd.org> wrote: > > On Thursday, June 08, 2017 05:07:40 PM Alan Cox wrote: >> >>> On Jun 8, 2017, at 2:37 PM, John Baldwin <j...@freebsd.org> wrote: >>> >>> On Thursday, June 08, 2017 12

Re: svn commit: r319702 - head/sys/vm

2017-06-08 Thread Alan Cox
> On Jun 8, 2017, at 2:37 PM, John Baldwin wrote: > > On Thursday, June 08, 2017 12:55:45 PM Bryan Drewery wrote: >> On 6/8/17 12:18 PM, John Baldwin wrote: >>> Author: jhb >>> Date: Thu Jun 8 16:18:41 2017 >>> New Revision: 319702 >>> URL:

svn commit: r319699 - head/sys/kern

2017-06-08 Thread Alan Cox
Author: alc Date: Thu Jun 8 15:48:54 2017 New Revision: 319699 URL: https://svnweb.freebsd.org/changeset/base/319699 Log: When allocating swap blocks, if the available number of free blocks in a subtree is already zero, then setting the "largest contiguous free block" hint for that subtree

svn commit: r319655 - head/sys/kern

2017-06-07 Thread Alan Cox
Author: alc Date: Wed Jun 7 16:04:34 2017 New Revision: 319655 URL: https://svnweb.freebsd.org/changeset/base/319655 Log: Originally, this file could be compiled as a user-space application for testing purposes. However, over the years, various changes to the kernel have broken this

svn commit: r319627 - head/sys/vm

2017-06-06 Thread Alan Cox
Author: alc Date: Tue Jun 6 16:52:07 2017 New Revision: 319627 URL: https://svnweb.freebsd.org/changeset/base/319627 Log: Starting in r118390, swaponsomething() began to reserve the blocks at the beginning of a swap area for a disk label. However, neither r118390 nor r118544, which

svn commit: r319612 - in head/sys: kern vm

2017-06-05 Thread Alan Cox
Author: alc Date: Tue Jun 6 03:32:17 2017 New Revision: 319612 URL: https://svnweb.freebsd.org/changeset/base/319612 Log: When the function blist_fill() was added to the kernel in r107913, the swap pager used a different scheme for striping the allocation of swap space across multiple

svn commit: r319605 - head/sys/vm

2017-06-05 Thread Alan Cox
Author: alc Date: Mon Jun 5 18:07:56 2017 New Revision: 319605 URL: https://svnweb.freebsd.org/changeset/base/319605 Log: The variable "breakout" is used like a Boolean, so actually define it as one. Reviewed by: kib MFC after:5 days Modified: head/sys/vm/vm_pageout.c

svn commit: r319604 - in head/sys: kern sys vm

2017-06-05 Thread Alan Cox
Author: alc Date: Mon Jun 5 17:14:16 2017 New Revision: 319604 URL: https://svnweb.freebsd.org/changeset/base/319604 Log: Halve the memory being internally allocated by the blist allocator. In short, half of the memory that is allocated to implement the radix tree is wasted because we did

svn commit: r319542 - head/sys/amd64/amd64

2017-06-03 Thread Alan Cox
Author: alc Date: Sat Jun 3 17:24:13 2017 New Revision: 319542 URL: https://svnweb.freebsd.org/changeset/base/319542 Log: Eliminate duplication of the pmap and pv list unlock operations in pmap_enter() by implementing a single return path. Otherwise, the duplication will only increase

svn commit: r319540 - head/sys/kern

2017-06-03 Thread Alan Cox
Author: alc Date: Sat Jun 3 16:19:33 2017 New Revision: 319540 URL: https://svnweb.freebsd.org/changeset/base/319540 Log: The data type returned by vmoff() is too narrow in its range. This could break the transmission of files longer than 4 GB on 32-bit architectures. Reviewed by:

svn commit: r319001 - head/sys/vm

2017-05-27 Thread Alan Cox
Author: alc Date: Sat May 27 21:46:00 2017 New Revision: 319001 URL: https://svnweb.freebsd.org/changeset/base/319001 Log: After r118390, the variable "dmmax" was neither the correct strip size nor the correct maximum block size. Moreover, after r318995, it serves no purpose except to

svn commit: r318995 - head/sys/vm

2017-05-27 Thread Alan Cox
Author: alc Date: Sat May 27 16:40:00 2017 New Revision: 318995 URL: https://svnweb.freebsd.org/changeset/base/318995 Log: In r118390, the swap pager's approach to striping swap allocation over multiple devices was changed. However, swapoff_one() was not fully and correctly converted. In

svn commit: r315621 - head/sys/kern

2017-03-19 Thread Alan Cox
Author: alc Date: Mon Mar 20 05:15:55 2017 New Revision: 315621 URL: https://svnweb.freebsd.org/changeset/base/315621 Log: 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() must never be

svn commit: r315597 - head/sys/kern

2017-03-19 Thread Alan Cox
Author: alc Date: Sun Mar 19 23:06:11 2017 New Revision: 315597 URL: https://svnweb.freebsd.org/changeset/base/315597 Log: Style fixes. In particular, the variable "bogus" is used like a Boolean. Define it as such. Reviewed by: kib MFC after:1 week Modified:

svn commit: r315580 - head/sys/vm

2017-03-19 Thread Alan Cox
Author: alc Date: Sun Mar 19 19:52:47 2017 New Revision: 315580 URL: https://svnweb.freebsd.org/changeset/base/315580 Log: Two changes to vm_fault_populate(): Simplify the logic for clipping the range returned by the pager to fit within the map entry. Use atop() rather than

svn commit: r315518 - head/sys/kern

2017-03-18 Thread Alan Cox
Author: alc Date: Sat Mar 18 23:37:00 2017 New Revision: 315518 URL: https://svnweb.freebsd.org/changeset/base/315518 Log: Avoid unnecessary calls to vm_map_protect() in elf_load_section(). Typically, when elf_load_section() unconditionally passed VM_PROT_ALL to elf_map_insert(), it was

svn commit: r315476 - stable/11/sys/kern

2017-03-18 Thread Alan Cox
Author: alc Date: Sat Mar 18 06:05:54 2017 New Revision: 315476 URL: https://svnweb.freebsd.org/changeset/base/315476 Log: MFC r314717,315085 Style and punctuation fixes. Simplify the control flow and tidy up a comment in map_insert. Modified: stable/11/sys/kern/imgact_elf.c

svn commit: r315475 - in stable/11/sys: kern vm

2017-03-17 Thread Alan Cox
Author: alc Date: Sat Mar 18 05:53:09 2017 New Revision: 315475 URL: https://svnweb.freebsd.org/changeset/base/315475 Log: MFC r315318 Relax the locking requirements for vm_object_page_noreuse(). While reviewing all uses of OFF_TO_IDX(), I observed that vm_object_page_noreuse() is

svn commit: r315474 - stable/11/sys/vm

2017-03-17 Thread Alan Cox
Author: alc Date: Sat Mar 18 05:48:26 2017 New Revision: 315474 URL: https://svnweb.freebsd.org/changeset/base/315474 Log: MFC r313186 Over the years, the code and comments in vm_page_startup() have diverged in one respect. When determining how many page structures to allocate,

svn commit: r315473 - stable/11/sys/vm

2017-03-17 Thread Alan Cox
Author: alc Date: Sat Mar 18 05:38:10 2017 New Revision: 315473 URL: https://svnweb.freebsd.org/changeset/base/315473 Log: MFC r310083 Tidy up. Mostly, remove or replace stale comments. Most of the comments in this file actually described the operation of the swap pager, not the

svn commit: r315472 - stable/11/sys/vm

2017-03-17 Thread Alan Cox
Author: alc Date: Sat Mar 18 05:25:23 2017 New Revision: 315472 URL: https://svnweb.freebsd.org/changeset/base/315472 Log: MFC r309416 Eliminate a stale comment; vm_radix_prealloc() was replaced in r254141. Modified: stable/11/sys/vm/vm_radix.c Directory Properties: stable/11/ (props

Re: svn commit: r315318 - in head/sys: kern vm

2017-03-15 Thread Alan Cox
On 03/15/2017 12:59, Benjamin Kaduk wrote: > Should __FreeBSD_version be bumped, e.g., for out-of-tree filesystems > that have custom vop_advise? No, I don't think so. > On Wed, Mar 15, 2017 at 12:43 PM, Alan Cox <a...@freebsd.org > <mailto:a...@freebsd.org>> wr

svn commit: r315318 - in head/sys: kern vm

2017-03-15 Thread Alan Cox
Author: alc Date: Wed Mar 15 17:43:45 2017 New Revision: 315318 URL: https://svnweb.freebsd.org/changeset/base/315318 Log: Relax the locking requirements for vm_object_page_noreuse(). While reviewing all uses of OFF_TO_IDX(), I observed that vm_object_page_noreuse() is requiring an

Re: svn commit: r315272 - in head: lib/libc/sys sys/sys sys/vm

2017-03-15 Thread Alan Cox
On 03/14/2017 12:10, Xin LI wrote: > Author: delphij > Date: Tue Mar 14 17:10:42 2017 > New Revision: 315272 > URL: https://svnweb.freebsd.org/changeset/base/315272 > > Log: > Implement INHERIT_ZERO for minherit(2). > > INHERIT_ZERO is an OpenBSD feature. > > When a page is marked as

svn commit: r315085 - head/sys/kern

2017-03-11 Thread Alan Cox
Author: alc Date: Sat Mar 11 18:57:13 2017 New Revision: 315085 URL: https://svnweb.freebsd.org/changeset/base/315085 Log: Simplify the control flow and tidy up a comment in map_insert. In collaboration with:kib MFC after:1 week Modified: head/sys/kern/imgact_elf.c

svn commit: r314717 - head/sys/kern

2017-03-05 Thread Alan Cox
Author: alc Date: Sun Mar 5 23:59:04 2017 New Revision: 314717 URL: https://svnweb.freebsd.org/changeset/base/314717 Log: Style and punctuation fixes. Reviewed by: kib MFC after:3 days Modified: head/sys/kern/imgact_elf.c Modified: head/sys/kern/imgact_elf.c

svn commit: r314310 - in head/sys: amd64/amd64 amd64/include i386/i386 i386/include

2017-02-26 Thread Alan Cox
Author: alc Date: Sun Feb 26 19:54:02 2017 New Revision: 314310 URL: https://svnweb.freebsd.org/changeset/base/314310 Log: 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 flushed on a PDE

svn commit: r314305 - stable/11/sys/amd64/amd64

2017-02-26 Thread Alan Cox
Author: alc Date: Sun Feb 26 18:17:12 2017 New Revision: 314305 URL: https://svnweb.freebsd.org/changeset/base/314305 Log: MFC r313960 In pmap_enter(), set the PG_MANAGED flag on the new PTE in one place, rather two places, and do so before the pmap lock is acquired. Modified:

svn commit: r313960 - head/sys/amd64/amd64

2017-02-19 Thread Alan Cox
Author: alc Date: Sun Feb 19 18:00:57 2017 New Revision: 313960 URL: https://svnweb.freebsd.org/changeset/base/313960 Log: In pmap_enter(), set the PG_MANAGED flag on the new PTE in one place, rather two places, and do so before the pmap lock is acquired. Submitted by: Yufeng Zhou

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Alan Cox
On 02/07/2017 11:55, John Baldwin wrote: > On Tuesday, February 07, 2017 12:55:08 PM Edward Tomasz Napierala wrote: >> On 0207T1039, Konstantin Belousov wrote: >>> On Mon, Feb 06, 2017 at 03:03:11PM -0800, John Baldwin wrote: On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala

svn commit: r313186 - head/sys/vm

2017-02-03 Thread Alan Cox
Author: alc Date: Sat Feb 4 05:23:10 2017 New Revision: 313186 URL: https://svnweb.freebsd.org/changeset/base/313186 Log: Over the years, the code and comments in vm_page_startup() have diverged in one respect. When determining how many page structures to allocate, contrary to what the

svn commit: r310720 - head/sys/vm

2016-12-28 Thread Alan Cox
Author: alc Date: Wed Dec 28 18:32:13 2016 New Revision: 310720 URL: https://svnweb.freebsd.org/changeset/base/310720 Log: Relax the object type restrictions on vm_page_alloc_contig(). Specifically, add support for object types that were previously prohibited because they could contain

svn commit: r310083 - head/sys/vm

2016-12-14 Thread Alan Cox
Author: alc Date: Wed Dec 14 17:28:55 2016 New Revision: 310083 URL: https://svnweb.freebsd.org/changeset/base/310083 Log: Tidy up. Mostly, remove or replace stale comments. Most of the comments in this file actually described the operation of the swap pager, not the default pager. Given

svn commit: r309898 - head/sys/vm

2016-12-12 Thread Alan Cox
Author: alc Date: Mon Dec 12 17:47:09 2016 New Revision: 309898 URL: https://svnweb.freebsd.org/changeset/base/309898 Log: Eliminate every mention of PG_CACHED pages from the comments in the machine- independent layer of the virtual memory system. Update some of the nearby comments to

svn commit: r309855 - in head/sys: fs/tmpfs kern

2016-12-11 Thread Alan Cox
Author: alc Date: Sun Dec 11 19:24:41 2016 New Revision: 309855 URL: https://svnweb.freebsd.org/changeset/base/309855 Log: When tmpfs and POSIX shm pagein a page for the sole purpose of performing truncation, immediately queue the page for asynchronous laundering rather than making the page

Re: svn commit: r309703 - in head/sys: amd64/amd64 arm64/arm64 i386/i386 vm

2016-12-08 Thread Alan Cox
On 12/08/2016 07:01, Slawa Olhovchenkov wrote: > On Thu, Dec 08, 2016 at 04:29:29AM +0000, Alan Cox wrote: > >> Author: alc >> Date: Thu Dec 8 04:29:29 2016 >> New Revision: 309703 >> URL: https://svnweb.freebsd.org/changeset/base/309703 >> >> Log: >

svn commit: r309703 - in head/sys: amd64/amd64 arm64/arm64 i386/i386 vm

2016-12-07 Thread Alan Cox
Author: alc Date: Thu Dec 8 04:29:29 2016 New Revision: 309703 URL: https://svnweb.freebsd.org/changeset/base/309703 Log: Previously, vm_radix_remove() would panic if the radix trie didn't contain a vm_page_t at the specified index. However, with this change, vm_radix_remove() no longer

svn commit: r309416 - head/sys/vm

2016-12-02 Thread Alan Cox
Author: alc Date: Fri Dec 2 16:29:30 2016 New Revision: 309416 URL: https://svnweb.freebsd.org/changeset/base/309416 Log: Eliminate a stale comment; vm_radix_prealloc() was replaced in r254141. MFC after:3 days Modified: head/sys/vm/vm_radix.c Modified: head/sys/vm/vm_radix.c

svn commit: r309365 - head/sys/vm

2016-12-01 Thread Alan Cox
Author: alc Date: Thu Dec 1 17:26:37 2016 New Revision: 309365 URL: https://svnweb.freebsd.org/changeset/base/309365 Log: During vm_page_cache()'s call to vm_radix_insert(), if vm_page_alloc() was called to allocate a new page of radix trie nodes, there could be a call to vm_radix_remove()

svn commit: r309204 - in head: . share/man/man9

2016-11-26 Thread Alan Cox
Author: alc Date: Sun Nov 27 01:44:31 2016 New Revision: 309204 URL: https://svnweb.freebsd.org/changeset/base/309204 Log: The function vm_page_cache() no longer exists. Remove its man page. Deleted: head/share/man/man9/vm_page_cache.9 Modified: head/ObsoleteFiles.inc

svn commit: r309203 - head/sys/vm

2016-11-26 Thread Alan Cox
Author: alc Date: Sun Nov 27 01:42:53 2016 New Revision: 309203 URL: https://svnweb.freebsd.org/changeset/base/309203 Log: Recursion on the free page queue mutex occurred when UMA needed to allocate a new page of radix trie nodes to complete a vm_radix_insert() operation that was requested

svn commit: r309017 - in head/sys: cddl/compat/opensolaris/sys compat/linprocfs fs/tmpfs sys vm

2016-11-22 Thread Alan Cox
Author: alc Date: Tue Nov 22 18:13:46 2016 New Revision: 309017 URL: https://svnweb.freebsd.org/changeset/base/309017 Log: Remove PG_CACHED-related fields from struct vmmeter, because they are no longer used. More precisely, they are always zero because the code that decremented and

Re: svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-19 Thread Alan Cox
On 11/18/2016 04:22, Ruslan Bukin wrote: > On Thu, Nov 17, 2016 at 10:51:40AM -0600, Alan Cox wrote: >> On 11/16/2016 11:52, Ruslan Bukin wrote: >>> On Wed, Nov 16, 2016 at 04:59:39PM +, Ruslan Bukin wrote: >>>> On Wed, Nov 16, 2016 at 06:53:43PM +0200, Konstanti

Re: svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-17 Thread Alan Cox
On 11/16/2016 11:52, Ruslan Bukin wrote: > On Wed, Nov 16, 2016 at 04:59:39PM +, Ruslan Bukin wrote: >> On Wed, Nov 16, 2016 at 06:53:43PM +0200, Konstantin Belousov wrote: >>> On Wed, Nov 16, 2016 at 01:37:18PM +, Ruslan Bukin wrote: I have a panic with this on RISC-V. Any ideas ?

Re: svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-16 Thread Alan Cox
On 11/16/2016 10:59, Ruslan Bukin wrote: > On Wed, Nov 16, 2016 at 06:53:43PM +0200, Konstantin Belousov wrote: >> On Wed, Nov 16, 2016 at 01:37:18PM +, Ruslan Bukin wrote: >>> I have a panic with this on RISC-V. Any ideas ? >> How did you checked that the revision you replied to, makes the

svn commit: r308710 - head/share/man/man9

2016-11-15 Thread Alan Cox
Author: alc Date: Wed Nov 16 02:51:24 2016 New Revision: 308710 URL: https://svnweb.freebsd.org/changeset/base/308710 Log: Update to reflect the demise of PG_CACHED pages. Reviewed by: kib, markj Sponsored by: Dell EMC Isilon Differential Revision:

svn commit: r308691 - in head/sys: cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs fs/tmpfs kern vm

2016-11-15 Thread Alan Cox
Author: alc Date: Tue Nov 15 18:22:50 2016 New Revision: 308691 URL: https://svnweb.freebsd.org/changeset/base/308691 Log: Remove most of the code for implementing PG_CACHED pages. (This change does not remove user-space visible fields from vm_cnt or all of the references to cached pages

svn commit: r308474 - in head/sys: sys vm

2016-11-09 Thread Alan Cox
Author: alc Date: Wed Nov 9 18:48:37 2016 New Revision: 308474 URL: https://svnweb.freebsd.org/changeset/base/308474 Log: Introduce a new page queue, PQ_LAUNDRY, for storing unreferenced, dirty pages, specificially, dirty pages that have passed once through the inactive queue. A new,

svn commit: r308378 - stable/11/sys/vm

2016-11-06 Thread Alan Cox
Author: alc Date: Sun Nov 6 17:17:52 2016 New Revision: 308378 URL: https://svnweb.freebsd.org/changeset/base/308378 Log: MFC r308174, r308261 Move and revise a comment about the relation between the object's paging- in-progress count and the vnode. Prior to r188331, we always

svn commit: r308359 - stable/11/sys/vm

2016-11-06 Thread Alan Cox
Author: alc Date: Sun Nov 6 05:57:44 2016 New Revision: 308359 URL: https://svnweb.freebsd.org/changeset/base/308359 Log: MFC r308096, r308098, r308112 With one exception, "hardfault" is used like a "bool". Change that exception and make it a "bool". The "lookup_still_valid"

svn commit: r308261 - head/sys/vm

2016-11-03 Thread Alan Cox
Author: alc Date: Thu Nov 3 16:44:55 2016 New Revision: 308261 URL: https://svnweb.freebsd.org/changeset/base/308261 Log: In vm_fault()'s loop over the shadow chain, move a comment describing our invariants to a better place. Also, add two comments concerning the relationship between the

svn commit: r308174 - head/sys/vm

2016-11-01 Thread Alan Cox
Author: alc Date: Tue Nov 1 17:11:10 2016 New Revision: 308174 URL: https://svnweb.freebsd.org/changeset/base/308174 Log: Move and revise a comment about the relation between the object's paging- in-progress count and the vnode. Prior to r188331, we always acquired the vnode lock before

svn commit: r308112 - head/sys/vm

2016-10-30 Thread Alan Cox
Author: alc Date: Sun Oct 30 19:15:59 2016 New Revision: 308112 URL: https://svnweb.freebsd.org/changeset/base/308112 Log: Merge and sort vm_fault_hold()'s "int" variable definitions. Reviewed by: kib MFC after:7 days Modified: head/sys/vm/vm_fault.c Modified:

svn commit: r308111 - stable/11/sys/vm

2016-10-30 Thread Alan Cox
Author: alc Date: Sun Oct 30 18:33:57 2016 New Revision: 308111 URL: https://svnweb.freebsd.org/changeset/base/308111 Log: MFC r306712 Make the page daemon's notion of what kind of pass is being performed by vm_pageout_scan() local to vm_pageout_worker(). There is no reason to

svn commit: r308110 - stable/11/sys/vm

2016-10-30 Thread Alan Cox
Author: alc Date: Sun Oct 30 18:11:35 2016 New Revision: 308110 URL: https://svnweb.freebsd.org/changeset/base/308110 Log: MFC r306706 Change vm_pageout_scan() to return a value indicating whether the free page target was met. Previously, vm_pageout_worker() itself checked the

<    1   2   3   4   5   6   7   8   9   10   >