svn commit: r267497 - head/sys/vm

2014-06-15 Thread Alan Cox
Author: alc Date: Sun Jun 15 07:52:59 2014 New Revision: 267497 URL: http://svnweb.freebsd.org/changeset/base/267497 Log: One of the intentions behind r267254 was that the global variable sgrowsiz would be read once and cached in a local variable so that the resource limit check and map

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

2014-06-13 Thread Alan Cox
, there is. Parts of the code that you don't see in the below change make heavy use of ffsl() on the population map. On 11 June 2014 11:11, Alan Cox a...@freebsd.org wrote: Author: alc Date: Wed Jun 11 16:11:12 2014 New Revision: 267364 URL: http://svnweb.freebsd.org/changeset/base/267364

Re: svn commit: r267408 - head/sys/arm/arm

2014-06-12 Thread Alan Cox
On 06/12/2014 11:31, John-Mark Gurney wrote: Author: jmg Date: Thu Jun 12 16:31:15 2014 New Revision: 267408 URL: http://svnweb.freebsd.org/changeset/base/267408 Log: clear the write bit... This allows my AVILA board to survive a portsnap extract, where previously it would panic..

svn commit: r267364 - head/sys/vm

2014-06-11 Thread Alan Cox
Author: alc Date: Wed Jun 11 16:11:12 2014 New Revision: 267364 URL: http://svnweb.freebsd.org/changeset/base/267364 Log: Correct a bug in the management of the population map on big-endian machines. Specifically, there was a mismatch between how the routine allocation and deallocation

svn commit: r267245 - head/sys/kern

2014-06-08 Thread Alan Cox
Author: alc Date: Mon Jun 9 00:15:16 2014 New Revision: 267245 URL: http://svnweb.freebsd.org/changeset/base/267245 Log: Refresh a comment. The VM_STACK option was eliminated in r43209. Sponsored by: EMC / Isilon Storage Division Modified: head/sys/kern/kern_exec.c Modified:

svn commit: r267213 - in head/sys: amd64/amd64 arm/arm i386/i386 vm

2014-06-07 Thread Alan Cox
Author: alc Date: Sat Jun 7 17:12:26 2014 New Revision: 267213 URL: http://svnweb.freebsd.org/changeset/base/267213 Log: Add a page size field to struct vm_page. Increase the page size field when a partially populated reservation becomes fully populated, and decrease this field when a

svn commit: r266588 - head/sys/vm

2014-05-23 Thread Alan Cox
Author: alc Date: Fri May 23 16:22:36 2014 New Revision: 266588 URL: http://svnweb.freebsd.org/changeset/base/266588 Log: 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 kmem object lock.

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

2014-05-23 Thread Alan Cox
Author: alc Date: Fri May 23 16:46:50 2014 New Revision: 266589 URL: http://svnweb.freebsd.org/changeset/base/266589 Log: MFC r265886, r265948 With the new-and-improved vm_fault_copy_entry() (r265843), we can always avoid soft page faults when adding write access to user wired entries

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

2014-05-23 Thread Alan Cox
Author: alc Date: Fri May 23 17:47:49 2014 New Revision: 266591 URL: http://svnweb.freebsd.org/changeset/base/266591 Log: MFC r259107 Eliminate a redundant parameter to vm_radix_replace(). Improve the wording of the comment describing vm_radix_replace(). Modified:

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

2014-05-17 Thread Alan Cox
Author: alc Date: Sat May 17 14:35:18 2014 New Revision: 266315 URL: http://svnweb.freebsd.org/changeset/base/266315 Log: MFC r265850 About 9% of the pmap_protect() calls being performed by vm_map_copy_entry() are unnecessary. Eliminate the unnecessary calls. Modified:

svn commit: r265948 - head/sys/vm

2014-05-13 Thread Alan Cox
Author: alc Date: Tue May 13 13:20:23 2014 New Revision: 265948 URL: http://svnweb.freebsd.org/changeset/base/265948 Log: On a fork allow read-only wired pages to be copy-on-write shared between the parent and child processes. Previously, we copied these pages even though they are read

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

2014-05-12 Thread Alan Cox
Author: alc Date: Tue May 13 05:21:54 2014 New Revision: 265944 URL: http://svnweb.freebsd.org/changeset/base/265944 Log: MFC r260567 Correctly update the count of stuck pages, addl_page_shortage, in vm_pageout_scan(). There were missing increments in two less common cases.

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

2014-05-12 Thread Alan Cox
Author: alc Date: Tue May 13 05:26:43 2014 New Revision: 265945 URL: http://svnweb.freebsd.org/changeset/base/265945 Log: MFC r265418 Prior to r254304, a separate function, vm_pageout_page_stats(), was used to periodically update the reference status of the active pages. This

svn commit: r265886 - head/sys/vm

2014-05-11 Thread Alan Cox
Author: alc Date: Sun May 11 17:41:29 2014 New Revision: 265886 URL: http://svnweb.freebsd.org/changeset/base/265886 Log: With the new-and-improved vm_fault_copy_entry() (r265843), we can always avoid soft page faults when adding write access to user wired entries in vm_map_protect().

svn commit: r265850 - head/sys/vm

2014-05-10 Thread Alan Cox
Author: alc Date: Sat May 10 19:47:00 2014 New Revision: 265850 URL: http://svnweb.freebsd.org/changeset/base/265850 Log: About 9% of the pmap_protect() calls being performed by vm_map_copy_entry() are unnecessary. Eliminate the unnecessary calls. Reviewed by: kib MFC after:1

svn commit: r265554 - in stable/9/sys: amd64/amd64 i386/i386

2014-05-07 Thread Alan Cox
Author: alc Date: Wed May 7 15:52:41 2014 New Revision: 265554 URL: http://svnweb.freebsd.org/changeset/base/265554 Log: MFC r262338 When the kernel is running in a virtual machine, it cannot rely upon the processor family to determine if the workaround for AMD Family 10h Erratum

svn commit: r265556 - in stable/8/sys: amd64/amd64 i386/i386

2014-05-07 Thread Alan Cox
Author: alc Date: Wed May 7 16:28:36 2014 New Revision: 265556 URL: http://svnweb.freebsd.org/changeset/base/265556 Log: MFC r262338 When the kernel is running in a virtual machine, it cannot rely upon the processor family to determine if the workaround for AMD Family 10h Erratum

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

2014-05-06 Thread Alan Cox
On 05/06/2014 07:39, Ian Lepore wrote: On Tue, 2014-05-06 at 03:42 +, Alan Cox wrote: Author: alc Date: Tue May 6 03:42:04 2014 New Revision: 265418 URL: http://svnweb.freebsd.org/changeset/base/265418 Log: Prior to r254304, a separate function, vm_pageout_page_stats(), was used

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

2014-05-06 Thread Alan Cox
Author: alc Date: Wed May 7 00:32:49 2014 New Revision: 265476 URL: http://svnweb.freebsd.org/changeset/base/265476 Log: MFC r262338 When the kernel is running in a virtual machine, it cannot rely upon the processor family to determine if the workaround for AMD Family 10h Erratum

svn commit: r265418 - head/sys/vm

2014-05-05 Thread Alan Cox
Author: alc Date: Tue May 6 03:42:04 2014 New Revision: 265418 URL: http://svnweb.freebsd.org/changeset/base/265418 Log: Prior to r254304, a separate function, vm_pageout_page_stats(), was used to periodically update the reference status of the active pages. This function was called,

svn commit: r264346 - head/libexec/rtld-elf

2014-04-11 Thread Alan Cox
Author: alc Date: Fri Apr 11 16:55:25 2014 New Revision: 264346 URL: http://svnweb.freebsd.org/changeset/base/264346 Log: Before calling mmap() on a shared library's text and data sections, rtld first calls mmap() with the arguments PROT_NONE and MAP_ANON to reserve a single, contiguous

Re: svn commit: r263214 - in head/sys: compat/freebsd32 kern sys

2014-03-19 Thread Alan Cox
On 03/15/2014 20:26, John-Mark Gurney wrote: Adrian Chadd wrote this message on Sat, Mar 15, 2014 at 18:17 -0700: How far along does it get? It rarely gets to multiuser, and even if it does, it panics very shortly afterward: panic: vm_page_alloc: page 0xc0805db0 is wired I did finally get

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

2014-02-22 Thread Alan Cox
Author: alc Date: Sat Feb 22 18:53:42 2014 New Revision: 262338 URL: http://svnweb.freebsd.org/changeset/base/262338 Log: When the kernel is running in a virtual machine, it cannot rely upon the processor family to determine if the workaround for AMD Family 10h Erratum 383 should be

svn commit: r261647 - head/sys/vm

2014-02-08 Thread Alan Cox
Author: alc Date: Sun Feb 9 01:59:52 2014 New Revision: 261647 URL: http://svnweb.freebsd.org/changeset/base/261647 Log: Don't call vm_fault_prefault() on zero-fill faults. It's a waste of time. Successful prefaults after a zero-fill fault are extremely rare. Modified:

svn commit: r261412 - head/sys/vm

2014-02-02 Thread Alan Cox
Author: alc Date: Sun Feb 2 20:21:53 2014 New Revision: 261412 URL: http://svnweb.freebsd.org/changeset/base/261412 Log: Make prefaulting more aggressive on hard faults. Previously, we would only map a fraction of the pages that were fetched by vm_pager_get_pages() from secondary storage.

svn commit: r261135 - head/sys/vm

2014-01-24 Thread Alan Cox
Author: alc Date: Fri Jan 24 19:08:42 2014 New Revision: 261135 URL: http://svnweb.freebsd.org/changeset/base/261135 Log: In an effort to diagnose possible corruption of struct vm_page on some sparc64 machines make the page queue assert in vm_page_dequeue() more precise. While I'm here

svn commit: r260859 - head/sys/vm

2014-01-18 Thread Alan Cox
Author: alc Date: Sat Jan 18 20:02:59 2014 New Revision: 260859 URL: http://svnweb.freebsd.org/changeset/base/260859 Log: Style changes in vm_pageout_scan(): 1. Be consistent in the style of act_delta manipulations between the inactive and active queue scans. 2. Explicitly

svn commit: r260567 - head/sys/vm

2014-01-12 Thread Alan Cox
Author: alc Date: Sun Jan 12 19:04:20 2014 New Revision: 260567 URL: http://svnweb.freebsd.org/changeset/base/260567 Log: Correctly update the count of stuck pages, addl_page_shortage, in vm_pageout_scan(). There were missing increments in two less common cases. Don't conflate the count

svn commit: r260137 - head/sys/vm

2013-12-31 Thread Alan Cox
Author: alc Date: Tue Dec 31 18:25:15 2013 New Revision: 260137 URL: http://svnweb.freebsd.org/changeset/base/260137 Log: Since the introduction of the popmap to reservations in r25, there is no longer any need for the page's PG_CACHED and PG_FREE flags to be set and cleared while the

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

2013-12-29 Thread Alan Cox
On 12/29/2013 03:00, Konstantin Belousov wrote: On Sat, Dec 28, 2013 at 06:49:25PM -0600, Alan Cox wrote: On 12/28/2013 18:02, Nathan Whitehorn wrote: On 12/26/13 00:46, Marcel Moolenaar wrote: Author: marcel Date: Thu Dec 26 05:46:10 2013 New Revision: 259908 URL: http://svnweb.freebsd.org

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

2013-12-28 Thread Alan Cox
On 12/28/2013 18:02, Nathan Whitehorn wrote: On 12/26/13 00:46, Marcel Moolenaar wrote: Author: marcel Date: Thu Dec 26 05:46:10 2013 New Revision: 259908 URL: http://svnweb.freebsd.org/changeset/base/259908 Log: For ia64, use pmap_remove_pages() and not pmap_remove(). The problem is

svn commit: r260032 - head/sys/vm

2013-12-28 Thread Alan Cox
Author: alc Date: Sun Dec 29 04:54:52 2013 New Revision: 260032 URL: http://svnweb.freebsd.org/changeset/base/260032 Log: Add popmap assertions: The page being freed isn't already free, and the page being allocated isn't already allocated. Sponsored by: EMC / Isilon Storage Division

svn commit: r259999 - head/sys/vm

2013-12-27 Thread Alan Cox
Author: alc Date: Sat Dec 28 04:28:35 2013 New Revision: 25 URL: http://svnweb.freebsd.org/changeset/base/25 Log: MFp4 alc_popmap Change the way that reservations keep track of which pages are in use. Instead of using the page's PG_CACHED and PG_FREE flags, maintain a bit

svn commit: r259107 - head/sys/vm

2013-12-08 Thread Alan Cox
Author: alc Date: Sun Dec 8 20:07:02 2013 New Revision: 259107 URL: http://svnweb.freebsd.org/changeset/base/259107 Log: Eliminate a redundant parameter to vm_radix_replace(). Improve the wording of the comment describing vm_radix_replace(). Reviewed by: attilio MFC after:6

svn commit: r258287 - head/sys/arm/arm

2013-11-17 Thread Alan Cox
Author: alc Date: Sun Nov 17 23:28:10 2013 New Revision: 258287 URL: http://svnweb.freebsd.org/changeset/base/258287 Log: Implement pmap_align_superpage(). MFC after:6 weeks Modified: head/sys/arm/arm/pmap-v6.c Modified: head/sys/arm/arm/pmap-v6.c

svn commit: r258056 - head/sys/kern

2013-11-12 Thread Alan Cox
Author: alc Date: Tue Nov 12 17:46:11 2013 New Revision: 258056 URL: http://svnweb.freebsd.org/changeset/base/258056 Log: Eliminate the gratuitous use of mmap(2) flags from the implementation of kern_shmat(). Use a simpler approach to determine whether to pass VMFS_NO_SPACE or

svn commit: r257854 - in head/sys: amd64/include arm/include i386/include ia64/include kern mips/include powerpc/include sparc64/include

2013-11-08 Thread Alan Cox
Author: alc Date: Fri Nov 8 16:25:00 2013 New Revision: 257854 URL: http://svnweb.freebsd.org/changeset/base/257854 Log: As of r257209, all architectures have defined VM_KMEM_SIZE_SCALE. In other words, every architecture is now auto-sizing the kmem arena. This revision changes

svn commit: r257857 - head/sys/arm/arm

2013-11-08 Thread Alan Cox
Author: alc Date: Fri Nov 8 16:56:13 2013 New Revision: 257857 URL: http://svnweb.freebsd.org/changeset/base/257857 Log: Eliminate an unused macro. Modified: head/sys/arm/arm/pmap.c Modified: head/sys/arm/arm/pmap.c

svn commit: r257549 - head/sys/arm/include

2013-11-02 Thread Alan Cox
Author: alc Date: Sat Nov 2 17:08:20 2013 New Revision: 257549 URL: http://svnweb.freebsd.org/changeset/base/257549 Log: Don't create a distinct free page pool for segregating allocations that are accessed through the direct map unless the kernel configuration actually includes a direct

svn commit: r256275 - head/sys/vm

2013-10-10 Thread Alan Cox
Author: alc Date: Thu Oct 10 16:11:45 2013 New Revision: 256275 URL: http://svnweb.freebsd.org/changeset/base/256275 Log: Tidy up the output of sysctl vm.phys_free. Approved by: re (glebius) Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_phys.c Modified:

svn commit: r256068 - head/sys/kern

2013-10-05 Thread Alan Cox
Author: alc Date: Sat Oct 5 18:53:03 2013 New Revision: 256068 URL: http://svnweb.freebsd.org/changeset/base/256068 Log: Tidy up kmeminit(): Since r245575, 'nmbclusters' is calculated after kmeminit() runs, so it contributes nothing to 'vm_kmem_size'; update a comment to reflect that

svn commit: r255887 - head/sys/powerpc/powerpc

2013-09-26 Thread Alan Cox
Author: alc Date: Thu Sep 26 15:36:20 2013 New Revision: 255887 URL: http://svnweb.freebsd.org/changeset/base/255887 Log: Eliminate the declaration for a method that is no longer used. (This change should have been a part of r255724.) Reminded by: nathan Approved by: re (gjb)

svn commit: r255793 - head/sys/vm

2013-09-22 Thread Alan Cox
Author: alc Date: Sun Sep 22 17:48:10 2013 New Revision: 255793 URL: http://svnweb.freebsd.org/changeset/base/255793 Log: Both the vm_map and vmspace zones are defined as no free. So, there is no point in defining a fini function for these zones. Reviewed by: kib Approved by: re

svn commit: r255724 - in head/sys: amd64/amd64 arm/arm i386/i386 i386/xen ia64/ia64 mips/mips powerpc/aim powerpc/booke powerpc/powerpc sparc64/sparc64 vm

2013-09-19 Thread Alan Cox
Author: alc Date: Fri Sep 20 04:30:18 2013 New Revision: 255724 URL: http://svnweb.freebsd.org/changeset/base/255724 Log: The pmap function pmap_clear_reference() is no longer used. Remove it. pmap_clear_reference() has had exactly one caller in the kernel for several years, more

svn commit: r255474 - head/sys/i386/i386

2013-09-11 Thread Alan Cox
Author: alc Date: Wed Sep 11 17:23:42 2013 New Revision: 255474 URL: http://svnweb.freebsd.org/changeset/base/255474 Log: Prior to r254304, we only began scanning the active page queue when the amount of free memory was close to the point at which we would begin reclaiming pages. Now, we

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

2013-09-08 Thread Alan Cox
Author: alc Date: Sun Sep 8 21:30:53 2013 New Revision: 255409 URL: http://svnweb.freebsd.org/changeset/base/255409 Log: Prior to r254304, we only began scanning the active page queue when the amount of free memory was close to the point at which we would begin reclaiming pages. Now, we

svn commit: r255125 - head/sys/mips/mips

2013-09-01 Thread Alan Cox
Author: alc Date: Sun Sep 1 17:06:14 2013 New Revision: 255125 URL: http://svnweb.freebsd.org/changeset/base/255125 Log: pmap_protect() on MIPS does not need to acquire the pvh global lock. Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c

svn commit: r255098 - head/sys/mips/mips

2013-08-31 Thread Alan Cox
Author: alc Date: Sat Aug 31 16:21:13 2013 New Revision: 255098 URL: http://svnweb.freebsd.org/changeset/base/255098 Log: Implement pmap_advise(). Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c

svn commit: r255028 - in head/sys: amd64/amd64 arm/arm i386/i386 i386/xen ia64/ia64 mips/mips powerpc/powerpc sparc64/sparc64 vm

2013-08-29 Thread Alan Cox
Author: alc Date: Thu Aug 29 15:49:05 2013 New Revision: 255028 URL: http://svnweb.freebsd.org/changeset/base/255028 Log: Significantly reduce the cost, i.e., run time, of calls to madvise(..., MADV_DONTNEED) and madvise(..., MADV_FREE). Specifically, introduce a new pmap function,

svn commit: r254719 - head/sys/vm

2013-08-23 Thread Alan Cox
Author: alc Date: Fri Aug 23 17:27:12 2013 New Revision: 254719 URL: http://svnweb.freebsd.org/changeset/base/254719 Log: Addendum to r254141: The call to vm_radix_insert() in vm_page_cache() can reclaim the last preexisting cached page in the object, resulting in a call to vdrop(). Detect

svn commit: r254599 - head/sys/vm

2013-08-21 Thread Alan Cox
Author: alc Date: Wed Aug 21 15:31:43 2013 New Revision: 254599 URL: http://svnweb.freebsd.org/changeset/base/254599 Log: Addendum to r254141: Allow recursion on the free pages queues lock in vm_page_alloc_freelist(). Reported and tested by: sbruno Sponsored by: EMC / Isilon

Re: svn commit: r254430 - in head: lib/libc/sys sys/sys sys/vm usr.bin/kdump usr.bin/truss

2013-08-16 Thread Alan Cox
On Aug 16, 2013, at 2:20 PM, John Baldwin wrote: On Friday, August 16, 2013 5:13:55 pm John Baldwin wrote: Author: jhb Date: Fri Aug 16 21:13:55 2013 New Revision: 254430 URL: http://svnweb.freebsd.org/changeset/base/254430 Log: Add new mmap(2) flags to permit applications to request

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

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 12:56 PM, John Baldwin wrote: On Friday, August 09, 2013 12:43:50 pm David E. O'Brien wrote: Author: obrien Date: Fri Aug 9 16:43:50 2013 New Revision: 254150 URL: http://svnweb.freebsd.org/changeset/base/254150 Log: Add missing 'VPO_BUSY' from r254141 to fix kernel

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

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 1:34 PM, Alan Cox wrote: On Aug 9, 2013, at 12:56 PM, John Baldwin wrote: On Friday, August 09, 2013 12:43:50 pm David E. O'Brien wrote: Author: obrien Date: Fri Aug 9 16:43:50 2013 New Revision: 254150 URL: http://svnweb.freebsd.org/changeset/base/254150 Log

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

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 1:39 PM, John Baldwin wrote: On Friday, August 09, 2013 4:34:36 pm Alan Cox wrote: On Aug 9, 2013, at 12:56 PM, John Baldwin wrote: On Friday, August 09, 2013 12:43:50 pm David E. O'Brien wrote: Author: obrien Date: Fri Aug 9 16:43:50 2013 New Revision: 254150 URL

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

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 1:45 PM, John Baldwin wrote: On Friday, August 09, 2013 4:40:10 pm Alan Cox wrote: On Aug 9, 2013, at 1:34 PM, Alan Cox wrote: On Aug 9, 2013, at 12:56 PM, John Baldwin wrote: On Friday, August 09, 2013 12:43:50 pm David E. O'Brien wrote: Author: obrien Date: Fri

Re: svn commit: r254164 - head/sys/arm/include

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 2:53 PM, Olivier Houchard wrote: Author: cognet Date: Fri Aug 9 21:53:02 2013 New Revision: 254164 URL: http://svnweb.freebsd.org/changeset/base/254164 Log: Make sure vm_kmem_size is aligned on a page boundary, since that's what vmem expects. Modified:

Re: svn commit: r254171 - head/sys/arm/s3c2xx0

2013-08-09 Thread Alan Cox
On Aug 9, 2013, at 5:31 PM, Olivier Houchard wrote: Author: cognet Date: Sat Aug 10 00:31:49 2013 New Revision: 254171 URL: http://svnweb.freebsd.org/changeset/base/254171 Log: - The address lies in the bus space handle, not in the cookie - Use the right address when calling

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

2013-07-25 Thread Alan Cox
On Jul 25, 2013, at 3:40 PM, Andrey Zonov wrote: On 7/23/13 6:25 PM, Jeff Roberson wrote: Author: jeff Date: Wed Jul 24 01:25:56 2013 New Revision: 253587 URL: http://svnweb.freebsd.org/changeset/base/253587 Log: - Remove the long obsolete 'vm_pageout_algorithm' experiment. There

Re: svn commit: r253140 - head/sys/amd64/amd64

2013-07-10 Thread Alan Cox
On Jul 10, 2013, at 2:24 AM, Konstantin Belousov wrote: Author: kib Date: Wed Jul 10 09:24:03 2013 New Revision: 253140 URL: http://svnweb.freebsd.org/changeset/base/253140 Log: Clear m-object for the page taken from the delayed free list for reuse as the pv chink page in

Re: svn commit: r251586 - head/sys/arm/ti

2013-06-10 Thread Alan Cox
On 06/10/2013 06:08, Olivier Houchard wrote: On Mon, Jun 10, 2013 at 06:55:47AM +0300, Konstantin Belousov wrote: On Sun, Jun 09, 2013 at 10:51:12PM +, Olivier Houchard wrote: Author: cognet Date: Sun Jun 9 22:51:11 2013 New Revision: 251586 URL:

svn commit: r251591 - head/sys/vm

2013-06-09 Thread Alan Cox
Author: alc Date: Mon Jun 10 01:48:21 2013 New Revision: 251591 URL: http://svnweb.freebsd.org/changeset/base/251591 Log: Revise the interface between vm_object_madvise() and vm_page_dontneed() so that pointless calls to pmap_is_modified() can be easily avoided when performing madvise(...,

svn commit: r251505 - head/sys/fs/tmpfs

2013-06-07 Thread Alan Cox
Author: alc Date: Fri Jun 7 19:42:00 2013 New Revision: 251505 URL: http://svnweb.freebsd.org/changeset/base/251505 Log: Add missing VM object unlocks in an error case. Reviewed by: kib Modified: head/sys/fs/tmpfs/tmpfs_vnops.c Modified: head/sys/fs/tmpfs/tmpfs_vnops.c

svn commit: r251452 - in head/sys: dev/drm2/i915 dev/drm2/ttm fs/tmpfs kern

2013-06-06 Thread Alan Cox
Author: alc Date: Thu Jun 6 06:17:20 2013 New Revision: 251452 URL: http://svnweb.freebsd.org/changeset/base/251452 Log: Don't busy the page unless we are likely to release the object lock. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r251383 - head/sys/fs/tmpfs

2013-06-04 Thread Alan Cox
Author: alc Date: Tue Jun 4 15:40:45 2013 New Revision: 251383 URL: http://svnweb.freebsd.org/changeset/base/251383 Log: Eliminate unnecessary vm object locking from tmpfs_nocacheread(). Modified: head/sys/fs/tmpfs/tmpfs_vnops.c Modified: head/sys/fs/tmpfs/tmpfs_vnops.c

svn commit: r251391 - head/sys/security/mac

2013-06-04 Thread Alan Cox
Author: alc Date: Tue Jun 4 17:23:09 2013 New Revision: 251391 URL: http://svnweb.freebsd.org/changeset/base/251391 Log: Relax the vm object locking in mac_proc_vm_revoke_recurse(). A read lock suffices in one place. Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r251359 - head/sys/vm

2013-06-03 Thread Alan Cox
Author: alc Date: Tue Jun 4 02:28:47 2013 New Revision: 251359 URL: http://svnweb.freebsd.org/changeset/base/251359 Log: Relax the object locking in vm_pageout_map_deactivate_pages() and vm_pageout_object_deactivate_pages(). A read lock suffices. Sponsored by: EMC / Isilon Storage

svn commit: r251367 - head/sys/vm

2013-06-03 Thread Alan Cox
Author: alc Date: Tue Jun 4 05:44:52 2013 New Revision: 251367 URL: http://svnweb.freebsd.org/changeset/base/251367 Log: Update a comment. Modified: head/sys/vm/vm_page.h Modified: head/sys/vm/vm_page.h == ---

svn commit: r251257 - head/sys/kern

2013-06-02 Thread Alan Cox
Author: alc Date: Sun Jun 2 16:18:03 2013 New Revision: 251257 URL: http://svnweb.freebsd.org/changeset/base/251257 Log: Reduce the scope of the VM object locking in brelse(). In my tests, this change reduced the total number of VM object lock acquisitions by brelse() by 74%.

svn commit: r251263 - head/sys/dev/cxgb/sys

2013-06-02 Thread Alan Cox
Author: alc Date: Sun Jun 2 18:10:16 2013 New Revision: 251263 URL: http://svnweb.freebsd.org/changeset/base/251263 Log: Remove unnecessary #include's. Modified: head/sys/dev/cxgb/sys/uipc_mvec.c Modified: head/sys/dev/cxgb/sys/uipc_mvec.c

svn commit: r251280 - head/sys/vm

2013-06-02 Thread Alan Cox
Author: alc Date: Mon Jun 3 01:22:54 2013 New Revision: 251280 URL: http://svnweb.freebsd.org/changeset/base/251280 Log: Require that the page lock is held, instead of the object lock, when clearing the page's PGA_REFERENCED flag. Since we are typically manipulating the page's act_count

svn commit: r251229 - head/sys/vm

2013-06-01 Thread Alan Cox
Author: alc Date: Sat Jun 1 20:32:34 2013 New Revision: 251229 URL: http://svnweb.freebsd.org/changeset/base/251229 Log: Now that access to the page's act_count field is synchronized by the page lock instead of the object lock, there is no reason for vm_page_activate() to assert that the

svn commit: r251183 - head/sys/vm

2013-05-31 Thread Alan Cox
Author: alc Date: Fri May 31 16:00:42 2013 New Revision: 251183 URL: http://svnweb.freebsd.org/changeset/base/251183 Log: Simplify the definition of vm_page_lock_assert(). There is no compelling reason to inline the implementation of vm_page_lock_assert() in the !KLD_MODULES case. Use the

svn commit: r250745 - head/sys/vm

2013-05-17 Thread Alan Cox
Author: alc Date: Fri May 17 18:49:43 2013 New Revision: 250745 URL: http://svnweb.freebsd.org/changeset/base/250745 Log: Relax the object locking assertion in vm_page_lookup(). Now that a radix tree is used to maintain the object's collection of resident pages, vm_page_lookup() no longer

svn commit: r250747 - in head/sys: powerpc/aim powerpc/booke sparc64/sparc64

2013-05-17 Thread Alan Cox
Author: alc Date: Fri May 17 18:59:00 2013 New Revision: 250747 URL: http://svnweb.freebsd.org/changeset/base/250747 Log: Relax the object locking assertion in pmap_enter_locked(). Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r250748 - head/sys/vm

2013-05-17 Thread Alan Cox
Author: alc Date: Fri May 17 19:02:36 2013 New Revision: 250748 URL: http://svnweb.freebsd.org/changeset/base/250748 Log: Relax the object locking in vm_fault_prefault(). A read lock suffices. Reviewed by: attilio Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r250577 - head/sys/vm

2013-05-12 Thread Alan Cox
Author: alc Date: Sun May 12 16:50:18 2013 New Revision: 250577 URL: http://svnweb.freebsd.org/changeset/base/250577 Log: Refactor vm_page_alloc()'s interactions with vm_reserv_alloc_page() and vm_page_insert() so that (1) vm_radix_lookup_le() is never called while the free page queues lock

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

2013-05-12 Thread Alan Cox
On 05/12/2013 16:37, Andrey Chernov wrote: On 12.05.2013 20:50, Alan Cox wrote: GNU cc errors related to part of diff below: cc1: warnings being treated as errors ../../../vm/vm_page.c: In function 'vm_page_alloc': ../../../vm/vm_page.c:1209: warning: 'mpred' may be used uninitialized

svn commit: r250520 - head/sys/vm

2013-05-11 Thread Alan Cox
Author: alc Date: Sat May 11 18:01:41 2013 New Revision: 250520 URL: http://svnweb.freebsd.org/changeset/base/250520 Log: To reduce the amount of arithmetic performed in the various radix tree functions, reverse the numbering scheme for the levels. The highest numbered level in the tree

svn commit: r250334 - head/sys/vm

2013-05-07 Thread Alan Cox
Author: alc Date: Tue May 7 18:45:34 2013 New Revision: 250334 URL: http://svnweb.freebsd.org/changeset/base/250334 Log: Remove a redundant call to panic() from vm_radix_keydiff(). The assertion before the loop accomplishes the same thing. Sponsored by: EMC / Isilon Storage Division

svn commit: r250259 - head/sys/vm

2013-05-04 Thread Alan Cox
Author: alc Date: Sat May 4 22:50:15 2013 New Revision: 250259 URL: http://svnweb.freebsd.org/changeset/base/250259 Log: Optimize vm_radix_lookup_ge() and vm_radix_lookup_le(). Specifically, change the way that these functions ascend the tree when the search for a matching leaf fails at

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

2013-05-02 Thread Alan Cox
On 05/01/2013 22:47, David Xu wrote: On 2013/04/18 13:34, Alan Cox wrote: Author: alc Date: Thu Apr 18 05:34:33 2013 New Revision: 249605 URL: http://svnweb.freebsd.org/changeset/base/249605 Log: When calculating the number of reserved nodes, discount the pages that will be used

svn commit: r250018 - head/sys/vm

2013-04-28 Thread Alan Cox
Author: alc Date: Sun Apr 28 08:29:00 2013 New Revision: 250018 URL: http://svnweb.freebsd.org/changeset/base/250018 Log: Eliminate an unneeded call to vm_radix_trimkey() from vm_radix_lookup_le(). This call is clearing bits from the key that will be set again by the next line.

svn commit: r249986 - head/sys/vm

2013-04-27 Thread Alan Cox
Author: alc Date: Sat Apr 27 16:44:59 2013 New Revision: 249986 URL: http://svnweb.freebsd.org/changeset/base/249986 Log: Avoid some lookup restarts in vm_radix_lookup_{ge,le}(). Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_radix.c Modified:

svn commit: r249745 - head/sys/vm

2013-04-21 Thread Alan Cox
Author: alc Date: Mon Apr 22 01:26:13 2013 New Revision: 249745 URL: http://svnweb.freebsd.org/changeset/base/249745 Log: Simplify vm_radix_{add,dec}lev(). Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_radix.c Modified: head/sys/vm/vm_radix.c

svn commit: r249605 - head/sys/vm

2013-04-17 Thread Alan Cox
Author: alc Date: Thu Apr 18 05:34:33 2013 New Revision: 249605 URL: http://svnweb.freebsd.org/changeset/base/249605 Log: When calculating the number of reserved nodes, discount the pages that will be used to store the nodes. Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r249502 - head/sys/vm

2013-04-15 Thread Alan Cox
Author: alc Date: Mon Apr 15 06:12:00 2013 New Revision: 249502 URL: http://svnweb.freebsd.org/changeset/base/249502 Log: Although we perform path compression to reduce the height of the trie and the number of interior nodes, we have previously created a level zero interior node at the root

svn commit: r249427 - head/sys/vm

2013-04-12 Thread Alan Cox
Author: alc Date: Fri Apr 12 20:21:28 2013 New Revision: 249427 URL: http://svnweb.freebsd.org/changeset/base/249427 Log: Although we perform path compression to reduce the height of the trie and the number of interior nodes, we always create a level zero interior node at the root of every

svn commit: r249182 - head/sys/vm

2013-04-06 Thread Alan Cox
Author: alc Date: Sat Apr 6 06:02:55 2013 New Revision: 249182 URL: http://svnweb.freebsd.org/changeset/base/249182 Log: Simplify vm_radix_insert(). Reviewed by: attilio Tested by:pho Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_radix.c Modified:

svn commit: r249211 - head/sys/vm

2013-04-06 Thread Alan Cox
Author: alc Date: Sat Apr 6 18:04:35 2013 New Revision: 249211 URL: http://svnweb.freebsd.org/changeset/base/249211 Log: Simplify vm_radix_keybarr(). Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_radix.c Modified: head/sys/vm/vm_radix.c

svn commit: r249221 - head/sys/vm

2013-04-06 Thread Alan Cox
Author: alc Date: Sun Apr 7 01:30:51 2013 New Revision: 249221 URL: http://svnweb.freebsd.org/changeset/base/249221 Log: Micro-optimize the order of struct vm_radix_node's fields. Specifically, arrange for all of the fields to start at a short offset from the beginning of the structure.

svn commit: r249038 - head/sys/vm

2013-04-03 Thread Alan Cox
Author: alc Date: Wed Apr 3 06:37:25 2013 New Revision: 249038 URL: http://svnweb.freebsd.org/changeset/base/249038 Log: Replace the remaining uses of vm_radix_node_page() by vm_radix_isleaf() and vm_radix_topage(). This transformation eliminates some unnecessary conditional branches from

svn commit: r248728 - head/sys/vm

2013-03-26 Thread Alan Cox
Author: alc Date: Tue Mar 26 17:30:40 2013 New Revision: 248728 URL: http://svnweb.freebsd.org/changeset/base/248728 Log: Introduce vm_radix_isleaf() and use it in a couple places. As compared to using vm_radix_node_page() == NULL, the compiler is able to generate one less conditional

svn commit: r248684 - head/sys/vm

2013-03-24 Thread Alan Cox
Author: alc Date: Sun Mar 24 16:43:07 2013 New Revision: 248684 URL: http://svnweb.freebsd.org/changeset/base/248684 Log: Micro-optimize the control flow in a few places. Eliminate a panic call that could never be reached in vm_radix_insert(). (If the pointer being checked by the panic

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

2013-03-10 Thread Alan Cox
On 03/10/2013 17:56, Andre Oppermann wrote: On 08.03.2013 19:17, Alan Cox wrote: On 03/08/2013 04:14, Andre Oppermann wrote: Author: andre Date: Fri Mar 8 10:14:58 2013 New Revision: 248031 URL: http://svnweb.freebsd.org/changeset/base/248031 Log: Move the auto-sizing of the callout

svn commit: r248117 - head/sys/vm

2013-03-09 Thread Alan Cox
Author: alc Date: Sat Mar 9 21:32:24 2013 New Revision: 248117 URL: http://svnweb.freebsd.org/changeset/base/248117 Log: Update a comment: The object lock is no longer a mutex. Modified: head/sys/vm/vm_page.c Modified: head/sys/vm/vm_page.c

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

2013-03-08 Thread Alan Cox
On 03/08/2013 04:14, Andre Oppermann wrote: Author: andre Date: Fri Mar 8 10:14:58 2013 New Revision: 248031 URL: http://svnweb.freebsd.org/changeset/base/248031 Log: Move the auto-sizing of the callout array from init_param2() to kern_timeout_callwheel_alloc() where it is actually

svn commit: r247659 - head/sys/vm

2013-03-02 Thread Alan Cox
Author: alc Date: Sat Mar 2 18:07:29 2013 New Revision: 247659 URL: http://svnweb.freebsd.org/changeset/base/247659 Log: The value held by the vm object's field pg_color is only considered valid if the flag OBJ_COLORED is set. Since _vm_object_allocate() doesn't set this flag, it needn't

svn commit: r247535 - head/sys/arm/include

2013-03-01 Thread Alan Cox
Author: alc Date: Fri Mar 1 08:30:31 2013 New Revision: 247535 URL: http://svnweb.freebsd.org/changeset/base/247535 Log: Copy the definition of VM_MAX_AUTOTUNE_MAXUSERS from i386. (See r242847.) Tested by:andrew Modified: head/sys/arm/include/vmparam.h Modified:

svn commit: r247564 - in head/sys/arm: econa s3c2xx0 xscale/i80321 xscale/i8134x xscale/ixp425 xscale/pxa

2013-03-01 Thread Alan Cox
Author: alc Date: Fri Mar 1 19:02:41 2013 New Revision: 247564 URL: http://svnweb.freebsd.org/changeset/base/247564 Log: Eliminate a redundant #include: machine/pmap.h is already included through vm/pmap.h. Modified: head/sys/arm/econa/econa_machdep.c

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