Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp67236rdg; Tue, 10 Oct 2023 04:38:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHBb92WF+0JweklG2SCueD9OTEZEtCJ4tsZ1TUcgczhOP7HXnlgU94KLmdBHN7CS8lP/sYo X-Received: by 2002:a17:902:ecc4:b0:1c5:c546:fece with SMTP id a4-20020a170902ecc400b001c5c546fecemr22008080plh.34.1696937937912; Tue, 10 Oct 2023 04:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696937937; cv=none; d=google.com; s=arc-20160816; b=LKWiuM+vnzgl4z/53DDbsH9CRyMa1fhalg/1Ym8Hli02quQ4LWmQ0/jZ4z7mi1r808 6NfK/h0feNEh+3Q1xSICamM1ib+nSpEXxh5Ly7M0LfoH5/dOEhmWc9dhinTUfUSdo8rh nuNVE3miX1JUFR4ICD48nI7xTI1wpsqRg9FQdyXlOzzrOQfzEzwrGADMr1AzFQD78Y8L VGsm8Up466dc9lB5Dv9uN3Esv2WgnX/D2tY09cFxP41me7m0T7T0CQq/vqwRka/jbJrJ tdg3r9PAwcSrdCRTKK+22st7xx+c+or7YPAOas/vkL30bkw5wFhRpB1Xu25l6DnhrU15 cwxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=E3m24tA8X03D0oVS4i4mcEKwKE/QJadsr01j2gMVf4c=; fh=r5oir9yKxO6W2tbRp2NRUbDCDfKZQIUO9ValrEXoUlg=; b=iETeJIguF+7MWF6IMod83HAL/iGITmbZRkvnwPedCkqsbDQvhziX14k8KilP8t6p7I jIBAWXJnOABzb1BwJhCwruRsuwlVd5MvGP6P3rAvZSvQJX29i239jH2MKIx+X3QATjZG SgkJOoxtgbsqmPr9bb/FuKVmdZ6tQyXqmX6hwHlrGlcUEvDt8sIBCWy4ZPb+ZPQZfsHM S6CAlJbEHWnh6IFcFYHHADbCNodLBjO6Ym7LVWjDTDd8bUf2FPpNrbymxdVVgdpWmTcT bdtZ2sJEnypOQ+w7rYRDohhMLYa6h89msozzj3gHe5aFp6ELCmTTxC9/tUsVhPIqhYgi 4u1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eEexWBsu; dkim=neutral (no key) header.i=@linutronix.de header.b=DVAN+GiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id jd20-20020a170903261400b001b9fb999147si11031048plb.89.2023.10.10.04.38.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=eEexWBsu; dkim=neutral (no key) header.i=@linutronix.de header.b=DVAN+GiK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EF304801D753; Tue, 10 Oct 2023 04:38:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231396AbjJJLiq (ORCPT + 99 others); Tue, 10 Oct 2023 07:38:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231400AbjJJLio (ORCPT ); Tue, 10 Oct 2023 07:38:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDA0AC for ; Tue, 10 Oct 2023 04:38:42 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696937920; h=from:from:reply-to:subject:subject: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=E3m24tA8X03D0oVS4i4mcEKwKE/QJadsr01j2gMVf4c=; b=eEexWBsu+WIixsCVvqKSt3kYLj3eNSVloDh9Aif//tXF6UgirpjSbwqhal7COq6mzsbAhn Qg4YBxWFfxW9mmuTI4tgPcsSQrazbetNP666RtHIx9SKidXLcGWKydOStW9qbXCS6snLkJ ++6NzdXozpbhksGuOmUAKT7Yib1f7WRQGU+FBf20cn5M1HJCCLeS94RiaUzQGtP7iwNrMV 16NSE3pgp8+Aj3HgrpAG6S/pODtq2dhEuDxQTqNkeRYV8+m45zixWdXS8erhK0jEGfFd9i c0L3QLeBy3NBWDm1O/W0ICQeymSVf8Clt600OgMTryRqVE6oXtiigJTyK4LAig== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696937920; h=from:from:reply-to:subject:subject: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=E3m24tA8X03D0oVS4i4mcEKwKE/QJadsr01j2gMVf4c=; b=DVAN+GiKZn2uJyaeNmwWYEfHTWKr0/L5PaFvn03hG7cB6FD/5A4+K8dfiPzCiYwLV4Fw4w Q+eHfx+RtAECG/AA== To: Petr Mladek , Sergey Senozhatsky , Steven Rostedt Cc: Thomas Gleixner , Todd Brandt , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] printk: Reduce unnecessary wait times by pr_flush() In-Reply-To: References: <20231006082151.6969-1-pmladek@suse.com> Date: Tue, 10 Oct 2023 13:44:38 +0206 Message-ID: <87cyxmso5d.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INVALID_DATE_TZ_ABSURD, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 10 Oct 2023 04:38:54 -0700 (PDT) X-Spam-Level: *** On 2023-10-10, Petr Mladek wrote: >> This is an updated version of the patch >> https://lore.kernel.org/r/20230929113233.863824-1-john.ogness@linutronix.de >> >> Changes since v1: >> >> + Split reduction of the pooling time into separate patch. >> + Use jiffies to count the real sleeping time. >> >> Note that my original POC counted jiffies spent in the entire cycle. >> It would count also the time spent by console_lock() and by flushing >> the legacy consoles in console_unlock(). >> >> The current version counts only the time spent by msleep(1) aka >> the pooling interval. >> >> >> John Ogness (1): >> printk: flush consoles before checking progress >> >> Petr Mladek (1): >> printk: Reduce pr_flush() pooling time > > JFYI, the patchset has been committed into printk/linux.git, > branch rework/misc-cleanups. > > I am going to push it in the next merge window for 6.7. > IMHO, the issue is not critical and we are already at 6.6-rc5. It is a real regression. I think it is important that it goes into 6.6. At least the first patch is simple enough and fixes the regression. John