Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2228112ybd; Mon, 24 Jun 2019 02:56:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlFJRR6VtRC8SG2c90mLGNHhfdi0RK/i7d2ACAZyuwE8O2ybbacwYSRxiaz0rgeMXP5KTJ X-Received: by 2002:a63:1b46:: with SMTP id b6mr23872041pgm.183.1561370207718; Mon, 24 Jun 2019 02:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561370207; cv=none; d=google.com; s=arc-20160816; b=ef/3RAhxA0IMt4ugKOrpw1NwdHn6Csm4vEGlW7PrhGxYk/fsFB8cUPZjd19Y8ZZ+SR gmYGMHlBRxKoU/JnGsmvte2YrpGSmq1JRpZrOjmo09l1pF2sBdbNB+bHaGeyxrn+GXfp Njq9dutUbNPRQ3gvF4mCxk0AJZx4XS9msPhqQtKCilcc5acOEYto2XoI7Tp3861c40rj 8SMaPkomncdCPTeY4pqcnSm8buV0dBDia85PYDbw5xMQnMWv4pCN4Vijj5oclLPFNW6y FcSjYZ+WbdkObAr/Jw9w8sKCB1fgOwefJFJvbau+h0KFKKFuTBusvnsc20sMoV45Xier n5hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=n0ufRgSRW/SJVk6W24aCC0lEXNpgWRn1OC/lYqGzEEQ=; b=Nd7oFl6xzHD9kjEdUKcMTpqncvCtE38IxfGZPlfPJ4bDbkd5Tjh4/aZNvCcPjmpyuN nN40Ga98J0IAQAOYX+NRmMM0Cl19Xg1L148gFv95HY3l77O4Tpa7NRY/SeYwSXDrYcO0 wECo5QJjWwgFCXmkZe57ZQSZHNk8I1rEAeOj7rraCM9Gd3hUhGYbThpXfVJAvHQJb+l/ zM5JarOlDLacXTdYEOeEWOx1S9+yxkt90wiOiPGZDium4X1d/SmOtYkMGLLx7F4RMzd9 ZvrmTyte3P0G5om7urxUgNzW4FYsvwQlvucKx76eRbZjE5qigMSZlS3iPztVqj2/dZv5 MhkQ== 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 g29si10208646pgl.503.2019.06.24.02.56.31; Mon, 24 Jun 2019 02:56:47 -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 S1728170AbfFXJp1 (ORCPT + 99 others); Mon, 24 Jun 2019 05:45:27 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35496 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbfFXJp1 (ORCPT ); Mon, 24 Jun 2019 05:45:27 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hfLX6-00045j-BR; Mon, 24 Jun 2019 11:45:04 +0200 Date: Mon, 24 Jun 2019 11:45:03 +0200 (CEST) From: Thomas Gleixner To: Zhiqiang Liu cc: corbet@lwn.net, mcgrof@kernel.org, Kees Cook , akpm@linux-foundation.org, manfred@colorfullife.com, jwilk@jwilk.net, dvyukov@google.com, feng.tang@intel.com, sunilmut@microsoft.com, quentin.perret@arm.com, linux@leemhuis.info, alex.popov@linux.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, "wangxiaogang (F)" , "Zhoukang (A)" , Mingfangsen , tedheadster@gmail.com, Eric Dumazet Subject: Re: [PATCH next] softirq: enable MAX_SOFTIRQ_TIME tuning with sysctl max_softirq_time_usecs In-Reply-To: <0099726a-ead3-bdbe-4c66-c8adc9a4f11b@huawei.com> Message-ID: References: <0099726a-ead3-bdbe-4c66-c8adc9a4f11b@huawei.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-687753982-1561369504=:32342" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-687753982-1561369504=:32342 Content-Type: text/plain; charset=gbk Content-Transfer-Encoding: 8BIT Zhiqiang, On Mon, 24 Jun 2019, Zhiqiang Liu wrote: > ?? 2019/6/24 0:38, Thomas Gleixner ะด??: > > If we keep it jiffies based, then microseconds do not make any sense. They > > just give a false sense of controlability. > > > > Keep also in mind that with jiffies the accuracy depends also on the > > distance to the next tick when 'end' is evaluated. The next tick might be > > imminent. > > > > That's all information which needs to be in the documentation. > > > > Thanks again for your detailed advice. > As your said, the max_softirq_time_usecs setting without explaining the > relationship with CONFIG_HZ will give a false sense of controlability. And > the time accuracy of jiffies will result in a certain difference between the > max_softirq_time_usecs set value and the actual value, which is in one jiffies > range. > > I will add these infomation in the sysctl documentation and changelog in v2 patch. Please make the sysctl milliseconds based. That's the closest approximation of useful units for this. This still has the same issues as explained before but it's not off by 3 orders of magitude anymore. Thanks, tglx --8323329-687753982-1561369504=:32342--