From owner-freebsd-current Tue Jul 9 15: 0:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CECA237B400; Tue, 9 Jul 2002 15:00:24 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDCA643E52; Tue, 9 Jul 2002 15:00:23 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020709220022.SWZG29588.sccrmhc01.attbi.com@InterJet.elischer.org>; Tue, 9 Jul 2002 22:00:22 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA36839; Tue, 9 Jul 2002 14:59:35 -0700 (PDT) Date: Tue, 9 Jul 2002 14:59:34 -0700 (PDT) From: Julian Elischer To: Bruce Evans Cc: John Baldwin , FreeBSD current users , FreeBSD current users Subject: RE: userret() , ast() and the end of syscalls In-Reply-To: <20020710071340.R8522-100000@gamplex.bde.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 10 Jul 2002, Bruce Evans wrote: > Hopefully there won't be any unconditional code. Unconditional code > in userret() pessimizes all syscalls. Unconditional code added by KSEIII > pessimized basic syscall overhead by 10% according to lmbench2. Mostly it's conditional.. if (p->p_flag & P_KSES) in syscall() and if (p->p_flag & P_KSES) { in userret() it's probably PROC_LOCK(p); thread_suspend_check(0); /* Can suspend or kill */ PROC_UNLOCK(p); try replace it with: if (P_SHOULDSTOP(p) { PROC_LOCK(p); thread_suspend_check(0); /* Can suspend or kill */ PROC_UNLOCK(p); } > > Bruce > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message