Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7124559ybi; Thu, 13 Jun 2019 10:00:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsaPcnzM6zxlgu/R2zbADPWupOWXLxjugD2+hJua8CsMhgF/6IA6rJF7vBNXnajPVk65jn X-Received: by 2002:a17:90a:36a9:: with SMTP id t38mr6633074pjb.19.1560445219168; Thu, 13 Jun 2019 10:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560445219; cv=none; d=google.com; s=arc-20160816; b=eNXJRfXJhuYTe+3ucvJ7Hn5TqWrn7ixeHhqBBPrDpy+q4AS9CbDUFeaYPOc75kqCgv lzRdtYPhenP62jhDq5SbtqAJMYIYZqkpvjf8uv9TVY1SgP7vg2Ca8rzjwn3jqIGRdqhq tosQTUONs66kAIcXjToTusiUQiqV5sKXLkuJpH41fcabinr0t1PLSajmHRHbI5GgsY4u a3nrxXydHbxslQVVqBaZmjweiEPJkoTqklAqkzDU3UFhuOlmvHXyAoMV+W/gpG0QL/XI Ghb13OfKnP8LumkLDdFRtgzONC9jn3gRhbosDjpql8bvINsHkbXGiKIV6Cs6BE+LoU3M Vx6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=0OEootoOLq7cPZMlz3xJIkr+9woYMbgUb9aDDD9IL8w=; b=duuXw2t/VuY5Bef4Bm4vWwMYYLp+Sa3Q72hwqflUkU9kvrwJXUmgLwUsD2UyC4CdIN gsiMq8Ekm0V1/Ys8K5Tt6Xafww9l7iMaIZAtFvCCpq+EwIrX5FBpcYpPSCTbqGkjWsgc Za+2qCyX3uK8nkLq316o8hTjLSWiGEQfHkwkNuV0F/EXsN87K4Nr0VkSbhElJklddYSo hLa076na2FAK9DJk7Ue134FX/9ypXGiXeDys9RXLT/qwNhbUD4HRW6VIoZEdh8z3oWR/ 4NKj7q/VAzLXy/k0im05AUVY3z9oluvK5nTUNhxDcsI8s0+miyi/FN4RlajtsE/AkkYT r9+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=vrj0DDbH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19si244979pgg.334.2019.06.13.10.00.02; Thu, 13 Jun 2019 10:00:19 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=vrj0DDbH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731849AbfFMQ7u (ORCPT + 99 others); Thu, 13 Jun 2019 12:59:50 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49420 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729801AbfFMAKP (ORCPT ); Wed, 12 Jun 2019 20:10:15 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5D04qCO126226; Thu, 13 Jun 2019 00:07:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=0OEootoOLq7cPZMlz3xJIkr+9woYMbgUb9aDDD9IL8w=; b=vrj0DDbHi/tRfQOTRoPMQeFWT/O3BGw4YZQjeaAiKwYGP8h15rzoTlylbPcU9HJNvW7B XkXLh3HaYEU6hDFrEiCojaiq/UGtqooEoFRBtOiNJA/gqUE/mdyNLahbiRXkcORx4ZnG CIwAzh43uZ74uw2X7PD7QFNJeL43mkJZzE2uYPPPiZ8dVpPLql3+CvhEosTOoTxSRd68 CXVyCUDgjh5UyuVvm2TWGna96z3Cv7NQpHXYsgnxLQYdvagt8BA5w3IPTXtj+27rpaBq mugUv1s7g47j88+GDaZ8BxPKOC1u+LFtiTu0UPDUNFWYhlNG+fqQ2NUEMTdZhw+iC2kQ 1A== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2t04etxgqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Jun 2019 00:07:59 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5D07svf168338; Thu, 13 Jun 2019 00:07:59 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 2t1jpj9jk0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Jun 2019 00:07:59 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5D07qIQ001114; Thu, 13 Jun 2019 00:07:52 GMT Received: from [10.132.91.175] (/10.132.91.175) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 12 Jun 2019 17:07:52 -0700 Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Julien Desfossez , Aaron Lu Cc: Aubrey Li , 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> From: Subhra Mazumdar Message-ID: <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> Date: Wed, 12 Jun 2019 17:03:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190612163345.GB26997@sinkpad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9286 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906120170 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9286 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906120170 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/12/19 9:33 AM, Julien Desfossez wrote: > After reading more traces and trying to understand why only untagged > tasks are starving when there are cpu-intensive tasks running on the > same set of CPUs, we noticed a difference in behavior in ‘pick_task’. In > the case where ‘core_cookie’ is 0, we are supposed to only prefer the > tagged task if it’s priority is higher, but when the priorities are > equal we prefer it as well which causes the starving. ‘pick_task’ is > biased toward selecting its first parameter in case of equality which in > this case was the ‘class_pick’ instead of ‘max’. Reversing the order of > the parameter solves this issue and matches the expected behavior. > > So we can get rid of this vruntime_boost concept. > > We have tested the fix below and it seems to work well with > tagged/untagged tasks. > My 2 DB instance runs with this patch are better with CORESCHED_STALL_FIX than NO_CORESCHED_STALL_FIX in terms of performance, std deviation and idleness. May be enable it by default? NO_CORESCHED_STALL_FIX: users     %stdev   %gain %idle 16        25       -42.4 73 24        32       -26.3 67 32        0.2      -48.9 62 CORESCHED_STALL_FIX: users     %stdev   %gain %idle 16        6.5      -23 70 24        0.6      -17 60 32        1.5      -30.2   52