Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp591351ima; Fri, 15 Mar 2019 09:30:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnK0qWhT3I8B9cZst7BavS0Jmu4E4I9pdzmGoDT1SXvbEy84Z/vEUv6BGquv2wBuhK0rAU X-Received: by 2002:a63:4509:: with SMTP id s9mr4248723pga.420.1552667415218; Fri, 15 Mar 2019 09:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552667415; cv=none; d=google.com; s=arc-20160816; b=tPW55H4WlhGXBz5MGIHNFW9MYkTso2uBM03QQWvNFZKLhc/4Af8HubYeZSmwr37alQ UTyHTKrH94AtjG4Tjwlmx6nNKkCkqqhwnpnVq2MFvuZ3raL4yfkE0LrLsoWqSZF8M8ra WG8lwo1AMy1EVyzT1Rz0JP+3StoQKx0n+paHEtmWTNkffF8tHsaD7LaSFWdeXiTZujAW FRmP/AF0DXq5odLJB/VPTl2X/5vTaArhFrn6sLQUoSLtR84JfSYEE59ewy5/vGUM6jQf h0xEdKd3YDwmFMxsKf122cTJsrbFKf3zgrmjAvXc7JeFQ6C4QcvqH65gFVq1eERMwYmH rePA== 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:dkim-signature; bh=6NCNx+aXeeCLMExDDZ5FoIOlHmU2VL9ClcIKwb1QWLU=; b=LD9curgTPRFH4wvE/RoZAwsosinElFhzf8OGMlA1tH0uizIzQkgdzgvU11GPIDO9Iv KzZxB5h+jo5zxbRXrHZubU8GOQGOh4M81eQqRhqtBFWkrGAS5mnM9wMXGWCwTF0kqzjh SxIh5yKvvSfQcxsPStjt8Et3JfuZwu3Qmm5o6BjzZ4qk0bqu5vJivIXChIavJX4xj1TZ jO2XHLpjT+Bovc3uwFFGALYeamtRBirlfJhsq0b7gm82L1nwnkZLkZXpk82Wu5fIxC2W Vzxy/OglGJ3GsRLeGGcAzNV80BBGdUHG+tLXzUZ1zRiBG6ANXzk+FifZCaYxYnmPPcbU yh3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MZ0cvBhk; 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 x37si2168081pgk.303.2019.03.15.09.29.59; Fri, 15 Mar 2019 09:30:15 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MZ0cvBhk; 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 S1728545AbfCOQ3T (ORCPT + 99 others); Fri, 15 Mar 2019 12:29:19 -0400 Received: from merlin.infradead.org ([205.233.59.134]:40990 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727951AbfCOQ3S (ORCPT ); Fri, 15 Mar 2019 12:29:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6NCNx+aXeeCLMExDDZ5FoIOlHmU2VL9ClcIKwb1QWLU=; b=MZ0cvBhkjEPFQ8x0Fn9vXJHTP lFBza9x4qU4VczcR4YkIROT68WD+5r5Tdh7sbYFaalR/0C8eTyhkDVIrYN7uNjwBbRaOs87T1TSvu toz2ZSeu5TtjksF8YctY3OaLbbOhRWay6FPJAbnGfMBJy7OM6RiP256a+JdGkOnxO/GSz6moI/9lI w78NJ7EXbuuZKs72R75RjO/0O6vkgSdWPU9Pr1ueeRvkRmYAsfr1i0q/SiFBNvsoyHPxHfR3AoxAH czr6WJonpANeZmQZvaEJSGpi+SIWBO/qlBuOOMjcuTX4Ml1dXf4kdOSGj/oMnsOAVvc5dc8v4vnUb mNXlYUPaw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4phq-00073j-02; Fri, 15 Mar 2019 16:29:14 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 73057239158BA; Fri, 15 Mar 2019 17:29:11 +0100 (CET) Date: Fri, 15 Mar 2019 17:29:11 +0100 From: Peter Zijlstra To: Phil Auld Cc: linux-kernel@vger.kernel.org, Ben Segall , Ingo Molnar Subject: Re: [PATCH] sched/fair: Limit sched_cfs_period_timer loop to avoid hard lockup Message-ID: <20190315162911.GA5996@hirez.programming.kicks-ass.net> References: <20190313150826.16862-1-pauld@redhat.com> <20190315101150.GV5996@hirez.programming.kicks-ass.net> <20190315133042.GB27131@pauld.bos.csb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190315133042.GB27131@pauld.bos.csb> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 15, 2019 at 09:30:42AM -0400, Phil Auld wrote: > On Fri, Mar 15, 2019 at 11:11:50AM +0100 Peter Zijlstra wrote: > > Computers _suck_ at /100. And since you're free to pick the constant, > > pick a power of two, computers love those. > > > > Fair enough, I was thinking percents. And also that once we get in > here it's not a really hot path. I've seen people say that before; but that's not something I can relate to. The basic idea is fractions.