From owner-freebsd-current@FreeBSD.ORG Mon Jun 4 21:49:56 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F299916A46E for ; Mon, 4 Jun 2007 21:49:56 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 8311C13C487 for ; Mon, 4 Jun 2007 21:49:55 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so1023978uge for ; Mon, 04 Jun 2007 14:49:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=BHzUChPKDRk1YcSrFTKJiqfu9nhgUVDDQIpgfv41jzk7dC3ekSsyP9s1CW5gftxIMvshQuP/xpv5T3TX1uFxCy83f3biYOKiHX/HApmxya5Gk+MQ93hrQc4Ty9X1QX72c/LeOBnLRwSMBbQoxWnMFykmc6aYo2Fy8Z6RYhs1nDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=m2fG5BETNeIr9z5noRyHAv3G9eg4xPC3us9WWznYXD/t3kHUTg8CrQc2bJmrrH0z6GtaoMbQnvHsB5r+SqLpr+q/ZPzvetJFoPD9oF6yyUfmJzXc+Yc7jfUznq+RRZlp5hTv/cn/ZS0ByS2vomNPjZXPYhIDg8V+2mJ7vcby9E0= Received: by 10.67.10.18 with SMTP id n18mr3388810ugi.1180993794422; Mon, 04 Jun 2007 14:49:54 -0700 (PDT) Received: from ?151.75.229.254? ( [151.75.229.254]) by mx.google.com with ESMTP id y34sm1747654iky.2007.06.04.14.49.53; Mon, 04 Jun 2007 14:49:54 -0700 (PDT) Message-ID: <466488F0.9070802@FreeBSD.org> Date: Mon, 04 Jun 2007 23:49:36 +0200 From: Attilio Rao User-Agent: Thunderbird 1.5 (X11/20060526) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <499c70c0706041119o6c290fb3k7f234492df2f6548@mail.gmail.com> <499c70c0706041441q4d4f13adtebd979ec87f71558@mail.gmail.com> In-Reply-To: <499c70c0706041441q4d4f13adtebd979ec87f71558@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Attilio Rao Cc: "youshi10@u.washington.edu" , current@freebsd.org Subject: Re: Intel C2D COREs not used equally in FreeBSD 7.0-CURRENT i386 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: attilio@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 21:49:57 -0000 Abdullah Ibn Hamad Al-Marri wrote: > On 6/5/07, youshi10@u.washington.edu wrote: >> On Mon, 4 Jun 2007, Abdullah Ibn Hamad Al-Marri wrote: >> >> > On 6/4/07, Alexey Tarasov wrote: >> >> Hi. >> >> >> >> > options SCHED_4BSD # 4BSD scheduler >> >> >> >> Try to use SCHED_ULE or SCHED_CORE. >> >> >> >> ::[ | | | | ]:: >> >> Alexey Tarasov >> >> master@preved.cn >> > >> > I thought Davidxu removed SCHED_CORE for SCHED_ULE, am I missing >> something? >> > -- >> > Regards, >> > >> > -Abdullah Ibn Hamad Al-Marri >> > Arab Portal >> > http://www.WeArab.Net/ >> >> I think so. Try SCHED_ULE. >> >> -Garrett > > I'm using ULE now, and I see mysqld could use 104%in WCPU. > > But do you know why services still share the cpu0 instead of using CPU1 > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 598 mysql 16 44 0 639M 633M ucond 0 50:53 4.83% mysqld > 740 services 3 44 0 54292K 51352K select 0 3:08 0.00% services > > I wish kernel can balance using both CORES with ULE 2.0 ULE currently uses some tricks in order to avoid too many sched_lock acquisitions that pessimize in load balancing and in pick_pri case. In the night, I think Jeff is going to commit the infrastructure to let sched_lock back home and soon we will have ULE sched_lock free. It means that we could really have a good balancing and an effective usage of pick_pri for it. As saying: it is a known bug, and partially intentional... Attilio