From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f70.google.com (mail-oi0-f70.google.com [209.85.218.70]) by kanga.kvack.org (Postfix) with ESMTP id 1132528070C for ; Tue, 22 Aug 2017 16:59:02 -0400 (EDT) Received: by mail-oi0-f70.google.com with SMTP id a79so8986455oii.7 for ; Tue, 22 Aug 2017 13:59:02 -0700 (PDT) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com. [2607:f8b0:4003:c06::22d]) by mx.google.com with ESMTPS id m203si2602914oib.216.2017.08.22.13.59.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 13:59:01 -0700 (PDT) Received: by mail-oi0-x22d.google.com with SMTP id r200so62388362oie.2 for ; Tue, 22 Aug 2017 13:59:01 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170822205316.GS32112@worktop.programming.kicks-ass.net> References: <37D7C6CF3E00A74B8858931C1DB2F07753787AE4@SHSMSX103.ccr.corp.intel.com> <20170818185455.qol3st2nynfa47yc@techsingularity.net> <20170821183234.kzennaaw2zt2rbwz@techsingularity.net> <37D7C6CF3E00A74B8858931C1DB2F07753788B58@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0775378A24A@SHSMSX103.ccr.corp.intel.com> <37D7C6CF3E00A74B8858931C1DB2F0775378A377@SHSMSX103.ccr.corp.intel.com> <20170822205316.GS32112@worktop.programming.kicks-ass.net> From: Linus Torvalds Date: Tue, 22 Aug 2017 13:58:59 -0700 Message-ID: Subject: Re: [PATCH 1/2] sched/wait: Break up long wake list walk Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: "Liang, Kan" , Mel Gorman , Mel Gorman , "Kirill A. Shutemov" , Tim Chen , Ingo Molnar , Andi Kleen , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List On Tue, Aug 22, 2017 at 1:53 PM, Peter Zijlstra wrote: > > So _the_ problem with yield() is when you hit this with a RT task it > will busy spin and possibly not allow the task that actually has the > lock to make progress at all. I thought we had explicitly defined yield() to not do that. But I guess we could make this yielding behavior depend on a few more heuristics. So do the yield only when there is contention, and when it's a non-RT task. Linus -- 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: email@kvack.org