Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9377171rwp; Thu, 20 Jul 2023 04:10:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPRhdydSHNOOVkPJC3eik0j1fMvFYOf1qbDS9qIohxSYlzpbJCmrDVMajapd5I86oroCq6 X-Received: by 2002:a17:906:24d:b0:992:7462:a22c with SMTP id 13-20020a170906024d00b009927462a22cmr2461809ejl.36.1689851446391; Thu, 20 Jul 2023 04:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689851446; cv=none; d=google.com; s=arc-20160816; b=VN5024lnFE8XINeDLgEJEDpLaUEaZSQAU5IYkLcb+rDPCqBR8bkAiHgp5w+JQpogDw pZ2DrGbgdobj68t6MKQ35lLaZioSWQuYG4/9sQRx3BB3N24THI81jPpt8+iOQ9R0jpbd tgcXw9D0JsFXQw9Ju2rrC8gwLdGzuXsQvq93qopFmTNXbvIFsDCwOy1I9APnIfvT+z0e njP5LgIfIF8tLWvxnn2fFMiaOwmEo7QBPW64wcr0aXrb4gswmlTmXfVJV5zdJyDi44eT e8QGzjcHOkAs2xF6RuBCvDfU2xEzD8vnVl++TZmWWbv13SMWpoAToP976JVc6Flodgne EfCA== 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 :dkim-signature; bh=r79tnlOtDHR7by6b49/n8KfLuYC93z1qpLSo+YCupbI=; fh=qg9jAqWCDK6FHH64OpSlOmB6urmwint65ruQTTgpSkM=; b=p4BNEP7sfV49F6WpnIu9EZAZ36lT/74a8XSRW8DfMttGvj+XDTT8ifB1HIqwPKw2/o FOL591TReijBTVemZ0gZhI4L8njoPnvy2B4YlM+rrdNOzll/Ief9JD4pc1GJ8VeoGVWn 97w/YrfhMnCzHCemkw/H4Y0wb/vSqpB2qmJ7Go94fsJ1AKMCU4f4/HG+G1frrhHhL2Kf 8IdUZ4cbk7hJh3uocRSzqKraLz5HGgm0uH/4mHrKe0e6DCFK7SAjXNqy+wJyNGaoqXDq ARRrxsqMvm/Rrw5ESHsoSC7RkfvXMgvUDXn+VR4Vc82b1L35lK1rFIVGRh/ROgamaREl sruw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LptwLFcW; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=LP20h7Hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj11-20020a170906f9cb00b009929c39d5c5si504501ejb.367.2023.07.20.04.10.21; Thu, 20 Jul 2023 04:10:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LptwLFcW; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=LP20h7Hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjGTKAM (ORCPT + 99 others); Thu, 20 Jul 2023 06:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbjGTKAJ (ORCPT ); Thu, 20 Jul 2023 06:00:09 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92DA8BB for ; Thu, 20 Jul 2023 03:00:08 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 528AB22B58; Thu, 20 Jul 2023 10:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689847207; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=r79tnlOtDHR7by6b49/n8KfLuYC93z1qpLSo+YCupbI=; b=LptwLFcWcnatSFJtxVy5x+3RHOlxDXXrM2dFPtbVWkJXaQlGXAKIBssq9IfwIvgEkWnc88 VOOzzx2xTz/3VDMdsQoeiEruaeGohwfn0dna/khKC878vVedmQBCi63/LJyal6tkb2cjQH ACfTQywy+nD4o2s2x6chZ+xTYPN8uS0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689847207; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=r79tnlOtDHR7by6b49/n8KfLuYC93z1qpLSo+YCupbI=; b=LP20h7HggkF6ko4HO0b91i+hdxc2azG90KqDBVdx3vLLNsdjEY2PPEZ5h32bZY55qbzSB7 azmFIAHUsLj11LDQ== Received: from suse.de (unknown [10.163.43.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id EBEAC2C142; Thu, 20 Jul 2023 10:00:04 +0000 (UTC) Date: Thu, 20 Jul 2023 11:00:02 +0100 From: Mel Gorman To: Cyril Hrubis Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org, ltp@lists.linux.it, Jiri Bohac Subject: Re: [PATCH 2/2] sched/rt: sysctl_sched_rr_timeslice show default timeslice after reset Message-ID: <20230720100002.yk7lef3fsvtohlhg@suse.de> References: <20230719103743.4775-1-chrubis@suse.cz> <20230719103743.4775-3-chrubis@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20230719103743.4775-3-chrubis@suse.cz> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 19, 2023 at 12:37:43PM +0200, Cyril Hrubis wrote: > The sched_rr_timeslice can be reset to default by writing value that is > <= 0. However after reading from this file we always got the last value > written, which is not useful at all. > > $ echo -1 > /proc/sys/kernel/sched_rr_timeslice_ms > $ cat /proc/sys/kernel/sched_rr_timeslice_ms > -1 > > Fix this by setting the variable that holds the sysctl file value to the > jiffies_to_msecs(RR_TIMESLICE) in case that <= 0 value was written. > > Signed-off-by: Cyril Hrubis > CC: Jiri Bohac Acked-by: Mel Gorman -- Mel Gorman SUSE Labs