From owner-cvs-src@FreeBSD.ORG Sun Jan 30 13:37:25 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD6416A4CE; Sun, 30 Jan 2005 13:37:25 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A66AF43D53; Sun, 30 Jan 2005 13:37:25 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0UDbPeG024787; Sun, 30 Jan 2005 13:37:25 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0UDbPi0024786; Sun, 30 Jan 2005 13:37:25 GMT (envelope-from delphij) Message-Id: <200501301337.j0UDbPi0024786@repoman.freebsd.org> From: Xin LI Date: Sun, 30 Jan 2005 13:37:25 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/kern subr_trap.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2005 13:37:25 -0000 delphij 2005-01-30 13:37:25 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/kern subr_trap.c Log: MFC revision 1.277 date: 2004/12/26 07:30:35; author: jeff; state: Exp; lines: +4 -5 - Run sched_userret() after thread_userret(). Before, sched_userret() would lower the priority of the returning thread to a user priority before calling into thread_userret() which would call wakeup() which in turn would cause the returning thread to eventually context switch rather than completing its slice. Allowing this thread to complete its slice first yields a 15% performance improvement in super-smack on my dual opteron with 4BSD. This commit also containes rev. 1.278's style change. I've been running RELENG_5 with this change for two weeks. Revision Changes Path 1.270.2.3 +5 -5 src/sys/kern/subr_trap.c