Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752444AbdHRUKH (ORCPT ); Fri, 18 Aug 2017 16:10:07 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:38162 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751688AbdHRUKF (ORCPT ); Fri, 18 Aug 2017 16:10:05 -0400 MIME-Version: 1.0 In-Reply-To: <20170818195858.GP28715@tassilo.jf.intel.com> References: <37D7C6CF3E00A74B8858931C1DB2F0775378761B@SHSMSX103.ccr.corp.intel.com> <20170818122339.24grcbzyhnzmr4qw@techsingularity.net> <37D7C6CF3E00A74B8858931C1DB2F077537879BB@SHSMSX103.ccr.corp.intel.com> <20170818144622.oabozle26hasg5yo@techsingularity.net> <37D7C6CF3E00A74B8858931C1DB2F07753787AE4@SHSMSX103.ccr.corp.intel.com> <20170818185455.qol3st2nynfa47yc@techsingularity.net> <20170818195858.GP28715@tassilo.jf.intel.com> From: Linus Torvalds Date: Fri, 18 Aug 2017 13:10:04 -0700 X-Google-Sender-Auth: UmX9YWXvgk0X1GRLFrw-2Wh6-2M Message-ID: Subject: Re: [PATCH 1/2] sched/wait: Break up long wake list walk To: Andi Kleen Cc: Mel Gorman , "Liang, Kan" , Mel Gorman , "Kirill A. Shutemov" , Tim Chen , Peter Zijlstra , Ingo Molnar , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 19 On Fri, Aug 18, 2017 at 12:58 PM, Andi Kleen wrote: >> which is hacky, but there's a rationale for it: >> >> (a) avoid the crazy long wait queues ;) >> >> (b) we know that migration is *supposed* to be CPU-bound (not IO >> bound), so yielding the CPU and retrying may just be the right thing >> to do. > > So this would degenerate into a spin when the contention is with > other CPUs? > > But then if we guarantee that migration has flat latency curve > and no long tail it may be reasonable. Honestly, right now I'd say it's more of a "poath meant purely for testing with some weak-ass excuse for why it might not be broken". Linus