Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp636783pxb; Thu, 21 Jan 2021 16:22:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi2QlVPDgPSLiPH89NvwOYUIQ/LhO1Ml2Ko2hAGKis4yo8v0NAxERo0JeP0N7+BCqgGn8+ X-Received: by 2002:a17:906:e42:: with SMTP id q2mr1299947eji.25.1611274933438; Thu, 21 Jan 2021 16:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611274933; cv=none; d=google.com; s=arc-20160816; b=Nr19nt9lG2wG4JGEOXJck1qGwxD9xMJFEswYA/sP9AQTAqeUdJZaSRDCwqLm1cq37H 1RpsoWuzkfxPocxPp06Y5E6dLpBo3uGKCjqu491q6KBpQOK/cVPT0h+My4KGpY2hpGs5 lnDm2E3FqoRWNpbWT1lIIPvIE5BvIgN5bjiK5CzmMWJ8zcEXeMsYthXPq1lQhvXzN3qf UBM6ikHouBVCMN1xTP+ZLy3g93r6vMBTuXgjMTwmAkpLL9CxF/zPy7YJqpmo1H3VWGsk VQDOt+RryxOq2t6Cg2QQPdbeoQ3AHtzGNPLlMHRHo0MeMc57CNPomTZKoDbk9zGBTq7T Ybyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=YgRLzR8Yh3ek6+gQaBwYODzkqTl3oflQWDK0M++F9ug=; b=BHRX0KQSGm/vedSSkGDxOqy6N9kZ5+XhhzPotbHZ4CWehrtB0EB1dfDPor3keXGUFT 1MsGajjaY4QVHV3FGI84OKNABki81U/lUhIae3FSTKsVt5dRRZqm/S4wQerqDvRii2E4 4pifj7W8jsMXOWbcajPJAJo5tLfgUXsDc3ZtyX2yEauLCcjJ4lWbj968UAH2tQhQSK8I RxpcphG4tGqE/hJ8YFvQe7oNdLYBXshdeYl/wtC3hlALqOet6fanY+tOREvoMI9F5OVr WpVI/ntDMdHRZFg4h23xXr5qVONlI8pxRThdoBUBqDrT/UqzL+tUKxUBZJC2W3RoxrAo dWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TR3dU+rf; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do4si2302486ejc.295.2021.01.21.16.21.49; Thu, 21 Jan 2021 16:22:13 -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=@gmail.com header.s=20161025 header.b=TR3dU+rf; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726037AbhAVAUI (ORCPT + 99 others); Thu, 21 Jan 2021 19:20:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbhAVAUG (ORCPT ); Thu, 21 Jan 2021 19:20:06 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 459C4C06174A for ; Thu, 21 Jan 2021 16:19:26 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id cq1so2688345pjb.4 for ; Thu, 21 Jan 2021 16:19:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YgRLzR8Yh3ek6+gQaBwYODzkqTl3oflQWDK0M++F9ug=; b=TR3dU+rfpeRY/horkoiqCndqMMncc8oT3QWlZfehrai9O6rInUY9l6iscX+Ze5RdCR Ibbmux+TzqRJu4XzYcEsxyX1cF4YyXOUcyDKk039HKy7Z45TCIFGNT/zHBCJ4d0Fzua7 z62NQCtA90B/9ApTMdb7d8z+5tsBNP0LfZhd4awAKvBWKnawv5zXaQR22HKC803OU/XF iNWB63hEh/7dZOz6e8xO1/hk4aitY1C4HQVWD2EAr/pR1pWC7Hh6iaOerb6Rc0DHhC75 3DSicXr7ck3VL9f6v9eYlkp8oeoWV6TyG4/LEQ9fe8nzPRKZxj2OkKUZiQt6JD2zmeA/ +5bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=YgRLzR8Yh3ek6+gQaBwYODzkqTl3oflQWDK0M++F9ug=; b=FS201gYXMmI597MrXc0HZJmrEW1ei+gzpglpinn3y4p8ItpwaHu5nOYTlMSQdURp5D SxW3vgLBqsc7n82L1vOev03glBZLDffJiVKgVqXpMlK74jJqhF7YfhKRViiyFZIeeXuB 4GtEdifOhkmlPV6iKBJDjhS8KLXBqVVeVwGeZxb6bxfyTdbNsBhakvtwW3k2TN7QPaDW d3VgGFIoFb2LD4Py4EeBOmY4GbZeBmkFgbWN8IWEKo2pnslzbAr4PNi2VIX7tCpvvdtr 2JDmswHr0Ja4cCO6td+5B9s33npqe3ChDvSxR7zBC6CwF4f14iH7KRsmLbQSVVSFqVSi IJYg== X-Gm-Message-State: AOAM5339N6pq5bReWevfKqgCTDnRZG0ZJ9sqSLcIUN1u77nEiXvq8a2/ ql0iaTMyeZO/PGNoJUHOcJ4= X-Received: by 2002:a17:90a:31cb:: with SMTP id j11mr2260753pjf.6.1611274765792; Thu, 21 Jan 2021 16:19:25 -0800 (PST) Received: from google.com ([2620:15c:211:201:2144:1799:e940:1da6]) by smtp.gmail.com with ESMTPSA id y12sm6785415pfp.166.2021.01.21.16.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 16:19:24 -0800 (PST) Sender: Minchan Kim Date: Thu, 21 Jan 2021 16:19:22 -0800 From: Minchan Kim To: vjitta@codeaurora.org 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 Subject: Re: [PATCH v5 1/2] lib: stackdepot: Add support to configure STACK_HASH_SIZE Message-ID: References: <1610963802-11042-1-git-send-email-vjitta@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1610963802-11042-1-git-send-email-vjitta@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Signed-off-by: Yogesh Lal > Signed-off-by: Vinayak Menon > Signed-off-by: Vijayanand Jitta Reviewed-by: Minchan Kim