From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80AC6E95A8E for ; Mon, 9 Oct 2023 11:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346185AbjJILLV (ORCPT ); Mon, 9 Oct 2023 07:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346187AbjJILLT (ORCPT ); Mon, 9 Oct 2023 07:11:19 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E6B1ED; Mon, 9 Oct 2023 04:11:17 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R671e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0Vtn6Z4K_1696849872; Received: from 30.240.114.194(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0Vtn6Z4K_1696849872) by smtp.aliyun-inc.com; Mon, 09 Oct 2023 19:11:14 +0800 Message-ID: <54601861-bd02-d4c9-6d78-34901807a001@linux.alibaba.com> Date: Mon, 9 Oct 2023 19:11:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 2/2] perf record: Update docs regarding the maximum limitation of AUX area Content-Language: en-US From: Shuai Xue To: Namhyung Kim Cc: mingo@redhat.com, baolin.wang@linux.alibaba.com, acme@kernel.org, mark.rutland@arm.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, bpf@vger.kernel.org, alexander.shishkin@linux.intel.com, peterz@infradead.org, james.clark@arm.com, leo.yan@linaro.org References: <20230907004308.25874-1-xueshuai@linux.alibaba.com> <20230907004308.25874-3-xueshuai@linux.alibaba.com> In-Reply-To: <20230907004308.25874-3-xueshuai@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/9/7 08:43, Shuai Xue wrote: > The maximum AUX area is limited by the page size of the system. Update > the documentation to reflect this. > > Signed-off-by: Shuai Xue > --- > tools/perf/Documentation/perf-record.txt | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/tools/perf/Documentation/perf-record.txt b/tools/perf/Documentation/perf-record.txt > index 680396c56bd1..dfc322d6f1f1 100644 > --- a/tools/perf/Documentation/perf-record.txt > +++ b/tools/perf/Documentation/perf-record.txt > @@ -292,6 +292,17 @@ OPTIONS > Also, by adding a comma, the number of mmap pages for AUX > area tracing can be specified. > > + The maximum AUX area is limited by the maximum physically contiguous > + memory allocated from slab/slub. It can be calculated with following > + formula: > + > + PAGE_SIZE << MAX_ORDER > + ( ---------------------- ) * PAGE_SIZE > + sizeof(page_pointer) > + > + For example with 4K pages and MAX_ORDER=10 configured, the maximum AUX > + area is 2GiB. > + > -g:: > Enables call-graph (stack chain/backtrace) recording for both > kernel space and user space. Hi, Namhyung, Since PATCH [1/2] of this series has been merge into perf/core[1], are you happy to pick this part [2/2] into perf-tools-next? Thank you. Best Regards, Shuai [1] https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=perf/core&id=54aee5f15b83437f23b2b2469bcf21bdd9823916