linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: -Gary- <me@garybgenett.net>
To: Qian Cai <cai@lca.pw>
Cc: Hugh Dickins <hughd@google.com>, linux-mm@kvack.org
Subject: Re: [PATCH] shmem: add shmem_size option, set filesystem size
Date: Tue, 8 Oct 2019 13:14:15 -0700	[thread overview]
Message-ID: <20191008201414.GC22291@spider> (raw)
In-Reply-To: <F83C4C53-D20B-4F0D-8286-54E11F4E1F64@lca.pw>

> > At the least, it should be a "#define", or something.  Right now it is a hard-coded magic token.
>
> I am not sure if it worth the complication. Right now, you have the choice of resizing shmem like every body else or increasing your system memory a bit.
>
> If there are more compiling reasons to bump the limit, it is probably more appropriate to make it the default to use something like 75% memory if there isn’t much side-effect.

Thank you again, Qian.  I appreciate the conversation and coaching!

That makes perfect sense.  I agree with the effort to keep things tidy, efficient and supportable.  With your blessing, I will submit a separate patch that only adds a configuration option to set the number of pages, and does not perform any additional math or steps other than reporting the value.  This will at least make it a defined value rather than a magic token, and will allow any expert users who need it to change the value.

I'm very reluctant, if not outright opposed, to changing the default, regardless of how compelling the case.  The possible side-effects of that change in behavior are unforeseen, and the scope of testing required is infeasible.  I sense that you agree with this.

I hope my subsequent patch is low-impact enough to be accepted.

It means a lot that you took the time to review and comment on my work.  I do greatly appreciate it.  This was my first kernel patch submission, and you made it a good experience.  <^)

-- Gary


      reply	other threads:[~2019-10-08 20:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-07 22:32 Gary B. Genett
2019-10-07 22:50 ` Qian Cai
2019-10-08  1:15   ` -Gary-
2019-10-08  3:13     ` Qian Cai
2019-10-08 20:14       ` -Gary- [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191008201414.GC22291@spider \
    --to=me@garybgenett.net \
    --cc=cai@lca.pw \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox