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 X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E482ECE58D for ; Wed, 9 Oct 2019 11:12:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 184C220659 for ; Wed, 9 Oct 2019 11:12:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lca.pw header.i=@lca.pw header.b="Jrbiev7v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 184C220659 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lca.pw Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 80D4C8E0005; Wed, 9 Oct 2019 07:12:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7BD988E0003; Wed, 9 Oct 2019 07:12:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D3F18E0005; Wed, 9 Oct 2019 07:12:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0125.hostedemail.com [216.40.44.125]) by kanga.kvack.org (Postfix) with ESMTP id 4DA728E0003 for ; Wed, 9 Oct 2019 07:12:10 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id EE977824CA32 for ; Wed, 9 Oct 2019 11:12:09 +0000 (UTC) X-FDA: 76023981978.11.chin54_4d0e2b56d2e59 X-HE-Tag: chin54_4d0e2b56d2e59 X-Filterd-Recvd-Size: 4097 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by imf01.hostedemail.com (Postfix) with ESMTP for ; Wed, 9 Oct 2019 11:12:09 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id c21so2721948qtj.12 for ; Wed, 09 Oct 2019 04:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=O6afdsGpgglQs43vKmiFE25O14wPYXF56otQl9krprk=; b=Jrbiev7v4TXH3jMtacuqEZNvZ2KsxeyvIIR8glMetRsNjZOstxYG8HaKbRZiL92sEl GwPAP7i+MvLC2zT8/gGEDwtgELQAYiUOqUUUr+QFe9o1wcrzVU0iXZzqzsnsJvinWyHg wL6ST+dTf/+P9f/XaV+D/6QMV5AtwKaZctO+CXUUYSqWwhDJguMrDC4e0MgMHxve5R/n H2V+jOer3PXU8YBfdxJVhs1Ajcg96RMUzwD0/yqb8rh40j14to2xSpGl6tKyid7yxDX/ AiF2Q8hXzXBYsUDXlpAwEFrf7yBMXz1arRl+3A02xeQG1lAKQYVSzwWfa5398e7dCNf1 aQIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=O6afdsGpgglQs43vKmiFE25O14wPYXF56otQl9krprk=; b=KrLsHvCPrxAqnZO2IfnXka+Chku3FA9tZayQTKSymcfNYKkvghgAG3Y30G6vfOzwwC WYbLasQD5hplerkzkVhdPOe/lH0UIrBuLJFH5FvcJVTR2eu0CSTeORhxL2CIBjFOrFSw bhiznB5EJ4dokk7J+jJ1KoXcxDIjioggmvsk9TFJ0kQnWUrjCD5g+pMqGxU3H0S6NPyr ldJL+VYj55wmgEagclxDINBOn2nqv8WLjMJaQ44psbu4O6xAnZgy+2e0/3mmvHFSe6MN fgIyLcRxmRVOxWKJOoeapKszhsfT64WGG/RCV+2CbNH4FixC/XJ66YkmwsMaYbPhF6Ox W1SQ== X-Gm-Message-State: APjAAAUAVyEREBDO8WHgTv5Z40aY1C6pjk6+k8u/ZnmRSSys+Bw7cNMy hhOksvGq5za9U3NQ5W+i8URzvg== X-Google-Smtp-Source: APXvYqxxPBRKrh+09c9U4ESXSqUzjvv0C2BN3l2k7YfCIDBd0povJn7/qfBPOTv1QX2JKwL0MYDoCA== X-Received: by 2002:a0c:eb11:: with SMTP id j17mr2985162qvp.73.1570619528572; Wed, 09 Oct 2019 04:12:08 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id c131sm781073qke.24.2019.10.09.04.12.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Oct 2019 04:12:07 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] shmem: add shmem_size option for full filesystem Date: Wed, 9 Oct 2019 07:12:06 -0400 Message-Id: References: <20191008201710.GA21892@spider> Cc: Hugh Dickins , linux-mm@kvack.org In-Reply-To: <20191008201710.GA21892@spider> To: "Gary B. Genett" X-Mailer: iPhone Mail (17A860) X-Bogosity: Ham, tests=bogofilter, spamicity=0.015298, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: > On Oct 8, 2019, at 4:17 PM, Gary B. Genett wrote: >=20 > Adds a kernel configuration option to specify the size of the shmem > filesystem. It is currently hard-coded to 50% of memory. Users should > have the option to set this value as they see fit. >=20 > A specific case where this would be necessary is if the initramfs were > larger than half of the memory, such as a 2.5GB "live" filesystem on > a system with 4GB of memory. Without this option, this causes a kernel > panic. With this option, the user may specify the number of pages of > memory they need for their root filesystem. >=20 > This patch creates the SHMEM_SIZE configuration option, which is > specified as the number of memory pages to use for the shmem > filesystem. The default remains unchanged. This patch has no impact > unless the values are changed. >=20 > The option is marked as expert, and the help text is clear that it > should only be set if the user knows what they are doing. Hide it under the EXPERT does not mean the bar is lower to justify when intr= oduced a new config option. What=E2=80=99s the benefits of this vs squashfs/= resize?=