Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp577214ybp; Fri, 11 Oct 2019 00:34:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCOnPdwbjyZMaMi+vYkRqD0IahXmNMdgLA68Ws15bA0RRE1vR/F7wWWKrX/NQ8Yu6d/Z3H X-Received: by 2002:a17:906:5e11:: with SMTP id n17mr12515003eju.302.1570779275458; Fri, 11 Oct 2019 00:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570779275; cv=none; d=google.com; s=arc-20160816; b=UFJK0+rTOZ+uEho9yfYYXumeg+P1YZHNwPhiK1qABzurjYjmGFrU3/7cC23hPilW6u IGtLDc0NsSoVV5G7bJxFcDBIaoL4F3U2xVhY/BbNzaCm0jrM8aB0Q4lXqnX0Sky+vpCe dJ3DYxg18VaBnJHAENJV9CGV6p8N18RU7yJ5cMIs0RitZ1YCg9d4BQ4JwV5gq9Dq9JIF pmFUs2HC8wXknO7tFPVOitZNhop3XuZnPSRl9Gn1RTOsyEmgmQG9g0lKXVz743Ojqtvy E6+rvyDxJ6qOW4WzR1DWClRS4BFyUfgeBqQl3IUFIrzDpbdjM+tAbPyUZxRHZCbibJmQ +uqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=EMpqlpB3pqoTdRqGJdMREPPw8UH/Emk4+8ZSm9H9oHE=; b=aw50B9PqWPkbf0pFQu3xleBaiVfmdg42BDuDUdnSpJwZPxytrCcwjIk46jgmXARhN3 vhSOPnSkRdIntw8AjBKF7WxsnChiEv1v4rqHmxlzJiybsJMScLYsO4/us5tntDtKnJ9t 7qT4B8LEvf8atxRjcwILsr1Lu+5KUuDoQ1KxRK/ztFSXCdCwswRm7MHQ1gbbOiiOhMAI 9xypU40CSefvgN3nja1V4HJqldloaIdDb0jSY19vqVH0jFBx6gqzBEegjjCIxInDTqC2 h8HldiSI4YvKbILV6xngTmmpQeMJmDMuZsCM4jd4Cz+L0jzVRxNOiDohQF3MGcsrBFTm cDMg== 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 u20si4767348edy.284.2019.10.11.00.34.12; Fri, 11 Oct 2019 00:34:35 -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 S1727580AbfJKHdv (ORCPT + 99 others); Fri, 11 Oct 2019 03:33:51 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:47160 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfJKHdu (ORCPT ); Fri, 11 Oct 2019 03:33:50 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R461e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=aaron.lu@linux.alibaba.com;NM=1;PH=DS;RN=21;SR=0;TI=SMTPD_---0TeiSnbC_1570779218; Received: from aaronlu(mailfrom:aaron.lu@linux.alibaba.com fp:SMTPD_---0TeiSnbC_1570779218) by smtp.aliyun-inc.com(127.0.0.1); Fri, 11 Oct 2019 15:33:45 +0800 Date: Fri, 11 Oct 2019 15:33:38 +0800 From: Aaron Lu To: Vineeth Remanan Pillai Cc: Tim Chen , Julien Desfossez , Dario Faggioli , "Li, Aubrey" , Aubrey Li , Nishanth Aravamudan , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20191011073338.GA125778@aaronlu> References: <69cd9bca-da28-1d35-3913-1efefe0c1c22@linux.intel.com> <20190911140204.GA52872@aaronlu> <7b001860-05b4-4308-df0e-8b60037b8000@linux.intel.com> <20190912123532.GB16200@aaronlu> <20191010135436.GA67897@aaronlu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 10:29:47AM -0400, Vineeth Remanan Pillai wrote: > > I didn't see why we need do this. > > > > We only need to have the root level sched entities' vruntime become core > > wide since we will compare vruntime for them across hyperthreads. For > > sched entities on sub cfs_rqs, we never(at least, not now) compare their > > vruntime outside their cfs_rqs. > > > The reason we need to do this is because, new tasks that gets created will > have a vruntime based on the new min_vruntime and old tasks will have it > based on the old min_vruntime I think this is expected behaviour. > and it can cause starvation based on how > you set the min_vruntime. Care to elaborate the starvation problem? > With this new patch, we normalize the whole > tree so that new tasks and old tasks compare with the same min_vruntime. Again, what's the point of normalizing sched entities' vruntime in sub-cfs_rqs? Their vruntime comparisons only happen inside their own cfs_rq, we don't do cross CPU vruntime comparison for them.