From owner-cvs-src-old@FreeBSD.ORG Fri May 29 01:57:36 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BD52106566B for ; Fri, 29 May 2009 01:57:36 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 066CE8FC35 for ; Fri, 29 May 2009 01:57:36 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n4T1vZge045504 for ; Fri, 29 May 2009 01:57:35 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n4T1vZ9g045503 for cvs-src-old@freebsd.org; Fri, 29 May 2009 01:57:35 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200905290157.n4T1vZ9g045503@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Fri, 29 May 2009 01:49:27 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src UPDATING src/share/man/man9 sx.9 src/sys/cddl/compat/opensolaris/sys mutex.h rwlock.h src/sys/conf NOTES options src/sys/kern kern_sx.c src/sys/sys param.h sx.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2009 01:57:36 -0000 attilio 2009-05-29 01:49:27 UTC FreeBSD src repository Modified files: . UPDATING share/man/man9 sx.9 sys/cddl/compat/opensolaris/sys mutex.h rwlock.h sys/conf NOTES options sys/kern kern_sx.c sys/sys param.h sx.h Log: SVN rev 193011 on 2009-05-29 01:49:27Z by attilio Reverse the logic for ADAPTIVE_SX option and enable it by default. Introduce for this operation the reverse NO_ADAPTIVE_SX option. The flag SX_ADAPTIVESPIN to be passed to sx_init_flags(9) gets suppressed and the new flag, offering the reversed logic, SX_NOADAPTIVE is added. Additively implements adaptive spininning for sx held in shared mode. The spinning limit can be handled through sysctls in order to be tuned while the code doesn't reach the release, after which time they should be dropped probabilly. This change has made been necessary by recent benchmarks where it does improve concurrency of workloads in presence of high contention (ie. ZFS). KPI breakage is documented by __FreeBSD_version bumping, manpage and UPDATING updates. Requested by: jeff, kmacy Reviewed by: jeff Tested by: pho Revision Changes Path 1.606 +8 -0 src/UPDATING 1.44 +5 -5 src/share/man/man9/sx.9 1.7 +2 -2 src/sys/cddl/compat/opensolaris/sys/mutex.h 1.7 +2 -2 src/sys/cddl/compat/opensolaris/sys/rwlock.h 1.1542 +5 -5 src/sys/conf/NOTES 1.671 +1 -1 src/sys/conf/options 1.65 +50 -21 src/sys/kern/kern_sx.c 1.412 +1 -1 src/sys/sys/param.h 1.41 +1 -1 src/sys/sys/sx.h