Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7133376ybi; Mon, 22 Jul 2019 07:40:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRvDsGBnXb2jKi0r9EIa2QYl/MvMW9UDX5FBcz7lHJ5zUCD7qeuGj1AurrY+UM25mbMnjz X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr76729816pjr.50.1563806432919; Mon, 22 Jul 2019 07:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563806432; cv=none; d=google.com; s=arc-20160816; b=EiQ42kdeWlVcq2tSujbHw90lLcA39ww1t3BXvcFdU5J057NhfjYd1V3sqZlSWHD8qS y/zmj1BoHVR+JYvyAQYcBDMmWMqgJmrVmZDeNFor/MTihWWDd5M/U29FOLQ2tsBXxtzf Buw4jwjYERLwd+7IMyXbqzMdDTOeffPhcYqzpUcR8FeXjZCBbOldRtIQ61dp9TOfIWBI lqHYyFLtN+6zMAdA+nmRI+5IguNcYmcDo4n7jqsIzdBCjpoFNzA93dEhqbvpN8eX1Bkd VmkNWuIck0SitqwVKu7YHIsrdndLaGz9XUJ81NMJSExZ/HkI3wEF2UsSFxhFfz3cpjWA gl4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=pBtJ7wubeZsq+Kmxblm/79xdFjmqThra564fV75Lo6M=; b=ynf3Mw2+eC/ITRmxfhSY+AUH3NPx6+i98lz22PwvSjZvD2iIQ6Mhs7Cp4dCM1esyHk I3VDndrUMf6SYxiTI4BXdlgMBy3oULe2jpCupF9gl18fPBXT47SJloJfF+X5I+AlSbR9 PNVpEkfhHziQP70GHLJivLo3Rd3Zz2hKBPbWHTXWkriUOiReHP3TqI/LTbJ8WK+ax2gh 9VJUcWRCu3tuGRIyC1rMMSiHb9+xwEmOcqeokZbXBfUzwDwQEqhtM9H0P7A05onTyGZE QiYKI/1JEEIvRDDab/Hkxdx0EG9sgcRt/gm52H41liUpysk7TzQ233Wm9+iaHkiyN+6X 0G9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si9329834pge.264.2019.07.22.07.40.02; Mon, 22 Jul 2019 07:40:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729707AbfGVKnW (ORCPT + 99 others); Mon, 22 Jul 2019 06:43:22 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:48149 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbfGVKnW (ORCPT ); Mon, 22 Jul 2019 06:43:22 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07486;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0TXXAZC9_1563792195; Received: from 30.17.233.143(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0TXXAZC9_1563792195) by smtp.aliyun-inc.com(127.0.0.1); Mon, 22 Jul 2019 18:43:16 +0800 Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Aubrey Li Cc: Julien Desfossez , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini References: <20190531210816.GA24027@sinkpad> <20190606152637.GA5703@sinkpad> <20190612163345.GB26997@sinkpad> <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> <20190613032246.GA17752@sinkpad> <20190619183302.GA6775@sinkpad> <20190718100714.GA469@aaronlu> From: Aaron Lu Message-ID: <18fdcd2b-9064-6895-5948-feed65f96e35@linux.alibaba.com> Date: Mon, 22 Jul 2019 18:43:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/22 18:26, Aubrey Li wrote: > The granularity period of util_avg seems too large to decide task priority > during pick_task(), at least it is in my case, cfs_prio_less() always picked > core max task, so pick_task() eventually picked idle, which causes this change > not very helpful for my case. > > -0 [057] dN.. 83.716973: __schedule: max: sysbench/2578 > ffff889050f68600 > -0 [057] dN.. 83.716974: __schedule: > (swapper/5/0;140,0,0) ?< (mysqld/2511;119,1042118143,0) > -0 [057] dN.. 83.716975: __schedule: > (sysbench/2578;119,96449836,0) ?< (mysqld/2511;119,1042118143,0) > -0 [057] dN.. 83.716975: cfs_prio_less: picked > sysbench/2578 util_avg: 20 527 -507 <======= here=== > -0 [057] dN.. 83.716976: __schedule: pick_task cookie > pick swapper/5/0 ffff889050f68600 Can you share your setup of the test? I would like to try it locally. Thanks.