From: Yafang Shao <laoar.shao@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH v4] mm: introduce validity check on vm dirtiness settings
Date: Thu, 28 Sep 2017 09:27:11 +0800 [thread overview]
Message-ID: <CALOAHbDMTps0E20+TLH-1uwcHxbh0EVcdz0O9NaqZ++5e+5T6Q@mail.gmail.com> (raw)
In-Reply-To: <20170927123330.90dadc97988326b3c594db00@linux-foundation.org>
Got it.
I will submit a new patch then.
Thanks
Yafang
2017-09-28 3:33 GMT+08:00 Andrew Morton <akpm@linux-foundation.org>:
> On Wed, 27 Sep 2017 12:14:10 +0800 Yafang Shao <laoar.shao@gmail.com> wrote:
>
>> 2017-09-27 10:54 GMT+08:00 Andrew Morton <akpm@linux-foundation.org>:
>> > On Wed, 27 Sep 2017 09:38:21 +0800 Yafang Shao <laoar.shao@gmail.com> wrote:
>> >
>> >> > And existing scripts which do not do this will cease to work correctly,
>> >> > no?
>> >> >
>> >>
>> >> The existing scritpts won't work correctly. That's also what I have
>> >> worried before.
>> >>
>> >> But under this condition, there's a error message generated by "sysctl
>> >> -w" to tell them the first setting was failure.
>> >> This error message may be a reminder to them that there are some
>> >> connections between background and direct limit, and should not set
>> >> arbitrary.
>> >> May that's better. I'm not sure.
>> >
>> > Maybe we can leave the logic as-is and simply print a warning when an
>> > illogical state exists.
>> >
>>
>> You mean, just modified the code as bellow ?
>> in function domain_dirty_limits()
>> - if (bg_thresh >= thresh)
>> + if (bg_thresh >= thresh) {
>> + pr_warn("vm direct limit should greater than background limit.\n");
>> bg_thresh = thresh / 2;
>> + }
>
> Something like that.
>
>> will this generate lots of log ?
>
> Well, it's one message per write to a procfs file, when that write
> causes an errant state. Sounds manageable? It would be nice if we
> could somehow help the operator to figure out that writing in a
> different order will prevent the incorrect state (and hence the
> warning).
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-09-28 1:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 23:12 Yafang Shao
2017-09-26 23:59 ` Andrew Morton
2017-09-27 1:38 ` Yafang Shao
2017-09-27 2:54 ` Andrew Morton
2017-09-27 4:14 ` Yafang Shao
2017-09-27 19:33 ` Andrew Morton
2017-09-28 1:27 ` Yafang Shao [this message]
2017-09-29 1:19 ` [lkp-robot] [mm] d33dff8a27: autotest.linus_stress.fail kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2017-09-21 13:59 [PATCH v4] mm: introduce validity check on vm dirtiness settings Yafang Shao
2017-09-21 11:52 ` Jan Kara
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=CALOAHbDMTps0E20+TLH-1uwcHxbh0EVcdz0O9NaqZ++5e+5T6Q@mail.gmail.com \
--to=laoar.shao@gmail.com \
--cc=akpm@linux-foundation.org \
--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