From owner-freebsd-current@FreeBSD.ORG Wed Oct 3 02:52:19 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 25DC416A419 for ; Wed, 3 Oct 2007 02:52:19 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id EA6BE13C468 for ; Wed, 3 Oct 2007 02:52:18 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.103] (c-67-160-44-208.hsd1.wa.comcast.net [67.160.44.208]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id l932qDUx062627 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 2 Oct 2007 22:52:17 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Tue, 2 Oct 2007 19:55:02 -0700 (PDT) From: Jeff Roberson X-X-Sender: jroberson@10.0.0.1 To: Yuri Pankov In-Reply-To: <20071003012155.GA1327@darklight.abyss> Message-ID: <20071002195415.I615@10.0.0.1> References: <20071002165007.D587@10.0.0.1> <20071003005009.GA1103@darklight.abyss> <20071003012155.GA1327@darklight.abyss> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 02:52:19 -0000 On Wed, 3 Oct 2007, Yuri Pankov wrote: > 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... Did you 'make depend' as well? If you patch -R < yield.diff does this kernel work? I'm not sure how my changes could cause this type of bug. Thanks, Jeff > > It's UP amd64 with SCHED_ULE > > kernel config: > > include GENERIC > ident DARKLIGHT > > nooptions SCHED_4BSD > options SCHED_ULE > > -- > Yuri Pankov >