Re: [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)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue 28-11-17 11:37:23, Jan Kara wrote:
> On Mon 27-11-17 10:19:39, Michal Hocko wrote:
> > Andrew,
> > could you simply send this to Linus. If we _really_ need something to
> > prevent misconfiguration, which I doubt to be honest, then it should be
> > thought through much better.
> 
> What's so bad about the warning? I think warning about such
> misconfiguration is not a bad thing per se. Maybe it should be ratelimited
> and certainly the condition is too loose as your example shows but in
> principle I'm not against it and e.g. making the inequality in the condition
> strict like:
> 
> 	if (unlikely(bg_thresh > thresh))
> 
> or at least
> 
> 	if (unlikely(bg_thresh >= thresh && thresh > 0))
> 
> would warn about cases where domain_dirty_limits() had to fixup bg_thresh
> manually to make writeback throttling work and avoid reclaim stalls which
> is IMHO a sane thing...

If it generates false positives then it is more harmful than useful. And
even if it doesn't, what is the point? Do we check that other related
knobs are configured properly? I do not think so, we simply rely on
admins doing sane things. Otherwise we would have a lot of warnings like
that. They would be pain to maintain and I believe the additional value
is quite dubious.
-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux