From owner-freebsd-current@FreeBSD.ORG Wed Oct 3 01:22:22 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8D9316A418 for ; Wed, 3 Oct 2007 01:22:22 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 7E93013C447 for ; Wed, 3 Oct 2007 01:22:22 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so41501ugf for ; Tue, 02 Oct 2007 18:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:x-authentication-warning:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=r5pGii4yhU9KjJvNIAfrp7A8K9SOwU3sB8ha/scPoxQ=; b=uH5AolArMSN2GM1jXd2kq23HegmW1ZYbU56V/1cirVm12FfhyvbqtOwaYuqn4FdWz6lCTvc3Np/MbGoRUIE7T27zgGfJ6vctfenNz4TL+e35pHPxW088l7+aHId4D1mnWZgmL6RWf1ttQGaT9oO8lCPWwhcCWAO57r/zWBIcOEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:x-authentication-warning:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=EQVfRQsQVL9eOyHwuVC3hgt+4jAvwbtJaWf2ttzBeYvtwyNDuw9tzgJjTwluWwzlt70LVsd9M+n8vqpbcNjocVn6n+J98FUojp8Oi7YtNgtziHc+GLUthPZdHuyOfHDKmNN8D32wjjlsdj35M95R4SRN8rSKGG9SU4UUTbNhNbs= Received: by 10.67.19.9 with SMTP id w9mr1796578ugi.1191374541032; Tue, 02 Oct 2007 18:22:21 -0700 (PDT) Received: from darklight.abyss ( [83.239.5.254]) by mx.google.com with ESMTPS id x33sm1109524ugc.2007.10.02.18.22.16 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2007 18:22:19 -0700 (PDT) Received: from darklight.abyss (localhost [127.0.0.1]) by darklight.abyss (8.14.1/8.14.1) with ESMTP id l931LwgD001411; Wed, 3 Oct 2007 05:21:58 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.abyss (8.14.1/8.14.1/Submit) id l931LtF7001410; Wed, 3 Oct 2007 05:21:55 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.abyss: yuri set sender to yuri.pankov@gmail.com using -f Date: Wed, 3 Oct 2007 05:21:55 +0400 From: Yuri Pankov To: Jeff Roberson Message-ID: <20071003012155.GA1327@darklight.abyss> References: <20071002165007.D587@10.0.0.1> <20071003005009.GA1103@darklight.abyss> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071003005009.GA1103@darklight.abyss> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: current@freebsd.org Subject: Re: ULE/yielding patch for testing. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 01:22:23 -0000 On Wed, Oct 03, 2007 at 04:50:09AM +0400, Yuri Pankov wrote: > On Tue, Oct 02, 2007 at 04:53:33PM -0700, Jeff Roberson wrote: > > Enclosed is a patch that does two things: > > > > 1) Reduces UP context switch time by over 10% making it faster than 4BSD > > on UP. On SMP it's hard to compare since ULE can do as many as 30x as many > > switches per second on my 8way system. > > > > 2) Restores old sched_yield() behavior from 6.x. This was changed in > > -current unintentionally I think. > > > > I'd appreciate any extra testing. The ULE context switch time improvements > > required some changes to the frequency that we recalculate priorities. I'm > > mostly interested in hearing whether this causes any regression in normal > > workloads. > > > > Those of you still using 4BSD can also verify that the yield changes don't > > cause any problems there. > > > > Thanks, > > Jeff > > Jeff, > > Patch applied cleanly, though with new kernel I got a panic just after > boot - on xdm startup, I guess (crashdump wasn't saved), a lot of the same messages > (copied by hand): > > cpuid = 0 > panic: _mtx_lock_sleep: recursed on non-recursive mutex > audit_mtx@/usr/src/sys/security/audit_worker.c:518 > > and after few seconds system just hangs. > > Any hints? > > -- > Yuri Pankov Sorry for being so verbose... It's UP amd64 with SCHED_ULE kernel config: include GENERIC ident DARKLIGHT nooptions SCHED_4BSD options SCHED_ULE -- Yuri Pankov