linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yafang Shao <laoar.shao@gmail.com>
To: Michal Hocko <mhocko@suse.com>
Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
	Andrew Morton <akpm@linux-foundation.org>,
	Jan Kara <jack@suse.cz>, Linux MM <linux-mm@kvack.org>,
	fcicq@fcicq.net
Subject: Re: [PATCH] mm: print a warning once the vm dirtiness settings is illogical
Date: Mon, 27 Nov 2017 17:08:50 +0800	[thread overview]
Message-ID: <CALOAHbDVu=MSJs2sF=fjQgFjsytbpKyD1RuyX4v9F9o1Gm9LKg@mail.gmail.com> (raw)
In-Reply-To: <20171127090414.ayp4s5bmizhetmis@dhcp22.suse.cz>

2017-11-27 17:04 GMT+08:00 Michal Hocko <mhocko@suse.com>:
> On Mon 27-11-17 16:54:39, Yafang Shao wrote:
>> 2017-11-27 16:52 GMT+08:00 Michal Hocko <mhocko@suse.com>:
>> > On Mon 27-11-17 16:49:34, Yafang Shao wrote:
>> >> 2017-11-27 16:37 GMT+08:00 Michal Hocko <mhocko@suse.com>:
>> >> > On Mon 27-11-17 16:32:42, Yafang Shao wrote:
>> >> >> 2017-11-27 16:29 GMT+08:00 Yafang Shao <laoar.shao@gmail.com>:
>> > [...]
>> >> >> > It will help us to find the error if we don't change these values like this.
>> >> >> >
>> >> >>
>> >> >> And actually it help us find another issue that when availble_memroy
>> >> >> is too small, the thresh and bg_thresh will be 0, that's absolutely
>> >> >> wrong.
>> >> >
>> >> > Why is it wrong?
>> >> > --
>> >>
>> >> For example, the writeback threads will be wakeup on every write.
>> >> I don't think it is meaningful to wakeup the writeback thread when the
>> >> dirty pages is very low.
>> >
>> > Well, this is a corner situation when we are out of memory basically.
>> > Doing a wake up on the flusher is the least of your problem. So _why_
>> > exactly is this is problem?
>> > --
>>
>> Are you _sure_ this is the least of the problem on this corner situation ?
>
> I am not _sure_ and that is why I'm _asking_ _you_ and you seem to come
> up with reasons which don't make me really convinced.
>
> If we wake up flusher which have nothing to do they will simply back
> off. That is what have to do anyway because dirty data can be truncated
> at any time, right?
>

Under this condition it is better not to wakeup the bdi writeback.
That's why I return the min value 100 to avoid doing this.
Maybe 100 is not enough. It should be geater IMHO.

>> Why wakeup the bdi writeback ? why not just kill the program and flush
>> the date into the Disk when we do oom ?
>
> I really do not see how this is related to the discussion here. OOM
> killer doesn't flush anything. It kills a task and that is it. Moreover
> we do not flush any data from direct context at all. We simply rely on
> flushers to do the work.
> --
That's my fault.
Just killing the program is enough.

Thanks
Yafang

--
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>

  reply	other threads:[~2017-11-27  9:08 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28  9:54 [PATCH] mm: print a warning once the vm dirtiness settings is illogical Yafang Shao
2017-11-25 16:05 ` Tetsuo Handa
2017-11-26  2:24   ` Yafang Shao
2017-11-26  2:42     ` Tetsuo Handa
2017-11-26  4:32       ` Yafang Shao
2017-11-26  8:03         ` Tetsuo Handa
2017-11-26  8:27           ` Yafang Shao
2017-11-26  8:46           ` Yafang Shao
2017-11-26 10:38             ` Tetsuo Handa
2017-11-27  8:06               ` Yafang Shao
2017-11-27  8:21                 ` Michal Hocko
2017-11-27  8:29                   ` Yafang Shao
2017-11-27  8:32                     ` Yafang Shao
2017-11-27  8:37                       ` Michal Hocko
2017-11-27  8:49                         ` Yafang Shao
2017-11-27  8:52                           ` Michal Hocko
2017-11-27  8:54                             ` Yafang Shao
2017-11-27  9:04                               ` Michal Hocko
2017-11-27  9:08                                 ` Yafang Shao [this message]
2017-11-27  8:34                     ` Michal Hocko
2017-11-27  9:19   ` [PATCH] Revert "mm/page-writeback.c: print a warning if the vm dirtiness settings are illogical" (was: Re: [PATCH] mm: print a warning once the vm dirtiness settings is illogical) Michal Hocko
2017-11-28  3:11     ` Yafang Shao
2017-11-28  6:12       ` Yafang Shao
2017-11-28  7:45         ` Michal Hocko
2017-11-28  7:52           ` Yafang Shao
2017-11-28  9:43             ` Yafang Shao
2017-11-28  9:45             ` Michal Hocko
2017-11-28 10:09             ` Jan Kara
2017-11-28 10:16               ` Yafang Shao
2017-11-28 10:25       ` Jan Kara
2017-11-28 10:33         ` Yafang Shao
2017-11-28 10:41           ` Jan Kara
2017-11-28 10:44             ` Yafang Shao
2017-11-28 10:37     ` Jan Kara
2017-11-28 10:48       ` Michal Hocko
2017-11-28 11:05         ` Yafang Shao
2017-11-28 11:54           ` Michal Hocko

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='CALOAHbDVu=MSJs2sF=fjQgFjsytbpKyD1RuyX4v9F9o1Gm9LKg@mail.gmail.com' \
    --to=laoar.shao@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=fcicq@fcicq.net \
    --cc=jack@suse.cz \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@suse.com \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    /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;
as well as URLs for NNTP newsgroup(s).