From owner-cvs-all@FreeBSD.ORG Tue Jul 22 19:11:08 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B877937B401; Tue, 22 Jul 2003 19:11:08 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E4C243F3F; Tue, 22 Jul 2003 19:11:08 -0700 (PDT) (envelope-from deischen@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h6N2B80U041919; Tue, 22 Jul 2003 19:11:08 -0700 (PDT) (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h6N2B8K9041918; Tue, 22 Jul 2003 19:11:08 -0700 (PDT) Message-Id: <200307230211.h6N2B8K9041918@repoman.freebsd.org> From: Daniel Eischen Date: Tue, 22 Jul 2003 19:11:07 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread/thread thr_cancel.c thr_cond.c thr_detach.c thr_kern.c thr_mutex.c thr_private.h thr_resume_np.c thr_sig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 02:11:09 -0000 deischen 2003/07/22 19:11:07 PDT FreeBSD src repository Modified files: lib/libpthread/thread thr_cancel.c thr_cond.c thr_detach.c thr_kern.c thr_mutex.c thr_private.h thr_resume_np.c thr_sig.c Log: Move idle kse wakeup to outside of regions where locks are held. This eliminates ping-ponging of locks, where the idle KSE wakes up only to find the lock it needs is being held. This gives little or no gain to M:N mode but greatly speeds up 1:1 mode. Reviewed & Tested by: davidxu Revision Changes Path 1.26 +6 -3 src/lib/libpthread/thread/thr_cancel.c 1.48 +8 -2 src/lib/libpthread/thread/thr_cond.c 1.23 +5 -3 src/lib/libpthread/thread/thr_detach.c 1.80 +57 -35 src/lib/libpthread/thread/thr_kern.c 1.39 +12 -6 src/lib/libpthread/thread/thr_mutex.c 1.94 +2 -2 src/lib/libpthread/thread/thr_private.h 1.18 +13 -5 src/lib/libpthread/thread/thr_resume_np.c 1.63 +27 -17 src/lib/libpthread/thread/thr_sig.c