From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 16 04:41:36 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1534A106566C; Thu, 16 Feb 2012 04:41:36 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 398238FC17; Thu, 16 Feb 2012 04:41:34 +0000 (UTC) Received: by eekb47 with SMTP id b47so683033eek.13 for ; Wed, 15 Feb 2012 20:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=sD15oTpfXPrn0+n9dfcqfD6Wpag4Rc7NFnqm1t9ecJU=; b=wunk20/PtEbf331PPiSWWRfS6uigPjM8BX/nFyRSzdu6jHrEw4oWH0GtfiwsIgmA7t Z5J8/G6jnTqOIj5SlK6chDvec84H2QumCoJgHNcPFsp4B9H3M+NXm3yw6Rd7haUnOMmT RUsmNCAxk91x16/v0+nO3Q1Vi5mEfCZbh5zW8= Received: by 10.14.200.196 with SMTP id z44mr591424een.116.1329367294151; Wed, 15 Feb 2012 20:41:34 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id n58sm18835414een.10.2012.02.15.20.41.32 (version=SSLv3 cipher=OTHER); Wed, 15 Feb 2012 20:41:33 -0800 (PST) Sender: Alexander Motin Message-ID: <4F3C88FB.6080006@FreeBSD.org> Date: Thu, 16 Feb 2012 06:41:31 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Jeff Roberson References: <4F2F7B7F.40508@FreeBSD.org> <4F366E8F.9060207@FreeBSD.org> <4F367965.6000602@FreeBSD.org> <4F396B24.5090602@FreeBSD.org> <4F3978BC.6090608@FreeBSD.org> <4F3990EA.1080002@FreeBSD.org> <4F3C0BB9.6050101@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, Florian Smeets , Andriy Gapon Subject: Re: [RFT][patch] Scheduling for HTT and not only X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 04:41:36 -0000 On 02/15/12 21:54, Jeff Roberson wrote: > On Wed, 15 Feb 2012, Alexander Motin wrote: > >> On 02/14/12 00:38, Alexander Motin wrote: >>> I see no much point in committing them sequentially, as they are quite >>> orthogonal. I need to make one decision. I am going on small vacation >>> next week. It will give time for thoughts to settle. May be I indeed >>> just clean previous patch a bit and commit it when I get back. I've >>> spent too much time trying to make these things formal and so far >>> results are not bad, but also not so brilliant as I would like. May be >>> it is indeed time to step back and try some more simple solution. >> >> I've decided to stop those cache black magic practices and focus on >> things that really exist in this world -- SMT and CPU load. I've >> dropped most of cache related things from the patch and made the rest >> of things more strict and predictable: >> http://people.freebsd.org/~mav/sched.htt34.patch > > This looks great. I think there is value in considering the other > approach further but I would like to do this part first. It would be > nice to also add priority as a greater influence in the load balancing > as well. I have feeling that for timeshare/idle threads balance should take into account not a priority, but a nice level. Priority is very unstable thing that is recalculated each time, while nice it is what really describes how much time thread should get in perspective and those values should be shuffled equally between CPUs. But I haven't thought about specific math yet. -- Alexander Motin