Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp671449pxu; Wed, 14 Oct 2020 10:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjeGsRJCEijDOUB4nto+U7VA7rm5AQhjnhfzGmPzZ5ybW1CcxxXYg/BS6GHDQ1l8N1cobJ X-Received: by 2002:a17:906:3399:: with SMTP id v25mr134011eja.51.1602697127170; Wed, 14 Oct 2020 10:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602697127; cv=none; d=google.com; s=arc-20160816; b=oRSs/4En1h09NibWMod/r8bnBhLIlJiRXovEADxTzZtPMNLn8iUltJ+BAKrZ/gCQv4 NejrUwNEmQUM/ykvdDIh814iKzlYdnyib6aUWF/taqOsvyUWqC9E69FC3Z1LufmIQ3pt 3IV3NFbZ1XIcNTD2ko5PBXsVHVkP3U8LoS0xbFFaHsZ4ONeQ4wl3p/MKYjEEzGOAwHwv 98De5gi+sfjdmgHf2ucCCN4buHVPisyRp4hUEgVMW0df/RLoBRY91mf7IRUCrl55SR32 S4qhUKrUj2BPqwANwN8mmbzSuvK3Y388BCdPQb5FU5Ev1tJwcLyQ/BwhEhV51ydr8zbP sXxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=k+++v1uYKIqqkhsTVwIx8O5YBXIudVcProF+d+S7NWQ=; b=TmE3XFlvQrH0fRLOxeRKFja4uVWRuiTkulcpg9YL0kjgTzEvnyd8HyvGWtx40obPRS enVEebwPjkyUK/0t9I6sKVPJyXfsnKAXB4jeVaFSSiTgo/Uj8+cp6yDeg9gK5ONt7DIw qd3TwVAGY9h0k8Gqm/qHNryHzCuKqtO1e3aKLgKKtTBOI+XqSCkh0+4cPA66nSf+f91z 4akX42DE0Gik7ohQIaBDUQTUjHorBUO/4ErCajgxzdhtD0wfj7JL8dOGVaYRsUtDQJbn gVYUghvdbQZfl/MCtMwXMyA3EWF0geuQRmA9SIElhhMZT4YuZoOadxXM5OroE2J2uzGa 47Dg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si122696edt.67.2020.10.14.10.38.24; Wed, 14 Oct 2020 10:38:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727685AbgJNPHx (ORCPT + 99 others); Wed, 14 Oct 2020 11:07:53 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:33969 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgJNPHx (ORCPT ); Wed, 14 Oct 2020 11:07:53 -0400 Received: by mail-oi1-f193.google.com with SMTP id w204so3577273oiw.1 for ; Wed, 14 Oct 2020 08:07:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k+++v1uYKIqqkhsTVwIx8O5YBXIudVcProF+d+S7NWQ=; b=al9e1i/Wg8H/SQS8KdnabmlC7YviAXoFUfKpTn/cepogiNOEbRrQpmI7hgfX7jR75G /95r7nvY7+9WFrfZ6ZsvOtMU56ozHWR6dDg/6nd59Kqn52WAAhHj7gtNyX1RcAFOu26+ 4w13sSsOCa5t5M5Rx2o0nIGotzqUGzE/v1PqUwFQJu9FnOKeOPWB76UTp+M23h4OcQpI gGWQDHPXb5XtqBlc7VRHdd+t4nRit/FXhv5rclgByPpSq2/oib8ieQ51QfO/H1M+6xoK hwWfmw2K/76dT3BrCYhnx2MnqFGldf3sx9rYob5C6uy3WtN3GkWdPyJVf52ntr2dUOG5 lmRQ== X-Gm-Message-State: AOAM532XvthqDQHhnbJBVRPbjPiBHKN+wemKMQAdsf++Y93zYoMBrl0p /qBlxa7SV7NUMmFU13X/3FBgvcAi+wlk1hHROR8= X-Received: by 2002:aca:4441:: with SMTP id r62mr2367404oia.153.1602688072436; Wed, 14 Oct 2020 08:07:52 -0700 (PDT) MIME-Version: 1.0 References: <20201012144916.GB10602@alley> <49292e1a-7e46-b078-d15d-fb2f406317db@rasmusvillemoes.dk> In-Reply-To: <49292e1a-7e46-b078-d15d-fb2f406317db@rasmusvillemoes.dk> From: Geert Uytterhoeven Date: Wed, 14 Oct 2020 17:07:41 +0200 Message-ID: Subject: Re: [GIT PULL] printk for 5.10 (includes lockless ringbuffer) To: Rasmus Villemoes Cc: Petr Mladek , Linus Torvalds , Sergey Senozhatsky , Steven Rostedt , John Ogness , Andy Shevchenko , Peter Zijlstra , Linux Kernel Mailing List , Daniel Thompson Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rasmus, On Wed, Oct 14, 2020 at 4:58 PM Rasmus Villemoes wrote: > On 14/10/2020 16.16, Geert Uytterhoeven wrote: > > On Mon, Oct 12, 2020 at 4:50 PM Petr Mladek wrote: > >> - Fully lockless ringbuffer implementation, including the support for > >> continuous lines. It will allow to store and read messages in any > >> situation wihtout the risk of deadlocks and without the need > >> of temporary per-CPU buffers. > > > > linux-m68k-atari_defconfig$ bloat-o-meter vmlinux.old > > vmlinux.lockless_ringbuffer > > add/remove: 39/16 grow/shrink: 9/15 up/down: 214075/-4362 (209713) > > Function old new delta > > _printk_rb_static_infos - 180224 +180224 > > _printk_rb_static_descs - 24576 +24576 > > [...] > > > > Seriously?!? Or am I being misled by the tools? > > > > linux-m68k-atari_defconfig$ size vmlinux.old vmlinux.lockless_ringbuffer > > text data bss dec hex filename > > 3559108 941716 177772 4678596 4763c4 vmlinux.old > > 3563922 1152496 175276 4891694 4aa42e vmlinux.lockless_ringbuffer > > > > Apparently not... > > Hm, that's quite a lot. And the only reason the buffers don't live > entirely in .bss is because a few of their entries have non-zero > initializers. Even if this would live in BSS, it would still consume 200 KiB of RAM. Or am I missing something? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds