From owner-freebsd-performance@FreeBSD.ORG Wed Oct 24 13:39:39 2007 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98DC716A417 for ; Wed, 24 Oct 2007 13:39:39 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3A113C4A8 for ; Wed, 24 Oct 2007 13:39:39 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so104214pyb for ; Wed, 24 Oct 2007 06:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=il8B0Ek4FeBJsoAUhQkgM594iMT3Ubs8aDa/E0tv2+o=; b=mSyLt665xk1lefYe0/FzWobfofH4iPYTxFBpViYoiN+bFXA2E0FjNd37efyZY0yOPR9FzC9y4EcMNMJmO08U97NwVoNFyIGiOpdcA1uTSr49e/My7zY9ks00Cc+c/Gd8ZFjz2dvStCyd5TPV/zYC/JyTT8TYcgt5tQDOspcrbfQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JNVhxKuw+Iq6zjLMBx6jIKlVyYNHDCo4lW79Wd+Y2ZKpr6P0K8iBLMf1J5RWCR1QWCYBQ/lrU+/IJC/u5yyclEbHtMxEome2UhbKJK0Cs2XmcDM7uPCifDVmDTNJ67XWZuc1esNzQqyX+5N+68mSHqU4WpjMlgJemcA+QrzCUs0= Received: by 10.35.44.16 with SMTP id w16mr745614pyj.1193233169917; Wed, 24 Oct 2007 06:39:29 -0700 (PDT) Received: by 10.35.117.12 with HTTP; Wed, 24 Oct 2007 06:39:29 -0700 (PDT) Message-ID: <8cb6106e0710240639r20e03ce9w81ed3354338b7395@mail.gmail.com> Date: Wed, 24 Oct 2007 09:39:29 -0400 From: "Josh Carroll" To: "Bruce Evans" In-Reply-To: <20071024171915.E84143@delplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8cb6106e0710230902x4edf2c8eu2d912d5de1f5d4a2@mail.gmail.com> <471E343C.2040509@FreeBSD.org> <20071024171915.E84143@delplex.bde.org> Cc: remy.nonnenmacher@activnetworks.com, Kris Kennaway , freebsd-performance@freebsd.org Subject: Re: ULE vs. 4BSD in RELENG_7 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2007 13:39:39 -0000 > 5-6% is a lot. ULE has some tuning for makeworld in -current, which > for me reduced it to less than 1% slower than 4BSD (down from 5-10% > slower), for the case of makeworld -j4 over nfs on a 2-CPU system with > the sources pre-cached on the server and objects on a local file system, > and extensive local tuning of makeworld, nfs and network drivers. I > think the tuning in ULE was mainly for a 2-CPU system, because makeworld > seemed to be very bad under ULE only with 2 CPUs. Apparently, it is also > very bad with more CPUs. There are sysctls to modify the ULE tuning. I found Kris' document here: http://people.freebsd.org/~kris/scaling/mysql.html Which also mentions some ULE tuning. The sched_ule man page doesn't mention what these are. Can someone point me to a document that explains the sysctl tuning I can try? I imagine I would want to tweak one or more of these: kern.sched.preemption: 1 kern.sched.topology: 0 kern.sched.steal_thresh: 2 kern.sched.steal_idle: 1 kern.sched.steal_htt: 1 kern.sched.balance_interval: 133 kern.sched.balance: 1 kern.sched.tryself: 1 kern.sched.affinity: 3 kern.sched.pick_pri: 1 kern.sched.preempt_thresh: 64 kern.sched.interact: 30 kern.sched.slice: 13 But I'm not sure which to try. I did try setting kern.sched.pick_pri to 0, but that hasn't helped the ffmpeg workload at least. Thanks, Josh