Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1200287
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Hugh Dickins <hughd@google.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations |
| Date | Tue, 04 Aug 2015 23:40:02 +0200 |
| Message-ID | <pTS6e-68o-13@gated-at.bofh.it> (permalink) |
| References | <pH5uh-5GN-15@gated-at.bofh.it> <pHjxg-1mP-1@gated-at.bofh.it> <pHqp4-5KM-13@gated-at.bofh.it> <pHNEZ-3Sy-3@gated-at.bofh.it> <pHOrn-4pb-1@gated-at.bofh.it> <pTE3f-2tK-7@gated-at.bofh.it> <pTHaO-6WK-5@gated-at.bofh.it> |
| X-Original-To | Michal Hocko <mhocko@kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=IJssKaXis8QVnW38KLeInsbV6v0PqC9lX0j8R/trK1c=; b=MNNFLUkx6ZwX5TO+xYe1lyi83+/Eo8EtGyu0863hVyls5BESRGZ3TkCsUml9Jhb77h LYnSFWO01ZG5og8Y8D/bLTuS0q5aVcsErf+wqPwbELArGEBX9XxdEzAzJL1NYy50iuIw /Yh/kJJgEXHYR35Yds2JLPQPNcP7f1NHFuV5AMR+9xfYOCb//mVxc7IIuv0CYNo1etaZ mMsOFgdOqOB4eS3uEHvHuuJldlPfZmm6mj14C2uPV95+hELcwd7EcYJ+nuI6rJKn6z55 eIdFAFQyLbIsGzkRV7j/1KGrFU09FCdszhuYJvCUnlB3IQiznnldbTIphYdhixPBAaZf j+Qg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=IJssKaXis8QVnW38KLeInsbV6v0PqC9lX0j8R/trK1c=; b=MsHJLtQuHMD4IidE7CDy0rg1JhS9GKpeE9lyOMiPY7YjeK6VPjlC9bori0OCfn58yn H82fNDRcS58QKMcQSc0otfYxdEBDr/SCv5Lql3YxbSX5r59zmrKUAIoWqtiTw2nFh+te 3ulUykdhnn4BRApwIVH7TSgdKQLn3/ASZCMpMHUKr6ELq7B+gUj5+hy3fSkbpPLvV8SD ie7vLm4hW0bTbxLi1Uas8WSHjmSrrQWTBswhb1EOtuVbGnZ0TsQA7JeBV3N5R21Ws8g+ TW0OuP8iPKvFh7GJzrq+CNbfyfN1GO3ieeydW5DFRJznV5CA81NHwXv/XUAtzfQig0M/ 8N8Q== |
| X-Gm-Message-State | ALoCoQmVq2mL4L2o2lrFT4qgENFe8LnBIin81uKWJSUap23XDlpxpKVBOuALSJUd0JKSB2Ki/USO |
| X-Received | by 10.70.20.5 with SMTP id j5mr12170928pde.40.1438724018220; Tue, 04 Aug 2015 14:33:38 -0700 (PDT) |
| X-X-Sender | hugh@eggly.anvils |
| User-Agent | Alpine 2.11 (LSU 23 2013-08-11) |
| MIME-Version | 1.0 |
| Content-Type | TEXT/PLAIN; charset=US-ASCII |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 70 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Hugh Dickins <hughd@google.com>, Linus Torvalds <torvalds@linux-foundation.org>, Theodore Ts'o <tytso@mit.edu>, Nikolay Borisov <kernel@kyup.com>, Johannes Weiner <hannes@cmpxchg.org>, Andrew Morton <akpm@linux-foundation.org>, Dave Chinner <david@fromorbit.com>, Marian Marinov <mm@1h.com>, linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>, linux-ext4@vger.kernel.org |
| X-Original-Date | Tue, 4 Aug 2015 14:32:33 -0700 (PDT) |
| X-Original-Message-ID | <alpine.LSU.2.11.1508041414170.31462@eggly.anvils> |
| X-Original-References | <1435677437-16717-1-git-send-email-mhocko@suse.cz> <20150701061731.GB6286@dhcp22.suse.cz> <20150701133715.GA6287@dhcp22.suse.cz> <20150702142551.GB9456@thunk.org> <20150702151321.GE12547@dhcp22.suse.cz> <alpine.LSU.2.11.1508032227050.5070@eggly.anvils> <20150804095158.GE18509@dhcp22.suse.cz> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1200287 |
Show key headers only | View raw
On Tue, 4 Aug 2015, Michal Hocko wrote: > On Mon 03-08-15 23:32:00, Hugh Dickins wrote: > [...] > > But I have modified it a little, I don't think you'll mind. As you > > suggested yourself, I actually prefer to test may_enter_fs there, rather > > than __GFP_FS: not a big deal, I certainly wouldn't want to delay the > > fix if someone thinks differently; but I tend to feel that may_enter_fs > > is what we already use for such decisions there, so better to use it. > > (And the SwapCache case immune to ext4 or xfs IO submission pattern.) > > I am not opposed. This is closer to what we had before. Yes, it is what you had there before. > > [...] > > (I was tempted to add in > > my unlock_page there, that we discussed once before: but again thought > > it better to minimize the fix - it is "selfish" not to unlock_page, > > but I think that anything heading for deadlock on the locked page would > > in other circumstances be heading for deadlock on the writeback page - > > I've never found that change critical.) > > I agree. It would deserve a separate patch. I'll send one day, but not for v4.2. > > > And I've done quite a bit of testing. The loads that hung at the > > weekend have been running nicely for 24 hours now, no problem with the > > writeback hang and no problem with the dcache ENOTDIR issue. Though > > I've no idea of what recent VM change turned this into a hot issue. > > > > And more testing on the history of it, considering your stable 3.6+ > > designation that I wasn't satisfied with. Getting out that USB stick > > again, I find that 3.6, 3.7 and 3.8 all OOM if their __GFP_IO test > > is updated to a may_enter_fs test; but something happened in 3.9 > > to make it and subsequent releases safe with the may_enter_fs test. > > Interesting. I would have guessed that 3.12 would make a difference (as > mentioned in the changelog). Why would 3.9 make a difference is not > entirely clear to me. Nor to me. You were right to single out 3.12 in the changelog, but clearly some earlier change in 3.9 altered the delicate balance on this. It was unambiguous, so a bisection between 3.8 and 3.9 should easily find it. Yet, somehow, that's not very high on my TODO list... It would be more interesting to find why this deadlock has become so much more visible just now. But that would be a difficult bisection, taking many days, of restarts after wrong decisions. Again, not something I'll get into. > > > You can certainly argue that the remote chance of a deadlock is > > worse than the fair chance of a spurious OOM; but if you insist > > on 3.6+, then I think it would have to go back even further, > > because we marked that commit for stable itself. I suggest 3.9+. > > Agreed and thanks! Thanks so much for getting back to us on it so very promptly. I'll detach the patch, unchanged, and send direct to Linus now. Hugh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Hugh Dickins <hughd@google.com> - 2015-08-04 08:40 +0200
Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Michal Hocko <mhocko@kernel.org> - 2015-08-04 12:00 +0200
Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Hugh Dickins <hughd@google.com> - 2015-08-04 23:40 +0200
[PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Hugh Dickins <hughd@google.com> - 2015-08-04 23:40 +0200
Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Nikolay Borisov <kernel@kyup.com> - 2015-08-07 10:00 +0200
Re: [PATCH] mm, vmscan: Do not wait for page writeback for GFP_NOFS allocations Hugh Dickins <hughd@google.com> - 2015-08-13 04:20 +0200
csiph-web