Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1097509pxa; Thu, 20 Aug 2020 02:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8S2AfKthBW9XhW9rg8rjx5OARkQoe5yFlqdAYgEcsz+hmWHMSr7e5PczArsl4m5p66+Nr X-Received: by 2002:a17:907:40bf:: with SMTP id nu23mr2262043ejb.243.1597915224681; Thu, 20 Aug 2020 02:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597915224; cv=none; d=google.com; s=arc-20160816; b=cyRfp0jxXfPkUaMP+M7cUi0UY3QUX+NjjyM0U4x+zooZJnSlOVlDdUH877ynjgu1D6 FIoWb6q1NPtkw2/xxumlU1p3mGzCKIOBcWR8DPkEeIzhnQFcsommDb3nNBUuKASA3yEo lVgrbeSH0dat/GvZKlO9XJvMqKwTdb7c96IXYBrTyZmdzGrV0Hr+6ArUcAajf58Yxy8F 4olmadTU0+HIp7+W90l5eihqE44HRuBPn7FMV+c6Jp3QvFnD+wHF77CWOul6oEFH9WEo 5mr1rTCGWcWkmsFAEQ8PZ6kJHB6wuDMWrVlih9mfeF12s5oVzlv+bUM5sCp1jaUiNvFo W+hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=BKCC8LY5eyXxgPkbZLKy7wBhTWb+3NrngDGJtPc7giw=; b=c+gUCTHs/kUGIR/8MR+ABLp7NEv4PEF4FhzJeXMQb6QhcTvyxxOZKDwTTud4GU8J7s yJASfhmot1xSBY2EZNLwd/tZHZ5S0Sr8J/2/R65l+xmYauYkfYljQL0HjOmH+l3VjBid Noe3QsUzA1ygfM6FDu7ziE1p4c139wuxCUpSOlE/FarAVXlmYEZHaL9ceB+2Fr/wwFkh +2z/BpOtBCFS1XsT/PTLn1ti7YbZli6Rbt1+8SXMDcJd1aa4ZDXm/FnJkE7lGcFHYSig 2ytIk39OLTvGkb5+MUx44pal4Fnm111D0Pnr6Mp660NpJ8pfN0P9VGOBW3LzSYs+DPAm 8v3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yZ4vqcXi; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ox11si795410ejb.727.2020.08.20.02.20.00; Thu, 20 Aug 2020 02:20:24 -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=@linutronix.de header.s=2020 header.b=yZ4vqcXi; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbgHTJTN (ORCPT + 99 others); Thu, 20 Aug 2020 05:19:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbgHTJSh (ORCPT ); Thu, 20 Aug 2020 05:18:37 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B793DC061384 for ; Thu, 20 Aug 2020 02:18:36 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1597915114; 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=BKCC8LY5eyXxgPkbZLKy7wBhTWb+3NrngDGJtPc7giw=; b=yZ4vqcXicaTwqzYA56JRtJyNmR4lrnwCmHnfwA94jLlWRfPDycDYu/Q8ElPHlUXk5zSmrd JmCWqW5xHeMiwMvynRwMIRmocvxe95LOkKedTBsNZcWAze2OrUZjwDRw11m98xuDCUfn5L Vu8IBNa/KvbIrn5oZDyb+eM0vdJopgbvnav7/8bkD3wUr/AAkBjHJI5J1qfjHfspqlAq0C 8LT4AM56sEml8AwtzDoEV3YF6TJl8XboLR6DK17tJat7fAX5Xi69ZtlBP2xNPUUDJf6rpc EPYFfTfPOHQIKUu7w+n2xkB60sBUx1zyvw9A0+ha59X/PcrEPKJc79/hBGdaDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1597915114; 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=BKCC8LY5eyXxgPkbZLKy7wBhTWb+3NrngDGJtPc7giw=; b=HPS6KYi1eAGXLYiQWiaX4ld6qTIt6H3EeQs1uRPabErkbY9Z+V/pVQ6nGEBafTOetEENlx OsfrWYk7MrzgrFBg== To: David Laight , 'Joe Perches' , Linus Torvalds Cc: Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Thomas Gleixner , Sergey Senozhatsky , "linux-kernel\@vger.kernel.org" Subject: RE: [RFC PATCH 1/5] printk: implement pr_cont_t In-Reply-To: <389a62f178d2482b9525f499b82e92df@AcuMS.aculab.com> References: <20200819232632.13418-1-john.ogness@linutronix.de> <20200819232632.13418-2-john.ogness@linutronix.de> <29b6120680fbfb51936bb9100b2c9bb78385aef0.camel@perches.com> <389a62f178d2482b9525f499b82e92df@AcuMS.aculab.com> Date: Thu, 20 Aug 2020 11:24:33 +0206 Message-ID: <87wo1tzndi.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-20, David Laight wrote: >> On Thu, 2020-08-20 at 07:44 +0000, David Laight wrote: >>> I've no idea how you'd 'size' the number of buffers. >> >> I believe they are static and assume no more than 10 >> simultaneous uses of printk_begin > > What I meant was how you'd work out whether 10 was in any way > appropriate. ISTM it is either 'too many' or 'nowhere near enough' > depending on exactly what the system is doing. Right now mainline has 1, which breaks pr_cont just booting your system. I expect we will be increasing the number of buffers, regardless if we adapt a new API or continue with what we have now. > And if code 'leaks' them you are in deep doo-doos. Not really. It falls back to printing individual parts. Also, the printk subsystem has access to the open buffers and could even track the users lockdep style. But this discussion has little to do with the API. These are implementation details that may end up under the hood of the current mainline API. John Ogness