Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Sun, 20 Mar 2011, Kirk McKusick wrote: Date: Sun, 20 Mar 2011 13:25:20 -0700 From: Doug Barton To: Marius Strobl CC: Kirk McKusick , Nathan Whitehorn , svn-src-head@FreeBSD.org, Jeff Roberson , Gavin Atkinson , svn-src-...@freebsd.org, src-committ...@freebsd.org

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Sun, 20 Mar 2011, Doug Barton wrote: On 03/20/2011 09:22, Marius Strobl wrote: I fear it's still a bit premature for enable SU+J by default. Rather recently I was told about a SU+J filesystems lost after a panic that happend after snapshotting it (report CC'ed, maybe he can provide some mor

Re: svn commit: r219667 - head/usr.sbin/bsdinstall/partedit

2011-03-21 Thread Jeff Roberson
On Mon, 21 Mar 2011, Michael Moll wrote: Hi All, On Sun, Mar 20, 2011 at 05:22:12PM +0100, Marius Strobl wrote: I fear it's still a bit premature for enable SU+J by default. Rather recently I was told about a SU+J filesystems lost after a panic that happend after snapshotting it (report CC'ed,

svn commit: r219849 - head/sys/modules

2011-03-21 Thread Jeff Roberson
Author: jeff Date: Mon Mar 21 21:35:19 2011 New Revision: 219849 URL: http://svn.freebsd.org/changeset/base/219849 Log: - For now, disable ofed module build unless MK_OFED is set. Modified: head/sys/modules/Makefile Modified: head/sys/modules/Makefile ===

svn commit: r219859 - head/sys/ofed/drivers/net/mlx4

2011-03-21 Thread Jeff Roberson
Author: jeff Date: Tue Mar 22 04:50:47 2011 New Revision: 219859 URL: http://svn.freebsd.org/changeset/base/219859 Log: - Don't use a separate set of rx queues for UDP, hash them into the same set as TCP. - Eliminate the fully linear non-scatter/gather rx path, there is no harm in

svn commit: r219893 - head/sys/ofed/drivers/net/mlx4

2011-03-22 Thread Jeff Roberson
Author: jeff Date: Wed Mar 23 02:47:04 2011 New Revision: 219893 URL: http://svn.freebsd.org/changeset/base/219893 Log: - Correct the vlan filter programming. The device filter is built in reverse order. - Name the cq taskqueues according to whether they handle rx or tx. - Default L

svn commit: r219898 - head/sys/modules

2011-03-23 Thread Jeff Roberson
Author: jeff Date: Wed Mar 23 08:27:57 2011 New Revision: 219898 URL: http://svn.freebsd.org/changeset/base/219898 Log: - Move ofed modules into the i386 and amd64 specific sections to fix universe on other architectures. Modified: head/sys/modules/Makefile Modified: head/sys/modules/M

svn commit: r220016 - in head/sys/ofed: drivers/net/mlx4 include/linux/mlx4

2011-03-25 Thread Jeff Roberson
Author: jeff Date: Sat Mar 26 00:54:01 2011 New Revision: 220016 URL: http://svn.freebsd.org/changeset/base/220016 Log: - Implement wake-on-lan support in mlxen. Modified: head/sys/ofed/drivers/net/mlx4/en_ethtool.c head/sys/ofed/drivers/net/mlx4/en_netdev.c head/sys/ofed/drivers/net/mlx

svn commit: r220282 - head/sys/ufs/ffs

2011-04-02 Thread Jeff Roberson
Author: jeff Date: Sat Apr 2 21:52:58 2011 New Revision: 220282 URL: http://svn.freebsd.org/changeset/base/220282 Log: Fix problems that manifested from filesystem full conditions: - In softdep_revert_mkdir() find the dotaddref before we attempt to cancel the jaddref so we can make a

svn commit: r220406 - head/sys/ufs/ffs

2011-04-06 Thread Jeff Roberson
Author: jeff Date: Thu Apr 7 03:19:10 2011 New Revision: 220406 URL: http://svn.freebsd.org/changeset/base/220406 Log: - Don't invalidate jnewblks immediately upon discovering that the block will be removed. Permit the journal to proceed so that we don't leave a rollback in a cg for

svn commit: r220511 - head/sys/ufs/ffs

2011-04-09 Thread Jeff Roberson
Author: jeff Date: Sun Apr 10 03:49:53 2011 New Revision: 220511 URL: http://svn.freebsd.org/changeset/base/220511 Log: Fix a long standing SUJ performance problem: - Keep a hash of indirect blocks that have recently been freed and are still referenced in the journal. - Lookup bloc

Re: svn commit: r220511 - head/sys/ufs/ffs

2011-04-09 Thread Jeff Roberson
On Sun, 10 Apr 2011, Jeff Roberson wrote: Author: jeff Date: Sun Apr 10 03:49:53 2011 New Revision: 220511 URL: http://svn.freebsd.org/changeset/base/220511 Log: Fix a long standing SUJ performance problem: This brought my dbench performance to within 10-15% of softupdates on a real disk

svn commit: r220532 - head/sys/ufs/ffs

2011-04-10 Thread Jeff Roberson
Author: jeff Date: Mon Apr 11 01:43:59 2011 New Revision: 220532 URL: http://svn.freebsd.org/changeset/base/220532 Log: - Refactor softdep_setup_freeblocks() into a set of functions to prepare for a new journal specific partial truncate routine. - Use dep_current[] in place of specific

svn commit: r221055 - in head/sys: kern ofed/include/linux

2011-04-26 Thread Jeff Roberson
Author: jeff Date: Tue Apr 26 07:30:52 2011 New Revision: 221055 URL: http://svn.freebsd.org/changeset/base/221055 Log: - Catch up to falloc() changes. - PHOLD() before using a task structure on the stack. - Fix a LOR between the sleepq lock and thread lock in _intr_drain(). Modified:

svn commit: r207141 - in head: lib/libufs sbin/dumpfs sbin/fsck_ffs sbin/fsdb sbin/tunefs sys/kern sys/sys sys/ufs/ffs sys/ufs/ufs usr.sbin/makefs/ffs

2010-04-24 Thread Jeff Roberson
Author: jeff Date: Sat Apr 24 07:05:35 2010 New Revision: 207141 URL: http://svn.freebsd.org/changeset/base/207141 Log: - Merge soft-updates journaling from projects/suj/head into head. This brings in support for an optional intent log which eliminates the need for background fsck on

svn commit: r207145 - head/sbin/tunefs

2010-04-24 Thread Jeff Roberson
Author: jeff Date: Sat Apr 24 07:59:45 2010 New Revision: 207145 URL: http://svn.freebsd.org/changeset/base/207145 Log: - Temporarily lower WARNS until I fix alignment warnings on sparc64. Reported by: Florian Smeets Modified: head/sbin/tunefs/Makefile Modified: head/sbin/tunefs/Makef

Re: svn commit: r207144 - head/sbin/fsck_ffs

2010-04-24 Thread Jeff Roberson
On Sat, 24 Apr 2010, Pawel Jakub Dawidek wrote: Author: pjd Date: Sat Apr 24 07:58:59 2010 New Revision: 207144 URL: http://svn.freebsd.org/changeset/base/207144 Log: suj.c seems to contain two versions of the code. Remove the one that doesn't compile. Thanks pjd. I must've patched twice a

svn commit: r207309 - head/sys/ufs/ffs

2010-04-28 Thread Jeff Roberson
Author: jeff Date: Wed Apr 28 07:26:41 2010 New Revision: 207309 URL: http://svn.freebsd.org/changeset/base/207309 Log: - Fix builds without SOFTUPDATES defined in the kernel config. Modified: head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/ufs/ffs/ffs_softdep.c ==

svn commit: r207310 - head/sys/ufs/ffs

2010-04-28 Thread Jeff Roberson
Author: jeff Date: Wed Apr 28 07:57:37 2010 New Revision: 207310 URL: http://svn.freebsd.org/changeset/base/207310 Log: - When canceling jaddrefs they may not yet be in the journal if this is via a revert call. In this case don't attempt to remove something that has not yet been adde

svn commit: r207421 - head/sbin/tunefs

2010-04-29 Thread Jeff Roberson
Author: jeff Date: Fri Apr 30 04:21:22 2010 New Revision: 207421 URL: http://svn.freebsd.org/changeset/base/207421 Log: - Use the path to the filesystem mountpoint to look up the statfs structure so that we correctly reload. Note that tunefs doesn't properly detect the need to reload

svn commit: r207741 - head/sys/ufs/ffs

2010-05-07 Thread Jeff Roberson
Author: jeff Date: Fri May 7 08:20:56 2010 New Revision: 207741 URL: http://svn.freebsd.org/changeset/base/207741 Log: - Use the correct flag mask when determining whether an inode has successfully made it to the free list yet or not. This fixes a deadlock that can occur with unlink

svn commit: r207742 - head/sys/ufs/ffs

2010-05-07 Thread Jeff Roberson
Author: jeff Date: Fri May 7 08:45:21 2010 New Revision: 207742 URL: http://svn.freebsd.org/changeset/base/207742 Log: - Call softdep_prealloc() before any of the balloc routines in the snapshot code. - Don't fsync() vnodes in prealloc if copy on write is in progress. It is not s

svn commit: r208241 - head/sbin/tunefs

2010-05-17 Thread Jeff Roberson
Author: jeff Date: Tue May 18 01:45:28 2010 New Revision: 208241 URL: http://svn.freebsd.org/changeset/base/208241 Log: - Round up the journal size to the block size so we don't confuse fsck. Reported by: Mikolaj Golub - Only require 256k of blocks per-cg when trying to allocate co

svn commit: r208287 - head/sys/ufs/ffs

2010-05-18 Thread Jeff Roberson
Author: jeff Date: Wed May 19 06:18:01 2010 New Revision: 208287 URL: http://svn.freebsd.org/changeset/base/208287 Log: - Don't immediately re-run softdepflush if we didn't make any progress on the last iteration. This can lead to a deadlock when we have worklist items that cannot be

svn commit: r209716 - head/sbin/fsck_ffs

2010-07-06 Thread Jeff Roberson
Author: jeff Date: Tue Jul 6 07:07:29 2010 New Revision: 209716 URL: http://svn.freebsd.org/changeset/base/209716 Log: - Permit zero length directories as a handled inconsistency. This allows directory truncation to proceed before the link has been cleared. This is accomplished by

svn commit: r209717 - in head/sys/ufs: ffs ufs

2010-07-06 Thread Jeff Roberson
Author: jeff Date: Tue Jul 6 07:11:04 2010 New Revision: 209717 URL: http://svn.freebsd.org/changeset/base/209717 Log: - Handle the truncation of an inode with an effective link count of 0 in the context of the process that reduced the effective count. Previously all truncation as a

svn commit: r222953 - head/sys/kern

2011-06-10 Thread Jeff Roberson
Author: jeff Date: Fri Jun 10 22:15:36 2011 New Revision: 222953 URL: http://svn.freebsd.org/changeset/base/222953 Log: - When printing bufs with show buf the lblkno is often more useful than the blkno. Print them both. Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio

svn commit: r222954 - head/sys/ufs/ufs

2011-06-10 Thread Jeff Roberson
Author: jeff Date: Fri Jun 10 22:18:25 2011 New Revision: 222954 URL: http://svn.freebsd.org/changeset/base/222954 Log: - If the fsync in ufs_direnter fails SUJ can later panic because we have partially added a name. Allow ufs_direnter() to continue in the hopes that it is a transien

svn commit: r222955 - head/sys/ufs/ufs

2011-06-10 Thread Jeff Roberson
Author: jeff Date: Fri Jun 10 22:19:44 2011 New Revision: 222955 URL: http://svn.freebsd.org/changeset/base/222955 Log: - Add support for referencing quota structures without needing the inode pointer for softupdates. Submitted by: mckusick Modified: head/sys/ufs/ufs/quota.h head

svn commit: r222956 - head/sys/conf

2011-06-10 Thread Jeff Roberson
Author: jeff Date: Fri Jun 10 22:38:31 2011 New Revision: 222956 URL: http://svn.freebsd.org/changeset/base/222956 Log: - Eliminate an incorrect include path from the mthca build. Modified: head/sys/conf/files Modified: head/sys/conf/files ===

svn commit: r222958 - in head: sbin/fsck_ffs sys/sys sys/ufs/ffs sys/ufs/ufs

2011-06-10 Thread Jeff Roberson
Author: jeff Date: Fri Jun 10 22:48:35 2011 New Revision: 222958 URL: http://svn.freebsd.org/changeset/base/222958 Log: Implement fully asynchronous partial truncation with softupdates journaling to resolve errors which can cause corruption on recovery with the old synchronous mechanism.

Re: svn commit: r222958 - in head: sbin/fsck_ffs sys/sys sys/ufs/ffs sys/ufs/ufs

2011-06-10 Thread Jeff Roberson
On Fri, 10 Jun 2011, Jeff Roberson wrote: Author: jeff Date: Fri Jun 10 22:48:35 2011 New Revision: 222958 URL: http://svn.freebsd.org/changeset/base/222958 Log: Implement fully asynchronous partial truncation with softupdates journaling to resolve errors which can cause corruption on

svn commit: r223325 - head/sys/ufs/ffs

2011-06-19 Thread Jeff Roberson
Author: jeff Date: Mon Jun 20 03:25:09 2011 New Revision: 223325 URL: http://svn.freebsd.org/changeset/base/223325 Log: - Fix directory count rollbacks by passing the mode to the journal dep earlier. - Add rollback/forward code for frag and cluster accounting. - Handle the FREEDEP ca

svn commit: r223689 - head/sbin/fsck_ffs

2011-06-29 Thread Jeff Roberson
Author: jeff Date: Thu Jun 30 05:28:10 2011 New Revision: 223689 URL: http://svn.freebsd.org/changeset/base/223689 Log: - Handle the JOP_SYNC case as appropriate. Reported by: pho Modified: head/sbin/fsck_ffs/suj.c Modified: head/sbin/fsck_ffs/suj.c ===

svn commit: r223769 - head/sys/ufs/ufs

2011-07-04 Thread Jeff Roberson
Author: jeff Date: Mon Jul 4 20:52:23 2011 New Revision: 223769 URL: http://svn.freebsd.org/changeset/base/223769 Log: - Fix an inode quota leak. We need to decrement the quota once and only once. Tested by:pho Reviewed by: mckusick Modified: head/sys/ufs/ufs/ufs_inode.c

svn commit: r223770 - head/sys/ufs/ffs

2011-07-04 Thread Jeff Roberson
Author: jeff Date: Mon Jul 4 20:53:55 2011 New Revision: 223770 URL: http://svn.freebsd.org/changeset/base/223770 Log: - It is impossible to run request_cleanup() while doing a copyonwrite. This will most likely cause new block allocations which can recurse into request cleanup. -

svn commit: r223771 - head/sys/ufs/ffs

2011-07-04 Thread Jeff Roberson
Author: jeff Date: Mon Jul 4 21:04:25 2011 New Revision: 223771 URL: http://svn.freebsd.org/changeset/base/223771 Log: - Handle D_JSEGDEP in the softdep_sync_buf() switch. These can now find themselves on snapshot vnodes. Reported by: pho Modified: head/sys/ufs/ffs/ffs_softdep.c

svn commit: r223772 - head/sys/ufs/ffs

2011-07-04 Thread Jeff Roberson
Author: jeff Date: Mon Jul 4 22:08:04 2011 New Revision: 223772 URL: http://svn.freebsd.org/changeset/base/223772 Log: - Speed up pendingblock processing again. Having too much delay between ffs_blkfree() and the pending adjustment causes all kinds of space related problems. Modifi

Re: svn commit: r336025 - in head/sys: amd64/include i386/include

2018-07-06 Thread Jeff Roberson
On Fri, 6 Jul 2018, Rodney W. Grimes wrote: On Friday, July 6, 2018, Rodney W. Grimes wrote: Author: hselasky Date: Fri Jul 6 10:13:42 2018 New Revision: 336025 URL: https://svnweb.freebsd.org/changeset/base/336025 Log: Make sure kernel modules built by default are portable between UP and

Re: svn commit: r336025 - in head/sys: amd64/include i386/include

2018-07-06 Thread Jeff Roberson
On Fri, 6 Jul 2018, Rodney W. Grimes wrote: On Fri, Jul 6, 2018, 12:27 PM Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: On Fri, Jul 6, 2018 at 9:52 AM, Rodney W. Grimes < free...@pdx.rh.cn85.dnsmgr.net> wrote: On Fri, Jul 6, 2018 at 9:32 AM, Rodney W. Grimes < free...@pdx.rh.cn85

svn commit: r336055 - head/sys/vm

2018-07-06 Thread Jeff Roberson
Author: jeff Date: Sat Jul 7 01:54:45 2018 New Revision: 336055 URL: https://svnweb.freebsd.org/changeset/base/336055 Log: Use the ticks since the last update to reduce hysteresis in the partpopq and contention on the vm_reserv_domain lock. This gives a roughly 8x speedup on will-it-scal

svn commit: r328954 - in head/sys: amd64/amd64 arm/arm cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs compat/linprocfs fs/tmpfs i386/i386 kern mips/mips powerpc/booke powerp...

2018-02-06 Thread Jeff Roberson
Author: jeff Date: Tue Feb 6 22:10:07 2018 New Revision: 328954 URL: https://svnweb.freebsd.org/changeset/base/328954 Log: Use per-domain locks for vm page queue free. Move paging control from global to per-domain state. Protect reservations with the free lock from the domain that they be

svn commit: r329187 - in head/sys: amd64/amd64 arm/arm arm64/arm64 compat/linprocfs compat/linux i386/i386 kern mips/mips powerpc/booke riscv/riscv sparc64/sparc64 sys vm

2018-02-12 Thread Jeff Roberson
Author: jeff Date: Mon Feb 12 22:53:00 2018 New Revision: 329187 URL: https://svnweb.freebsd.org/changeset/base/329187 Log: Make v_wire_count a per-cpu counter(9) counter. This eliminates a significant source of cache line contention from vm_page_alloc(). Use accessors and vm_page_unwire_n

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

2018-02-19 Thread Jeff Roberson
Author: jeff Date: Tue Feb 20 00:06:07 2018 New Revision: 329612 URL: https://svnweb.freebsd.org/changeset/base/329612 Log: Further parallelize the buffer cache. Provide multiple clean queues partitioned into 'domains'. Each domain manages its own bufspace and has its own bufspace daemon

svn commit: r329672 - head/sys/kern

2018-02-20 Thread Jeff Roberson
Author: jeff Date: Tue Feb 20 21:27:17 2018 New Revision: 329672 URL: https://svnweb.freebsd.org/changeset/base/329672 Log: Fix the broken subqueue assignment for the cleanq. Reported by: pho Tested by:pho Sponsored by: Netflix, Dell/EMC Isilon Modified: head/sys/kern/vfs_bio.c

svn commit: r329882 - in head/sys: conf kern sys vm

2018-02-23 Thread Jeff Roberson
Author: jeff Date: Fri Feb 23 22:51:51 2018 New Revision: 329882 URL: https://svnweb.freebsd.org/changeset/base/329882 Log: Add a generic Proportional Integral Derivative (PID) controller algorithm and use it to regulate page daemon output. This provides much smoother and more responsive

svn commit: r329943 - head/sys/kern

2018-02-24 Thread Jeff Roberson
Author: jeff Date: Sun Feb 25 00:35:21 2018 New Revision: 329943 URL: https://svnweb.freebsd.org/changeset/base/329943 Log: Fix issues with sparse cpu allocation. Consistently use mp_maxid + 1. Reported by: pho Reviewed by: markj Sponsored by: Netflix, Dell/EMC Isilon Modified: he

svn commit: r330624 - head/sys/vm

2018-03-07 Thread Jeff Roberson
Author: jeff Date: Wed Mar 7 22:04:27 2018 New Revision: 330624 URL: https://svnweb.freebsd.org/changeset/base/330624 Log: Don't assert that the domain free lock is held until we're certain that there is a valid reservation. This can trip erroneously when memory falls within a domain but d

svn commit: r331018 - head/sys/vm

2018-03-15 Thread Jeff Roberson
Author: jeff Date: Thu Mar 15 19:23:07 2018 New Revision: 331018 URL: https://svnweb.freebsd.org/changeset/base/331018 Log: Eliminate pageout wakeup races. Take another step towards lockless vmd_free_count manipulation. Reduce the scope of the free lock by using a pageout lock to synchroni

svn commit: r331106 - head/sys/kern

2018-03-17 Thread Jeff Roberson
Author: jeff Date: Sat Mar 17 18:14:49 2018 New Revision: 331106 URL: https://svnweb.freebsd.org/changeset/base/331106 Log: Move the dirty queues inside the per-domain structure. This resolves a bug where we had not hit global dirty limits but a single queue was starved for space by dirty b

Re: svn commit: r331233 - head/sys/kern

2018-03-19 Thread Jeff Roberson
Thanks for fixing my bug. Sorry I didn't build universe for this one. Thanks, Jeff On Tue, 20 Mar 2018, Justin Hibbits wrote: Author: jhibbits Date: Tue Mar 20 02:01:30 2018 New Revision: 331233 URL: https://svnweb.freebsd.org/changeset/base/331233 Log: Cast through uintptr_t to narrow the

Re: svn commit: r250411 - in head/sys: conf kern sys

2013-05-11 Thread Jeff Roberson
On Thu, 9 May 2013, Marcel Moolenaar wrote: Author: marcel Date: Thu May 9 16:28:18 2013 New Revision: 250411 URL: http://svnweb.freebsd.org/changeset/base/250411 Log: Add option WITNESS_NO_VNODE to suppress printing LORs between VNODE locks. To support this, VNODE locks are created with the

svn commit: r250551 - in head/sys: conf kern sys

2013-05-11 Thread Jeff Roberson
Author: jeff Date: Sun May 12 04:05:01 2013 New Revision: 250551 URL: http://svnweb.freebsd.org/changeset/base/250551 Log: - Add a new general purpose path-compressed radix trie which can be used with any structure containing a uint64_t index. The tree code auto-generates type safe w

svn commit: r250578 - head/sys/sys

2013-05-12 Thread Jeff Roberson
Author: jeff Date: Sun May 12 20:44:28 2013 New Revision: 250578 URL: http://svnweb.freebsd.org/changeset/base/250578 Log: - pctrie really only requires two byte alignment so that there is a single bit available for a flag in the pointer. However, it felt more correct to enforce natu

svn commit: r251171 - in head/sys: fs/ext2fs fs/nandfs fs/nfsclient fs/nfsserver kern nfsclient nfsserver sys ufs/ffs

2013-05-30 Thread Jeff Roberson
Author: jeff Date: Fri May 31 00:43:41 2013 New Revision: 251171 URL: http://svnweb.freebsd.org/changeset/base/251171 Log: - Convert the bufobj lock to rwlock. - Use a shared bufobj lock in getblk() and inmem(). - Convert softdep's lk to rwlock to match the bufobj lock. - Move INFREECN

svn commit: r251446 - head/sys/kern

2013-06-05 Thread Jeff Roberson
Author: jeff Date: Wed Jun 5 23:53:00 2013 New Revision: 251446 URL: http://svnweb.freebsd.org/changeset/base/251446 Log: - Consolidate duplicate code into support functions. - Split the bqlock into bqclean and bqdirty locks. - Only acquire the wakeup synchronization locks when we cross

svn commit: r251703 - in head/sys: amd64/amd64 i386/i386 i386/xen kern mips/mips sparc64/sparc64 sys

2013-06-13 Thread Jeff Roberson
Author: jeff Date: Thu Jun 13 20:46:03 2013 New Revision: 251703 URL: http://svnweb.freebsd.org/changeset/base/251703 Log: - Add a BIT_FFS() macro and use it to replace cpusetffs_obj() Discussed with: attilio Sponsored by: EMC / Isilon Storage Division Modified: head/sys/amd64/a

svn commit: r251709 - head/sys/vm

2013-06-13 Thread Jeff Roberson
Author: jeff Date: Thu Jun 13 21:05:38 2013 New Revision: 251709 URL: http://svnweb.freebsd.org/changeset/base/251709 Log: - Convert the slab free item list from a linked array of indices to a bitmap using sys/bitset. This is much simpler, has lower space overhead and is cheaper in m

svn commit: r251826 - head/sys/vm

2013-06-16 Thread Jeff Roberson
Author: jeff Date: Mon Jun 17 03:43:47 2013 New Revision: 251826 URL: http://svnweb.freebsd.org/changeset/base/251826 Log: - Add a new UMA API: uma_zcache_create(). This makes a zone without any backing memory that is only a container for per-cpu caches of arbitrary pointer items. T

svn commit: r251894 - in head: lib/libmemstat sys/vm

2013-06-17 Thread Jeff Roberson
Author: jeff Date: Tue Jun 18 04:50:20 2013 New Revision: 251894 URL: http://svnweb.freebsd.org/changeset/base/251894 Log: Refine UMA bucket allocation to reduce space consumption and improve performance. - Always free to the alloc bucket if there is space. This gives LIFO allocati

Re: svn commit: r251894 - in head: lib/libmemstat sys/vm

2013-06-18 Thread Jeff Roberson
On Tue, 18 Jun 2013, Alfred Perlstein wrote: On 6/18/13 4:37 AM, Gleb Smirnoff wrote: On Tue, Jun 18, 2013 at 10:25:08AM +0200, Andre Oppermann wrote: A> There used to be a problem with per CPU caches accumulating large amounts A> of items without freeing back to the global (or socket) pool.

svn commit: r251983 - head/sys/vm

2013-06-18 Thread Jeff Roberson
Author: jeff Date: Wed Jun 19 02:30:32 2013 New Revision: 251983 URL: http://svnweb.freebsd.org/changeset/base/251983 Log: - Persist the caller's flags in the bucket allocation flags so we don't lose a M_NOVM when we recurse into a bucket allocation. Sponsored by: EMC / Isilon Storage

svn commit: r252040 - head/sys/vm

2013-06-20 Thread Jeff Roberson
Author: jeff Date: Thu Jun 20 19:08:12 2013 New Revision: 252040 URL: http://svnweb.freebsd.org/changeset/base/252040 Log: - Add a per-zone lock for zones without kegs. - Be more explicit about zone vs keg locking. This functionally changes almost nothing. - Add a size parameter to

svn commit: r252226 - head/sys/vm

2013-06-25 Thread Jeff Roberson
Author: jeff Date: Wed Jun 26 00:57:38 2013 New Revision: 252226 URL: http://svnweb.freebsd.org/changeset/base/252226 Log: - Resolve bucket recursion issues by passing a cookie with zone flags through bucket_alloc() to uma_zalloc_arg() and uma_zfree_arg(). - Make some smaller buckets fo

svn commit: r252330 - in head/sys: conf geom kern sys vm

2013-06-27 Thread Jeff Roberson
Author: jeff Date: Fri Jun 28 03:51:20 2013 New Revision: 252330 URL: http://svnweb.freebsd.org/changeset/base/252330 Log: - Add a general purpose resource allocator, vmem, from NetBSD. It was originally inspired by the Solaris vmem detailed in the proceedings of usenix 2001. The Ne

Re: svn commit: r252330 - in head/sys: conf geom kern sys vm

2013-06-28 Thread Jeff Roberson
feature that works with UMA to provide per-cpu caches of arbitrary number ranges. So it is more scalable as well as providing for less fragmentation. Thanks, Jeff Adrian On 27 June 2013 20:51, Jeff Roberson wrote: Author: jeff Date: Fri Jun 28 03:51:20 2013 New Revision: 252330 URL: http

svn commit: r262812 - head/sys/ufs/ufs

2014-03-05 Thread Jeff Roberson
Author: jeff Date: Thu Mar 6 00:10:07 2014 New Revision: 262812 URL: http://svnweb.freebsd.org/changeset/base/262812 Log: - Gracefully handle truncation failures when trying to shrink directories. This could cause dirhash panics since the dirhash state would be successfully truncated

svn commit: r262814 - head/sys/ufs/ffs

2014-03-05 Thread Jeff Roberson
Author: jeff Date: Thu Mar 6 00:13:21 2014 New Revision: 262814 URL: http://svnweb.freebsd.org/changeset/base/262814 Log: - If we fail to do a non-blocking acquire of a buf lock while doing a waiting sync pass we need to do a blocking acquire and restart. Another thread, typically th

svn commit: r262917 - head/sys/kern

2014-03-07 Thread Jeff Roberson
Author: jeff Date: Sat Mar 8 00:35:06 2014 New Revision: 262917 URL: http://svnweb.freebsd.org/changeset/base/262917 Log: - Make runq_steal_from more aggressive. Previously it would examine only a single priority queue. If that queue had a thread or threads which could not be migra

svn commit: r281184 - head/sys/vm

2015-04-06 Thread Jeff Roberson
Author: jeff Date: Tue Apr 7 02:18:52 2015 New Revision: 281184 URL: https://svnweb.freebsd.org/changeset/base/281184 Log: - Simplify vm_pageout_scan() by introducing a new vm_pageout_clean() function that does the locking and validation associated with cleaning a page. This moves 1

svn commit: r280774 - head/sys/vm

2015-03-27 Thread Jeff Roberson
Author: jeff Date: Sat Mar 28 02:36:49 2015 New Revision: 280774 URL: https://svnweb.freebsd.org/changeset/base/280774 Log: - Eliminate pagequeue locking in the dirty code in vm_pageout_scan(). - Use a more precise series of tests to see if the page changed while we were locking the vno

Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random s

2015-07-22 Thread Jeff Roberson
On Tue, 30 Jun 2015, Mark Murray wrote: Author: markm Date: Tue Jun 30 17:00:45 2015 New Revision: 284959 URL: https://svnweb.freebsd.org/changeset/base/284959 Log: Huge cleanup of random(4) code. * GENERAL - Update copyright. - Make kernel options for RANDOM_YARROW and RANDOM_DUMMY. Set

Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random s

2015-07-22 Thread Jeff Roberson
On Wed, 22 Jul 2015, Mark R V Murray wrote: On 22 Jul 2015, at 22:42, Jeff Roberson wrote: On Tue, 30 Jun 2015, Mark Murray wrote: - Add harvesting of slab allocator events. This needs to be checked for weighing down the allocator code. Neither filesystem operations nor allocations

svn commit: r285808 - head/sys/kern

2015-07-22 Thread Jeff Roberson
Author: jeff Date: Thu Jul 23 02:20:41 2015 New Revision: 285808 URL: https://svnweb.freebsd.org/changeset/base/285808 Log: - Don't defeat the FIFO nature of the buffer cache by eliminating the most recently used buffer when we are under paging pressure. This is a perversion of the b

Re: svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random s

2015-07-23 Thread Jeff Roberson
On Thu, 23 Jul 2015, Mark R V Murray wrote: On 23 Jul 2015, at 00:53, Warner Losh wrote: Neither filesystem operations nor allocations are random events. They are trivially influenced by user code. A malicious attacker could create repeated patterns of allocations or filesystem activity

svn commit: r285819 - in head/sys: cam dev/nvme kern sys ufs/ffs vm

2015-07-23 Thread Jeff Roberson
Author: jeff Date: Thu Jul 23 19:13:41 2015 New Revision: 285819 URL: https://svnweb.freebsd.org/changeset/base/285819 Log: Refactor unmapped buffer address handling. - Use pointer assignment rather than a combination of pointers and flags to switch buffers between unmapped and mapped.

svn commit: r285981 - head/sys/kern

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Tue Jul 28 20:24:09 2015 New Revision: 285981 URL: https://svnweb.freebsd.org/changeset/base/285981 Log: - Eliminate the EMPTYKVA queue. It served as a cache of KVA allocations attached to bufs to avoid the overhead of the vm. This purposes is now better served by

svn commit: r285993 - in head/sys: kern sys ufs/ffs vm

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Wed Jul 29 02:26:57 2015 New Revision: 285993 URL: https://svnweb.freebsd.org/changeset/base/285993 Log: - Make 'struct buf *buf' private to vfs_bio.c. Having a global variable 'buf' is inconvenient and has lead me to some irritating to discover bugs over the years

svn commit: r285995 - head/sys/fs/ext2fs

2015-07-28 Thread Jeff Roberson
Author: jeff Date: Wed Jul 29 03:06:08 2015 New Revision: 285995 URL: https://svnweb.freebsd.org/changeset/base/285995 Log: - Remove some dead code copied from ffs. Modified: head/sys/fs/ext2fs/ext2_subr.c Modified: head/sys/fs/ext2fs/ext2_subr.c

svn commit: r288137 - head/sys/kern

2015-09-22 Thread Jeff Roberson
Author: jeff Date: Tue Sep 22 23:57:52 2015 New Revision: 288137 URL: https://svnweb.freebsd.org/changeset/base/288137 Log: Some refactoring of the buf/vm interface. - Eliminate bogus page replacement that is inconsistently applied in the invalidation loop in brelse. This has been a no-

svn commit: r288144 - head/sys/kern

2015-09-23 Thread Jeff Roberson
Author: jeff Date: Wed Sep 23 07:44:07 2015 New Revision: 288144 URL: https://svnweb.freebsd.org/changeset/base/288144 Log: - Fix a nonsense reordering that somehow slipped into my last diff. Reported by: pho Modified: head/sys/kern/vfs_bio.c Modified: head/sys/kern/vfs_bio.c

svn commit: r288299 - head/sys/kern

2015-09-26 Thread Jeff Roberson
Author: jeff Date: Sun Sep 27 05:16:06 2015 New Revision: 288299 URL: https://svnweb.freebsd.org/changeset/base/288299 Log: - Collapse vfs_vmio_truncate & vfs_vmio_release into a single function. - Allow vfs_vmio_invalidate() to free the pages, leaving us with a single loop and bufobj l

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

2015-10-13 Thread Jeff Roberson
Author: jeff Date: Wed Oct 14 02:10:07 2015 New Revision: 289279 URL: https://svnweb.freebsd.org/changeset/base/289279 Log: Parallelize the buffer cache and rewrite getnewbuf(). This results in a 8x performance improvement in a micro benchmark on a 4 socket machine. - Get buffer headers

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

2015-11-01 Thread Jeff Roberson
On Sun, 1 Nov 2015, NGie Cooper wrote: On Nov 1, 2015, at 19:20, Adrian Chadd wrote: hiya jeff, this broke low-memory, no-swap boards (eg MIPS.) On a MIPS board (carambola2) with 32MB of RAM, just scp'ing a kernel into the rootfs on USB hangs the system. After doing some digging, I found t

Re: svn commit: r242014 - head/sys/kern

2012-10-24 Thread Jeff Roberson
On Wed, 24 Oct 2012, Attilio Rao wrote: On Wed, Oct 24, 2012 at 8:16 PM, Andre Oppermann wrote: On 24.10.2012 20:56, Jim Harris wrote: On Wed, Oct 24, 2012 at 11:41 AM, Adrian Chadd wrote: On 24 October 2012 11:36, Jim Harris wrote: Pad tdq_lock to avoid false sharing with tdq_load

svn commit: r242492 - head/sys/ufs/ffs

2012-11-02 Thread Jeff Roberson
Author: jeff Date: Fri Nov 2 21:04:06 2012 New Revision: 242492 URL: http://svn.freebsd.org/changeset/base/242492 Log: - In cancel_mkdir_dotdot don't panic if the inodedep is not available. If the previous diradd had already finished it could have been reclaimed already. This would

svn commit: r242734 - head/sys/ufs/ffs

2012-11-07 Thread Jeff Roberson
Author: jeff Date: Thu Nov 8 01:41:04 2012 New Revision: 242734 URL: http://svnweb.freebsd.org/changeset/base/242734 Log: - Implement BIO_FLUSH support around journal entries. This will not 100% solve power loss problems with dishonest write caches. However, it should improve the s

svn commit: r242736 - head/sys/kern

2012-11-07 Thread Jeff Roberson
Author: jeff Date: Thu Nov 8 01:46:47 2012 New Revision: 242736 URL: http://svnweb.freebsd.org/changeset/base/242736 Log: - Change ULE to use dynamic slice sizes for the timeshare queue in order to further reduce latency for threads in this queue. This should help as threads transit

svn commit: r242815 - head/sys/ufs/ffs

2012-11-08 Thread Jeff Roberson
Author: jeff Date: Fri Nov 9 04:04:25 2012 New Revision: 242815 URL: http://svnweb.freebsd.org/changeset/base/242815 Log: - Correct rev 242734, segments can sometimes get stuck. Be a bit more defensive with segment state. Reported by: b. f. Modified: head/sys/ufs/ffs/ffs_softd

svn commit: r242924 - head/sys/ufs/ffs

2012-11-12 Thread Jeff Roberson
Author: jeff Date: Mon Nov 12 19:53:55 2012 New Revision: 242924 URL: http://svnweb.freebsd.org/changeset/base/242924 Log: - Fix a bug that has existed since the original softdep implementation. When a background copy of a cg is written we complete any work associated with that bmsafe

svn commit: r243017 - head/sbin/fsck_ffs

2012-11-13 Thread Jeff Roberson
Author: jeff Date: Wed Nov 14 06:31:47 2012 New Revision: 243017 URL: http://svnweb.freebsd.org/changeset/base/243017 Log: - blk_equals() is too strict. If the journal entry defines more frags than we're claiming it should still be considered an exact match. This would previously le

svn commit: r243018 - head/sys/ufs/ffs

2012-11-13 Thread Jeff Roberson
Author: jeff Date: Wed Nov 14 06:37:43 2012 New Revision: 243018 URL: http://svnweb.freebsd.org/changeset/base/243018 Log: - Fix a truncation bug with softdep journaling that could leak blocks on crash. When truncating a file that never made it to disk we use the canceled allocation

svn commit: r243046 - in head: sys/kern sys/sparc64/include sys/sys usr.bin/ktrdump

2012-11-14 Thread Jeff Roberson
Author: jeff Date: Thu Nov 15 00:51:57 2012 New Revision: 243046 URL: http://svnweb.freebsd.org/changeset/base/243046 Log: - Implement run-time expansion of the KTR buffer via sysctl. - Implement a function to ensure that all preempted threads have switched back out at least once. Use

svn commit: r244444 - head/sys/kern

2012-12-19 Thread Jeff Roberson
Author: jeff Date: Wed Dec 19 20:08:06 2012 New Revision: 24 URL: http://svnweb.freebsd.org/changeset/base/24 Log: - Correctly handle EWOULDBLOCK in quiesce_cpus Discussed with: mav Modified: head/sys/kern/subr_smp.c Modified: head/sys/kern/subr_smp.c

svn commit: r244445 - in head/sys: kern sys tools

2012-12-19 Thread Jeff Roberson
Author: jeff Date: Wed Dec 19 20:10:00 2012 New Revision: 25 URL: http://svnweb.freebsd.org/changeset/base/25 Log: - Add new machine parsable KTR macros for timing events. - Use this new format to automatically handle syscalls and VOPs. This changes the earlier format but is st

svn commit: r253583 - head/sys/vm

2013-07-23 Thread Jeff Roberson
Author: jeff Date: Tue Jul 23 22:52:38 2013 New Revision: 253583 URL: http://svnweb.freebsd.org/changeset/base/253583 Log: - Correct a stale comment. We don't have vclean() anymore. The work is done by vgonel() and destroy_vobject() should only be called once from VOP_INACTIVE().

svn commit: r253587 - head/sys/vm

2013-07-23 Thread Jeff Roberson
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. Discussed with: alc Sponsored by: EMC / Isilon Storage Division Modified: head/sys/vm/vm_pageo

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

2013-07-26 Thread Jeff Roberson
Author: jeff Date: Fri Jul 26 19:06:14 2013 New Revision: 253685 URL: http://svnweb.freebsd.org/changeset/base/253685 Log: - Use kmem_malloc rather than kmem_alloc() for GDT/LDT/tss allocations etc. This eliminates some unusual uses of that API in favor of more typical uses of kmem_ma

svn commit: r253697 - head/sys/vm

2013-07-26 Thread Jeff Roberson
Author: jeff Date: Fri Jul 26 23:22:05 2013 New Revision: 253697 URL: http://svnweb.freebsd.org/changeset/base/253697 Log: Improve page LRU quality and simplify the logic. - Don't short-circuit aging tests for unmapped objects. This biases against unmapped file pages and transient ma

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

2013-08-04 Thread Jeff Roberson
Author: jeff Date: Mon Aug 5 00:28:03 2013 New Revision: 253949 URL: http://svnweb.freebsd.org/changeset/base/253949 Log: - Introduce a specific function, pmap_remove_kernel_pde, for removing huge pages in the kernel's address space. This works around several asserts from pmap_demot

<    1   2   3   4   >