From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f197.google.com (mail-io0-f197.google.com [209.85.223.197]) by kanga.kvack.org (Postfix) with ESMTP id 71A3E28070C for ; Tue, 22 Aug 2017 15:08:38 -0400 (EDT) Received: by mail-io0-f197.google.com with SMTP id g33so564078ioj.2 for ; Tue, 22 Aug 2017 12:08:38 -0700 (PDT) Received: from merlin.infradead.org (merlin.infradead.org. [2001:8b0:10b:1231::1]) by mx.google.com with ESMTPS id o73si15415733iod.170.2017.08.22.12.08.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Aug 2017 12:08:37 -0700 (PDT) Date: Tue, 22 Aug 2017 21:08:28 +0200 From: Peter Zijlstra Subject: Re: [PATCH 1/2] sched/wait: Break up long wake list walk Message-ID: <20170822190828.GO32112@worktop.programming.kicks-ass.net> References: <37D7C6CF3E00A74B8858931C1DB2F077537879BB@SHSMSX103.ccr.corp.intel.com> <20170818144622.oabozle26hasg5yo@techsingularity.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds 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 11:19:12AM -0700, Linus Torvalds wrote: > And since everybody touches it, as a result everybody eventually > thinks that page should be migrated to their NUMA node. So that migration stuff has a filter on, we need two consecutive numa faults from the same page_cpupid 'hash', see should_numa_migrate_memory(). And since this appears to be anonymous memory (no THP) this is all a single address space. However, we don't appear to invalidate TLBs when we upgrade the PTE protection bits (not strictly required of course), so we can have multiple CPUs trip over the same 'old' NUMA PTE. Still, generating such a migration storm would be fairly tricky I think. -- 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