From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by kanga.kvack.org (Postfix) with ESMTP id 615EB6B02B4 for ; Tue, 15 Aug 2017 15:47:55 -0400 (EDT) Received: by mail-oi0-f72.google.com with SMTP id c80so2098375oig.7 for ; Tue, 15 Aug 2017 12:47:55 -0700 (PDT) Received: from mail-oi0-x242.google.com (mail-oi0-x242.google.com. [2607:f8b0:4003:c06::242]) by mx.google.com with ESMTPS id r204si6405941oif.284.2017.08.15.12.47.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Aug 2017 12:47:54 -0700 (PDT) Received: by mail-oi0-x242.google.com with SMTP id j194so1677990oib.4 for ; Tue, 15 Aug 2017 12:47:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <84c7f26182b7f4723c0fe3b34ba912a9de92b8b7.1502758114.git.tim.c.chen@linux.intel.com> <20170815022743.GB28715@tassilo.jf.intel.com> <20170815031524.GC28715@tassilo.jf.intel.com> <0b7b6132-a374-9636-53f9-c2e1dcec230f@linux.intel.com> From: Linus Torvalds Date: Tue, 15 Aug 2017 12:47:54 -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: Tim Chen Cc: Andi Kleen , Peter Zijlstra , Ingo Molnar , Kan Liang , Andrew Morton , Johannes Weiner , Jan Kara , linux-mm , Linux Kernel Mailing List On Tue, Aug 15, 2017 at 12:41 PM, Linus Torvalds wrote: > > So if we have unnecessarily collisions because we have waiters looking > at different bits of the same page, we could just hash in the bit > number that we're waiting for too. Oh, nope, we can't do that, because we only have one "PageWaters" bit per page, and it is shared across all bits we're waiting for on that page. So collisions between different bits on the same page are inevitable, and we just need to make sure the hash table is big enough that we don't get unnecessary collisions between different pages. 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