Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp279757pxv; Wed, 30 Jun 2021 05:36:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwieC6YgtluqL90Wkp+kDKLlMBaCcREIXqxZcaFBSDu9zwQn8N8d+KQdGWeJzZEsvt+HiRZ X-Received: by 2002:a17:906:660f:: with SMTP id b15mr11974418ejp.443.1625056602055; Wed, 30 Jun 2021 05:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625056602; cv=none; d=google.com; s=arc-20160816; b=zneeldy9zFhPHE5c4lV4pfvJ9D+SSZplXsXKDs1csMbZgc/DMmzfLCjVumVfxAsCeA kQS2cjExKJkLSn9wc7HOLNpDTgRFT41g3aDukqoMuKzOR6fULmpVAV2lo5sRPLhYEV1G gFy/sBxoDWwVZJNX4rCtnTFVOr8/hvkP9Gu918HxVxM6vc2m7mvpViNIlJbpoOyOJxgV CSHQy1WRxGHsh8d1E9twpRz3d3QeUfTZD+6NelKYnyooSae+cmNkwtcA/i/w2bn7Tpu6 q1n+ywFBWxGvp08HHVm83BZGUk8Tre98qYOugXHqnU8h2wXfDrPsajVqDYJ1Wh87jkMQ elXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=I3aA5zTx+nf/3XbjA+Ugq2e5C2FDwcwvGGNIb8gLdEI=; b=dm/b3xrqQbp4NfVEDbUommJTgKc8FP/Q45x0IVlycI5JNr68YuNpcj+/lacupmbSWF gKd0OpIIf0pvdIVmdShYxmqdRh1o4IiqgL9SxLV1g2hm3/xtfrbUJ5xIU3UG0YRCTV1d EPeEMLGegY1V7uvDAMqLC8y5WykdahiTYvtkVuDmrRiz67s4spQ2u1qqTjlKRnp/FWrv TtzuFPpk+aaMKddhjsMpU8GVV1moLQBWdpycqObCkNOUdCtMFKbnfAqv++yBv/u3aPi8 CyxYAAsw2F63Vpc+00d2u+tXoCYDUyeNngqH+WfAESwjMxKzVTKk5Rw8r4shFvzVSpHe XP/Q== 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 gv8si5747694ejc.710.2021.06.30.05.36.18; Wed, 30 Jun 2021 05:36:42 -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 S234576AbhF3Mht (ORCPT + 99 others); Wed, 30 Jun 2021 08:37:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47840 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234553AbhF3Mho (ORCPT ); Wed, 30 Jun 2021 08:37:44 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE68C61584; Wed, 30 Jun 2021 12:35:14 +0000 (UTC) Date: Wed, 30 Jun 2021 08:35:13 -0400 From: Steven Rostedt To: Paul Burton Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Joel Fernandes , stable@vger.kernel.org Subject: Re: [PATCH 2/2] tracing: Resize tgid_map to PID_MAX_LIMIT, not PID_MAX_DEFAULT Message-ID: <20210630083513.1658a6fb@oasis.local.home> In-Reply-To: <20210630003406.4013668-2-paulburton@google.com> References: <20210630003406.4013668-1-paulburton@google.com> <20210630003406.4013668-2-paulburton@google.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jun 2021 17:34:06 -0700 Paul Burton wrote: > On 64 bit systems this will increase the size of tgid_map from 256KiB to > 16MiB. Whilst this 64x increase in memory overhead sounds significant 64 > bit systems are presumably best placed to accommodate it, and since > tgid_map is only allocated when the record-tgid option is actually used > presumably the user would rather it spends sufficient memory to actually > record the tgids they expect. NAK. Please see how I fixed this for the saved_cmdlines, and implement it the same way. 785e3c0a3a87 ("tracing: Map all PIDs to command lines") It's a cache, it doesn't need to save everything. -- Steve > > The size of tgid_map will also increase for CONFIG_BASE_SMALL=y > configurations, but these seem unlikely to be systems upon which people > are running ftrace with record-tgid anyway.