Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2063385pxj; Sat, 19 Jun 2021 01:47:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ5PKoqONiO6rva65fLaIvHEMvQ5ChFDXILwnGKnv41sxYAonipjUFLOffbBN62kz+dX33 X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr9481707edv.262.1624092430079; Sat, 19 Jun 2021 01:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624092430; cv=none; d=google.com; s=arc-20160816; b=gJrmsC+06KtsF2fFIzl8LzCwhYa872x02cwajsqXwuqaOJyLQKGccYFCkjnxPTXUY3 2KG0m+WbU6GGQrRiLjJeo5jU4bYqqSfJPCmtF2e6b2Y0UaCqoHAwYBsXOax1Z909FzNI JvtKSg5IRG5LK1PsX2bdRolcAy8ncQE4Uk4B1Cid7HWZwOwIptDaX14mDESypnDu4OKF sGHG1N45Pq40c2XsEeaJv1bRwTlIPnllovf4Nb2ekSAolBLBj7kIbryBoNljQcf2hxcS JtQCkKAb7dakSw3zkOPyQIHgF8fmDQx/FmzSl159VDQFXnji97HLTF82GCo/x0t1o54u RYyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dZ10QAktHB0VeE10rkvtL4By2SOCAcxAk+zpfYz46hQ=; b=PzJg3B34muqwznr9noVbDKMIyoXreO2Ap6+9ri3OFuk5d28UQxa0lZSm+p4PTOnQY3 pqsYQ8qbsKEy+65W151tu3qGTRxqbKz3RgoFyh1odD5dHqbzxQ9JIPlWuDcWjWIJpRxq cyfCUyYDQdL2HAYNVShBnhPjPgIK+/6NdkqfCxfwnE5vSriF0wIPiLd86IvAUIgqkG22 tPYtkmmWAu813Sc1BM2PaA2yeI5Hd1QdvnW0XQQ7ntq+g7RZDBndtv8yDs5ZpYVcrUdz 4xaSqSV+UoOCPjBHkRRU2jHW0cyzBchfG6E2wZ/0N6M+8BiRuh2ETs2blcW9tkb2gSlo IVlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=aNQfHil6; 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 n9si10977379edw.373.2021.06.19.01.46.48; Sat, 19 Jun 2021 01:47:10 -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=@joelfernandes.org header.s=google header.b=aNQfHil6; 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 S234353AbhFSAfu (ORCPT + 99 others); Fri, 18 Jun 2021 20:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234100AbhFSAft (ORCPT ); Fri, 18 Jun 2021 20:35:49 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56270C061574 for ; Fri, 18 Jun 2021 17:33:38 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id w4so7504538ior.1 for ; Fri, 18 Jun 2021 17:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dZ10QAktHB0VeE10rkvtL4By2SOCAcxAk+zpfYz46hQ=; b=aNQfHil6++umZJsUm28W1mpTv1MPSJAw/WryoNpU5YsSa6TDv9yJid3s1bH3fGmD1S prRuAjXBMfoUVxHKph0Vn53MVzoe6fS9PDc2qDqJy7887IPuCmxHBLhLcya8zVDEJ6IB TkEXaWAvZob/jKSvcHlbCgr8pEkVlvQ6AJKHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dZ10QAktHB0VeE10rkvtL4By2SOCAcxAk+zpfYz46hQ=; b=P27Ng5luyr2Wt5dQ8WOWVG7OQMbZf1lOxBfXd7PqAAJdnbH3zAVmFmwdsoGgTDq1TJ L4vF9KZOHR1xexiTwmzSqdKoCtfGgKIzT8U9APUOoFdwEJgJea5CFILQHXPEBSjqpOSF w1IsbqK33GQWI2BrrJd5io1yPAcIPo/bZr/3PKCIi5MEHIGQHsPNn/B/bglUYy+a3pj+ 7XCiImm4SxvgRpbFX5rOPbi3nyJ60WPLdq3AFhtJGGF2WCItyWbi90O9TbW1jfrg3PsT 6LtFH5vUOREZfDCZsjI0a1eiSXVyD7KUkX5wtFZp4h3RAVB4Z8xVCpYNdw3X9w4h0qN2 NXVw== X-Gm-Message-State: AOAM532NXexXXMALiKGsnFOPOGnTey+8iEEkH7L+q1Nqs+1ZRPYsDVsO YJIAMp6NMbOz8c1fgwQMgkAJNBOVh1hTz7BqTOTAiA== X-Received: by 2002:a5d:8154:: with SMTP id f20mr4884694ioo.89.1624062817664; Fri, 18 Jun 2021 17:33:37 -0700 (PDT) MIME-Version: 1.0 References: <20210618040639.3113489-1-joel@joelfernandes.org> In-Reply-To: From: Joel Fernandes Date: Fri, 18 Jun 2021 20:33:27 -0400 Message-ID: Subject: Re: [RFC] schedutil: Fix iowait boost issues for slow I/O devices To: Peter Zijlstra Cc: LKML , Dietmar Eggemann , Ingo Molnar , Josh Don , Juri Lelli , Luis Chamberlain , Mel Gorman , Qais Yousef , "Rafael J. Wysocki" , Vincent Guittot , Viresh Kumar , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 18, 2021 at 4:34 AM Peter Zijlstra wrote: > > > 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. Sorry, you are right and good idea. I will look into making such a modification while I wait for comments from others as well on rest of the patch. thanks, -Joel