From: "\"Zhou, Wenjian/周文剑\"" <zhouwj-fnst@cn.fujitsu.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: <linux-kernel@vger.kernel.org>, <akpm@linux-foundation.org>,
<dyoung@redhat.com>, <bhe@redhat.com>, <vgoyal@redhat.com>,
<kexec@lists.infradead.org>, <linux-doc@vger.kernel.org>,
<xlpang@redhat.com>, <joe@perches.com>
Subject: Re: [PATCH v9 1/2] Documentation: kdump: remind user of nr_cpus
Date: Mon, 22 Aug 2016 09:14:08 +0800 [thread overview]
Message-ID: <57BA51E0.1070902@cn.fujitsu.com> (raw)
In-Reply-To: <20160819095740.1cccc073@lwn.net>
On 08/19/2016 11:57 PM, Jonathan Corbet wrote:
> On Fri, 19 Aug 2016 08:33:21 +0800
> "Zhou, Wenjian/周文剑" <zhouwj-fnst@cn.fujitsu.com> wrote:
>
>> I was also confused by maxcpus and nr_cpus before writing this patch.
>> I think it is a good choice to describe it in kernel-parameters.txt.
>>
>> Then, only two things need to be done I think.
>> One is move the above description to maxcpus= in kernel-parameters.txt.
>> And the other is replace maxcpus with maxcpus/nr_cpus in kdump.txt.
>>
>> How do you think?
>
> That is not quite what I had in mind, sorry. What I would really like to
> see in kernel-parameters.txt is an explanation of how those two parameters
> differ - what do they do differently and how should a user choose one over
> the other? What we have now offers no guidance in that matter.
>
I thought about it. I think user may not need this.
What user really want to know is how to choose.
And it is also not a hard work. If nr_cpus is not supported by the ARCH, use maxcpus.
Otherwise, nr_cpus. The reason why maxcpus still exists is nr_cpus can't be supported
by some ARCHes.
I think it may be why the author didn't write too much description of it.
> I suspect that may be a bit more than you had signed up to do. As an
> intermediate step, how about this: rather than tacking on those lines in
> kdump.txt, rewrite that paragraph to simply say what the reader should
> use. If nr_cpus is good for everybody, just say that, but your previous
> patch suggests that the situation isn't quite that simple?
>
Actually, if nr_cpus always usable, there won't be these discussions.
--
Thanks
Zhou
next prev parent reply other threads:[~2016-08-22 1:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 3:11 [PATCH v9 0/2] update the doc of kdump Zhou Wenjian
2016-08-18 3:11 ` [PATCH v9 1/2] Documentation: kdump: remind user of nr_cpus Zhou Wenjian
2016-08-18 17:18 ` Jonathan Corbet
2016-08-19 0:33 ` "Zhou, Wenjian/周文剑"
2016-08-19 15:57 ` Jonathan Corbet
2016-08-22 1:14 ` "Zhou, Wenjian/周文剑" [this message]
2016-08-24 5:06 ` Baoquan He
2016-08-25 19:10 ` Jonathan Corbet
2016-08-27 0:35 ` Baoquan He
2016-08-26 0:45 ` "Zhou, Wenjian/周文剑"
2016-08-27 0:38 ` Baoquan He
2016-08-18 3:11 ` [PATCH v9 2/2] Documentation: kdump: add description of enable multi-cpus support Zhou Wenjian
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=57BA51E0.1070902@cn.fujitsu.com \
--to=zhouwj-fnst@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=bhe@redhat.com \
--cc=corbet@lwn.net \
--cc=dyoung@redhat.com \
--cc=joe@perches.com \
--cc=kexec@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@redhat.com \
--cc=xlpang@redhat.com \
/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