Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5837343pxu; Wed, 23 Dec 2020 06:45:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHHQswQJMNHC7HhA8uHLjjuFpXh/4o/H+7WbfyzaecJqORVSwr3gVnEuwzy/tOLPrnGggo X-Received: by 2002:a50:9f4e:: with SMTP id b72mr25266339edf.200.1608734713824; Wed, 23 Dec 2020 06:45:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608734713; cv=none; d=google.com; s=arc-20160816; b=wOlvJ2rJ9gob9nOEvRN3Z3FVCCsrvXqBdjagZiRxYn6zTie7EeapSUgfad8fvt2YeE hDVm2/vdx2u4rIIXKDM79bF+Sa5TV2JBAELXu8B6k3/YDm1UCTtrgnFIIAo34vgN+rXr SfdKx/zeYGyb91vRXpDUccp2FavP9l3TBxODbO4l4CZ/MbXxHiqZ/HQidKwfyAsVlYRS IgFG922czlRDvFTY0peSQQFmrRORVvOF2ajvaOKM6c3FFcyLQlQw4fb/KdXjUZwWxaPA J8ChciY5zstm5qTDg4ksIWD6h2VIhXOjuc/9/ePVSup80+4a1wZBmDYw/0TgpyyFW4Dr 3b6A== 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:dkim-signature; bh=TyB5HqZGghDqQHiswidE0Nhl7bc1fz9iuEH17F6HS7o=; b=LQFDiSJSQpE9fZYG6XPfuXlYgBIf4A8uMCbA5wlwQlkgt+RUAr8vnHC8JH9HKboYWE 78Frx5vM86W4yIJZaM9hEnE1eTwY3R/NP7F8KOYbYw3IylGWNUNc7RFjwCQpsh9BMath kpMtGJrPJeHU4U6wO1HRwsRHCdbVQDpgU0BPt2+/oSnRX6MyuTRB5K27W1EuFUbU5bwZ jKlakdvPALe8WgNMDaaQAVZ926LSePQHXJVu16o+HjWK058vwV6dVshFbYqLYOcgwKF4 d0S+CAzmJxK7f+aV8p6RTb+O0Ttuzt/8bjQ0pGJ6cX9lj05U81JrEgo+cRBYznVpEeFE vR/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IgDeBDPe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si12232571ejd.515.2020.12.23.06.44.50; Wed, 23 Dec 2020 06:45: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=@google.com header.s=20161025 header.b=IgDeBDPe; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727207AbgLWOls (ORCPT + 99 others); Wed, 23 Dec 2020 09:41:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725957AbgLWOlr (ORCPT ); Wed, 23 Dec 2020 09:41:47 -0500 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3332CC0613D3 for ; Wed, 23 Dec 2020 06:41:07 -0800 (PST) Received: by mail-qk1-x733.google.com with SMTP id w79so15050916qkb.5 for ; Wed, 23 Dec 2020 06:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TyB5HqZGghDqQHiswidE0Nhl7bc1fz9iuEH17F6HS7o=; b=IgDeBDPev8DvZ4oaMbBRJxjg1MAgyoPY7166NixyJvkYllxi7/p5kshNjanc9HtTq6 sYiKXh7tNOVrkLuVBGcKEwm5x7HBcJsdcxs5yXmSJyLaVXBrqnZ9nLmMk7GaKy9goTgx AsV9Hjpq8Z4uM9zAfHPPwRUlc3zf5y6KvcWo1x4h/zhdryrGq3ClbRppdJBFaPuehdMn I8NwLTQ2quDHkqPvXp39O8XGx7SjzKTG0cka0nGhJtO8WW0ExIYDTsZM+C76kia1TXrP bYLX6d2SVIqaA0WSilV717axihAAEID9HoAiC3RvsVA5+4SOMjcT4T8On5QRvtCI+non QMjg== 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=TyB5HqZGghDqQHiswidE0Nhl7bc1fz9iuEH17F6HS7o=; b=ikxzNlQ7dhcSA8x+u7UOgDTdu09cEh357NT5d/qkvw8vGIoPLpfVMMEBgGk4zDL2Uw MXKoxuiv0x159nwbeXHCcbL2fw7iEdkXN4aWGRQ3RbP7AaxV+KFgMZlv7B0jCyHk81xH 32vLC4p5lHLo2MPV2byAxEB53sbjTXmUWr9KxrZs2Qoyg1uyNKet7HyVpK8F5uSq2iKN 5ABqv3eaXGQuh71C8q9yi8JMpaL6GiFVSzteKKMD7mA9JOJwnzPKIKP4Dh+sncBlOlEj NlcKG32ZFNSDu34m/PS1pgoPh3tlfmfScFuhqh7lGr7Ggb9O+X8ClifanjoL2SQc9dSf f8Ng== X-Gm-Message-State: AOAM531sjTdhNLmPU7xjbLEnV0flQ/UBgp+XUfn6mr3+RlriDXdCE+sN L4rl25hyUk/nLLrQp9zAjg5rcYHIupXp2GPYfRUYfg== X-Received: by 2002:a37:a747:: with SMTP id q68mr27163288qke.352.1608734466216; Wed, 23 Dec 2020 06:41:06 -0800 (PST) MIME-Version: 1.0 References: <7f2e171f-fa44-ef96-6cc6-14e615e3e457@codeaurora.org> <601d4b1a-8526-f7ad-d0f3-305894682109@codeaurora.org> <9e0d2c07-af1f-a1d3-fb0d-dbf2ae669f96@codeaurora.org> <48df48fe-dc36-83a4-1c11-e9d0cf230372@codeaurora.org> <6110a26b-dc87-b6f9-e679-aa60917403de@codeaurora.org> In-Reply-To: From: Alexander Potapenko Date: Wed, 23 Dec 2020 15:40:54 +0100 Message-ID: Subject: Re: [PATCH v3] lib: stackdepot: Add support to configure STACK_HASH_SIZE To: Vijayanand Jitta Cc: Minchan Kim , Vincenzo Frascino , dan.j.williams@intel.com, broonie@kernel.org, Masami Hiramatsu , LKML , Andrew Morton , Andrey Konovalov , qcai@redhat.com, ylal@codeaurora.org, vinmenon@codeaurora.org, kasan-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Michan, We would still need config option so that we can reduce the > memory consumption on low ram devices using config. > > Alex, On this, > "I also suppose device vendors may prefer setting a fixed (maybe > non-default) hash size for low-memory devices rather than letting the > admins increase it." > I see kernel param swiotlb does similar thing i.e; '0' to disable and > set a value to configure size. > > I am fine with either of the approaches, > > 1. I can split this patch into two > i) A bool variable to enable/disable stack depot. > ii) A config for the size. I still believe this is a more appropriate solution. Thanks in advance!