Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1318195pxj; Fri, 18 Jun 2021 04:40:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrTMXRGI39N1MzfdxMRyY2zcwy5K/aijUoFMC4oLQ4oMwWsjQKE2Wxbqb38xYM2G49TMfJ X-Received: by 2002:a02:a810:: with SMTP id f16mr2924424jaj.64.1624016432920; Fri, 18 Jun 2021 04:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624016432; cv=none; d=google.com; s=arc-20160816; b=cl16AJempAqEFAEePdlvdyq0HX20ELwPhTL2969lZ21Y8lN8eP8lI8FH7DCmpwdNtU 4uogRRpaqHzGEoHD72nBDiIorAWCRi/AzC9Ac8NSalxyX7ygL0V4X4Ht6SBdjCw5Xirv 2qJkZ2GSJVgP7HcgZ3xjkcleThmGLCYt1EY205arl5f/f898zmZEphooazyYbgTALJML XyOGHPor0QyykmK9IEtpbIPCvK6bnpn96ggs/+8QDAeLAkziesYomMKQWhNq5rkZHlmn dO8hwXNO+BYxzVXt3khSLWF85IwfpFLRy3oegf4aC8sw91g2NYsIW/feynT3+Bcj2nlr 1tBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S/IRAbCRQfCl9L4QO1dDDFQ88Il9eqaq4QycQk5S0ss=; b=rr79OSb+gfdUBawMU/LS2jP7vpi68dBxEl0/Ce30MQuVElI1VfyepzpLk2G1JiP/B0 sTS8CPOPZuDyNZk947W8BWsaDiFZF7ekn+EL6f4vXdzUKdrwPxg7i/iaiefMfLUmIOsG ehEe1BHCcswNNhhM7YucZEuSv8i+KaNGMeLkJC/jk0pdJBOcm50nj+R8Ujiddajm1Qbt l2/n0PRCzC4ckXbXPntg2hY02cr7sYk5s/ozq7uSmDnozv+HX5QEMQfk+UDdC4ohLkGI Ud0JUyDipmf6gEQkpAB0Cwik+0jg5q6oT8Ln73Qg8q86+ouGfbjmeec9ZFjeNy8qHJWb 7Gvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VwAjv5wB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si1719254ilp.132.2021.06.18.04.40.20; Fri, 18 Jun 2021 04:40:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VwAjv5wB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbhFRIiW (ORCPT + 99 others); Fri, 18 Jun 2021 04:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229877AbhFRIiV (ORCPT ); Fri, 18 Jun 2021 04:38:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA14C061574 for ; Fri, 18 Jun 2021 01:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=S/IRAbCRQfCl9L4QO1dDDFQ88Il9eqaq4QycQk5S0ss=; b=VwAjv5wBo63+YwdKB9+bI4qNO1 DJ1YJtoOtd4Q1f/9NGEF1PxIWViV6nWoaONw1/5FlGLeN73aLDdWDkIOrL0/GD/GfA+1Dklc6ltWj Zg4F9FgqEdtV4rQWmUdOZWfZWqHy88hrKxDj0J4QKQwbQ3ra7zgItdDofYGIoHJpXHns6JpmRMCYG zpLwxQ0x3knI96f1E8qVYWGQOmZeomN96tz3yshtrQQwgi6Yy8tuijvymk+DSJxAv35YfBBMl0xrM qFwBRnBGYxfTXxf/06dcxjXG3q74plfPCzx//nxL9S6gn2KqbEFc0/g8Su8CjA9HmuBREOFBjkPLh FIcfIDfA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lu9x4-00A4JB-N4; Fri, 18 Jun 2021 08:34:28 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D4AD0300268; Fri, 18 Jun 2021 10:34:09 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B0DD5200F8627; Fri, 18 Jun 2021 10:34:09 +0200 (CEST) Date: Fri, 18 Jun 2021 10:34:09 +0200 From: Peter Zijlstra To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, Dietmar Eggemann , Ingo Molnar , Josh Don , Juri Lelli , Luis Chamberlain , Mel Gorman , Qais Yousef , "Rafael J. Wysocki" , Vincent Guittot , Viresh Kumar , rostedt@goodmis.org Subject: Re: [RFC] schedutil: Fix iowait boost issues for slow I/O devices Message-ID: References: <20210618040639.3113489-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210618040639.3113489-1-joel@joelfernandes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Aside from everything else: On Fri, Jun 18, 2021 at 12:06:39AM -0400, Joel Fernandes (Google) wrote: > +unsigned int sysctl_iowait_reset_ticks = 20; > +unsigned int sysctl_iowait_apply_ticks = 10; Never expose HZ to userspace. we even have USER_HZ (no new usage please) that fixed existing problems with that. If you expose a knob, make it in sane time units and convert internally to whatever you need. That said; less is more with knobs.