Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2372173rdb; Tue, 10 Oct 2023 01:45:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyQzN23bUzHOHTdycU1jptGGGtJF3JzF+SWfOjK1Osc4SzuHogUX0Z9DOJMax2+DXnW5pk X-Received: by 2002:a05:6a21:3397:b0:140:253b:b658 with SMTP id yy23-20020a056a21339700b00140253bb658mr18166525pzb.57.1696927506265; Tue, 10 Oct 2023 01:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696927506; cv=none; d=google.com; s=arc-20160816; b=vHg+nRaLWiR8wfS97BX8E+08S2J1wfaZjsUM/rb9WAQtTqjFo/J7mP/rJCIBWV3qfn t+ajs0M6IiBBpsw5D/PLi/9KUR27Sbw6aENSZAvFEarPtNMRW26HAAoT/cHCxRoWRbUL lss/TqZrVxLXYMHCQ3sf480XElNKEXQPA0DlMG3pOXHq41I1IbWxjV0YolVrucagC7Fl GNmy9+tEuzxgKIr/uskFeMJ/5LON7FFTnWgbW5M5aOkd63ov2yzCSpa8AqcsRnPiovdV NU0lX0ge9XJmzdLGR5x+5USfHDCls+amx1GA1S32yXgTUE8ST/j7yoiW6PwBlnMZqZvT SL7g== 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=3UiIzTG42vlM3ir1B9Nj5ARgpKfCz7wsB+YLI2XJpGM=; fh=NLIZA6yoOmMtG32bcgEKQ4PeWiikoOzXVQLDGiPJnVQ=; b=mx9K6e+okNB2C0Lp3zCUHThSVIEwAITEqJOeqlESHmko6/Z86Y4Fk0YlfqlyaGu3Uw 8Mb540EsDUQ8S9pt6iAJp+JFSfrSah2RxGcvnmYmHSkEauKlv+vRF/IE0FapuZuu2TGI NOjxTDAPm/J/6IbRuHK5uYB9egw9KCBmpQ9VpHRJeF/pzfe90kTeLNos9FKfTjSBwfjl BenzHZJM+XySo+qthS6JeK77zUCtiXW2WVMyaBTHKXqdrDHNv5cjvEc47xn+UCgqPclF xWssrOBS3/0ABIoEeaHBb08KjlCiukVMUKJcCHC+Z6vGJr9T2JYK/i5kvK6SBOPYgeZ6 Q+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qbAZTlNz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id by5-20020a056a00400500b00690f74dd2ccsi9068062pfb.69.2023.10.10.01.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 01:45:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=qbAZTlNz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6680C8131AA6; Tue, 10 Oct 2023 01:45:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjJJIo7 (ORCPT + 99 others); Tue, 10 Oct 2023 04:44:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjJJIo6 (ORCPT ); Tue, 10 Oct 2023 04:44:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA24A9 for ; Tue, 10 Oct 2023 01:44:57 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id BBEB4215D5; Tue, 10 Oct 2023 08:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1696927495; 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=3UiIzTG42vlM3ir1B9Nj5ARgpKfCz7wsB+YLI2XJpGM=; b=qbAZTlNzDmvjQLvR458eRwE+OseaJjC1froSejIsk0SHd5fzRgPEyTXSKgj2cjpB5kWp4z 6VBA18rfK5aT6itrC1aWJetBwhtW1/8MfxI+LGNMiTH/5SGbwWUYWX6aFcBLme5dkKSB+2 Ge62cQbFdTW9a9KMgAvML+Yz+OGhJrY= Received: from suse.cz (pmladek.tcp.ovpn2.prg.suse.de [10.100.208.146]) (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 28A9A2C386; Tue, 10 Oct 2023 08:44:55 +0000 (UTC) Date: Tue, 10 Oct 2023 10:44:54 +0200 From: Petr Mladek To: John Ogness , 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() Message-ID: References: <20231006082151.6969-1-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006082151.6969-1-pmladek@suse.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 01:45:04 -0700 (PDT) On Fri 2023-10-06 10:21:49, 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. Best Regards, Petr