From owner-freebsd-current@FreeBSD.ORG Wed Oct 3 01:14:54 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 2416416A421 for ; Wed, 3 Oct 2007 01:14:54 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id AFAC513C457 for ; Wed, 3 Oct 2007 01:14:53 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so3069920nfb for ; Tue, 02 Oct 2007 18:14:52 -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=KVB3RAOmXsghf5HBkhWkfXUJt9KqQ6lgi1+i/bMqB2o=; b=KOSnUgXZ5Vr/92AUvRO4zuW4HrhiHZchpYEJN1yQIt6jVMQcQ8nZp3MJaOQ74G2PbzT6y69X3vSRwS3UCP7tD/vq7hXYi9it91/NhDWVTa/w7IDcFK3GP6AePwz9fQ78tkG67ZTjsqNDQhbOH3rVcrD8Vt6lKRBc+Wti6Wqqk40= 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=kg83kHadUbwVjL9CfYJVHiF2xDnjOkUr7Ljz85iUUjA3HoJ0gvB4EViIu1lzPBQtCIOdR57hzfQRK6SzAnsPKRCX8NrPAgWJs71f5iqgrif8IeBAGGJsB1lUfiI85B2dco9YEjZ1C/BXv0pidIt0Aekxd9au1c0ohdx814umzog= Received: by 10.78.205.7 with SMTP id c7mr5381951hug.1191372640411; Tue, 02 Oct 2007 17:50:40 -0700 (PDT) Received: from darklight.abyss ( [83.239.5.254]) by mx.google.com with ESMTPS id o37sm3019162hub.2007.10.02.17.50.36 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 02 Oct 2007 17:50:38 -0700 (PDT) Received: from darklight.abyss (localhost [127.0.0.1]) by darklight.abyss (8.14.1/8.14.1) with ESMTP id l930oI52001147; Wed, 3 Oct 2007 04:50:18 +0400 (MSD) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.abyss (8.14.1/8.14.1/Submit) id l930oAQq001146; Wed, 3 Oct 2007 04:50:10 +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 04:50:09 +0400 From: Yuri Pankov To: Jeff Roberson Message-ID: <20071003005009.GA1103@darklight.abyss> References: <20071002165007.D587@10.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071002165007.D587@10.0.0.1> 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:14:54 -0000 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