Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp739339pxb; Thu, 21 Jan 2021 20:05:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLPWuzBYb6Okerc5I71ZZVSKbNzLTLJXq+xhcpjDX/nLDh63mlLLgqI2GXRiT5P0q9Yr1I X-Received: by 2002:a17:906:398c:: with SMTP id h12mr1702153eje.469.1611288316499; Thu, 21 Jan 2021 20:05:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611288316; cv=none; d=google.com; s=arc-20160816; b=X+bppna8YAUpUDW7iyfgnd3EbbKJjA5MqXE9bP4gxl7Rvu5PmeRmom+1TgRxOTpM0T HVK2X/6EBTrpQTx3s3SJtma/PV0p7XftsffpArFkKThtSo+6ALMLxaajtIguLZCKg/Ub 2p1e0mnwivedZ1hhAvg2RZX4USY5PQ5CyJqYL3MXBVIR9YU5+Y092zsN/hsbRBsBW5V/ m/ARX0LXmYNPHEdWcIJInd6G49/ZnEaTXl4U6pTRdGBo31c46DZEn82Adjr8aBdrccu4 +adhtWXJqSZHlYJuSWnUNk2v/7Q6rWBNh5RSNFpmN3CZo+n+2Bs0tQPix8b5Xw7pDc35 j4lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=k8p/9iah5u3Ps8oDNRx/PB8he4pehkzYRrW2ZakZsiA=; b=e07zzitiYc9FZ/xVdCYSUJVSHAjBuD2qo2VonrMQXcpmEnkESlnAccT7IX5Oy0s2Sj 2b/FPw7NQmJorZpQxEjCGfqDgPRbNOE4Q/Ti0G8u+WxKBn+2fMUCuXUSPTlC1I8ReMMg brblxpudR9rkLlyUDlc003wd4RfC1PNJUidIRhkib9SvbCw8f0bM7xZox0kmzz16YoUK 5f/X17H11x6h/mbn6rX+gGDi6EylrfrYX/eisCCmT2s8VsR0NNydXMTYUgRML/vzUtjc DBJxgd1k9l5fcFTXPpmSVwfIQTQ+MErCDNacqD4VamDZNxIspUDSDPOWTtSgb+O9HGID kLRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=l6BMv81H; 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 b8si2535643eja.22.2021.01.21.20.04.52; Thu, 21 Jan 2021 20:05:16 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=l6BMv81H; 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 S1726571AbhAVEB3 (ORCPT + 99 others); Thu, 21 Jan 2021 23:01:29 -0500 Received: from m42-8.mailgun.net ([69.72.42.8]:17072 "EHLO m42-8.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbhAVEB0 (ORCPT ); Thu, 21 Jan 2021 23:01:26 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1611288062; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=k8p/9iah5u3Ps8oDNRx/PB8he4pehkzYRrW2ZakZsiA=; b=l6BMv81HNtLzaHow8DMjzWBYcuEOXNi/AKhKEQmMbvLK4WIjatqlC+q+sOC+O3J8cx563KF3 +PRTzE9EYw81QBDLlt5qQcLSxkHOSmwcgsMoqYCY9SMde1KU4B5R3YNjHspzLCu1FG67c5Rm W19sY910k4O5yYgJswwj7IUbA9w= X-Mailgun-Sending-Ip: 69.72.42.8 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 600a4dce5677aca7bde9fe0d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 22 Jan 2021 04:00:14 GMT Sender: vjitta=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 03EDEC43463; Fri, 22 Jan 2021 04:00:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.106] (unknown [182.18.191.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vjitta) by smtp.codeaurora.org (Postfix) with ESMTPSA id F3654C433C6; Fri, 22 Jan 2021 04:00:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F3654C433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=vjitta@codeaurora.org Subject: Re: [PATCH v5 1/2] lib: stackdepot: Add support to configure STACK_HASH_SIZE To: Minchan Kim Cc: glider@google.com, akpm@linux-foundation.org, dan.j.williams@intel.com, broonie@kernel.org, mhiramat@kernel.org, linux-kernel@vger.kernel.org, ylal@codeaurora.org, vinmenon@codeaurora.org References: <1610963802-11042-1-git-send-email-vjitta@codeaurora.org> From: Vijayanand Jitta Message-ID: Date: Fri, 22 Jan 2021 09:30:00 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/22/2021 5:49 AM, Minchan Kim wrote: > On Mon, Jan 18, 2021 at 03:26:41PM +0530, vjitta@codeaurora.org wrote: >> From: Yogesh Lal >> >> Use CONFIG_STACK_HASH_ORDER to configure STACK_HASH_SIZE. >> >> Aim is to have configurable value for STACK_HASH_SIZE, >> so depend on use case one can configure it. >> >> One example is of Page Owner, default value of >> STACK_HASH_SIZE lead stack depot to consume 8MB of static memory. >> Making it configurable and use lower value helps to enable features like >> CONFIG_PAGE_OWNER without any significant overhead. > > The description could be improved to prevent confusing. > CONFIG_PAGE_OWNER works only if page_owner=on via kernel parameter > on CONFIG_PAGE_OWNER configured system. > Thus, unless admin enable it via command line option, the stackdepot > will just waste 8M memory without any customer. > Sure, will update the commit text as suggested. Thanks, Vijay >> >> Signed-off-by: Yogesh Lal >> Signed-off-by: Vinayak Menon >> Signed-off-by: Vijayanand Jitta > Reviewed-by: Minchan Kim > -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation