Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2321848ybi; Sun, 28 Jul 2019 06:33:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyITEb6h6NSwVPyty/+sMlkQi/V9fOPWxgygY7L1Q5V44X3dBLprhj9OQZk7Ekx0xMRyi68 X-Received: by 2002:a17:90a:1b48:: with SMTP id q66mr102836781pjq.83.1564320798091; Sun, 28 Jul 2019 06:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564320798; cv=none; d=google.com; s=arc-20160816; b=BjpbQcwIKh1vS9w4StMCrr97okpR7wNTFVs5mW65U1eR8F2vPKA3X3Wvm6Btm1OJU/ O5ltriioRIVrdl9o7sy7CiMmQ4QQb9F2HXB1Nmp1ftfuC+H6feoPLeaxpKxvF5uqSUTM Gu2tnimBwPp2blmOTbO7Iu9QBAtt1Ak+D2aebTR2vn11nhJAPqdpjxY0cnLfguJ3nEIv pxg4O9v+5eUhwPTg8YJEDN/TFCuU//EwojEkCQQcDz7IOX3ytVqInKrhx8bEoB/tCs62 QLWnkvbidtqUmKW0j7Guakbcss9ZXVUzVmxLNiY2BJhLfsAtbEIWU/DhFd9TXgDXfvZZ yBFA== 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=iCKN2E/A8p31Wg1YXVKJBF79TMMOjRheNChjQGrEv8Y=; b=ECBMO+zM7RRTvp3awAdDJf3NHHPYswGdRlzFVGjvX0xYuUxJhUzYCY1d2IWuBlJNF6 0zJewC0gT1EFlXdBFqrj7UKuYM2ejpsvB4kUAor0n1uUDcWH+11mn0MLyN0rmCjNhq6P 2mHGQLpFPVlNdmH1CJ8PtA3aQXPtiwQyzjqryacXKHHSXU1J0JCRHtgGA+vBLeFKYrYr 60PevTWEnDyzdlGaDfqgM2sQubOTSmbD52xyNWQMiZWpZyTQso8Mt0o8nQcGLQUrYOkB 767yKkKHrsMr/is5D+Yq/A12jiZdrcMwtNblvIYf1v7sLur9s75CNE5WOMN3Dl4k0KhB mwKg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m68si26489253pfm.150.2019.07.28.06.33.02; Sun, 28 Jul 2019 06:33:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726120AbfG1NbJ (ORCPT + 99 others); Sun, 28 Jul 2019 09:31:09 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59088 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbfG1NbJ (ORCPT ); Sun, 28 Jul 2019 09:31:09 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id D830B8021E; Sun, 28 Jul 2019 15:30:55 +0200 (CEST) Date: Sun, 28 Jul 2019 15:31:02 +0200 From: Pavel Machek To: Parth Shah Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, patrick.bellasi@arm.com, dietmar.eggemann@arm.com, daniel.lezcano@linaro.org, subhra.mazumdar@oracle.com Subject: Re: [RFC v4 0/8] TurboSched: A scheduler for sustaining Turbo Frequencies for longer durations Message-ID: <20190728133102.GD8718@xo-6d-61-c0.localdomain> References: <20190725070857.6639-1-parth@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725070857.6639-1-parth@linux.ibm.com> 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 Hi! > Abstract > ======== > > The modern servers allows multiple cores to run at range of frequencies > higher than rated range of frequencies. But the power budget of the system > inhibits sustaining these higher frequencies for longer durations. Thermal budget? Should this go to documentation somewhere? > Current CFS algorithm in kernel scheduler is performance oriented and hence > tries to assign any idle CPU first for the waking up of new tasks. This > policy is perfect for major categories of the workload, but for jitter > tasks, one can save energy by packing them onto the active cores and allow > those cores to run at higher frequencies. > > These patch-set tunes the task wake up logic in scheduler to pack > exclusively classified jitter tasks onto busy cores. The work involves the > jitter tasks classifications by using syscall based mechanisms. > > In brief, if we can pack jitter tasks on busy cores then we can save power > by keeping other cores idle and allow busier cores to run at turbo > frequencies, patch-set tries to meet this solution in simplest manner. > Though, there are some challenges in implementing it(like smt_capacity, Space before (. > These numbers are w.r.t. `turbo_bench.c` multi-threaded test benchmark > which can create two kinds of tasks: CPU bound (High Utilization) and > Jitters (Low Utilization). N in X-axis represents N-CPU bound and N-Jitter > tasks spawned. Ok, so you have description how it causes 13% improvements. Do you also have metrics how it harms performance.. how much delay is added to unimportant tasks etc...? Thanks, Pavel