Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp134607ybi; Tue, 2 Jul 2019 17:43:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxviszIOphgrtdreXLmUSK0UOXiJePyKnJfKizxJDbDUB6HygM8BR3vkAmIZHAUh/UO2+mU X-Received: by 2002:a17:90a:3270:: with SMTP id k103mr8481207pjb.54.1562114595957; Tue, 02 Jul 2019 17:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562114595; cv=none; d=google.com; s=arc-20160816; b=jOWmkAkIGwPQD13vi6WwyLhVRnwp1utCE3M60JQqhhGV+xKBKDRlMRhrmJkiWPLKjr HxJYdPXNFW5wisJh0csnVazxUhMEpYe+OYUvuDUsT0TXkYJhhm9QyIeEG7oJwq84nNjH idhCcL2ZMNEA3HMWNp8/DzL2Wem1aBRmAOhMEeczT+BMKpm2vSqJ8PFbgNEk9ErU0o06 SqFmjVpR0mqKtrrwImsesu+TtBtV6uJQ7lp2SChlKcWd9+Zn3pbrMPjJLUUdyelpodP5 KN3EE4R/4J0OHDQJ82L/hr6qfpoABygJrgUb7YwS/OqNpJPYCM/zHNbA3ZyXwmLQODoL X43A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0AGSyMvf0zexOMokX4EpC11/R6d7poyoJeo3TShyztM=; b=whQF67TyDL3stbgnoVAy/mz84ZWDRDEuKNZPMNp4uFXkTlN4UFz8eRTIYRvMLvR91J re0DS9/FzUKna27mfoWsVKB7LnwrCLeFMAwGUKlXgKgx1ZNxLz6f0ok846bRU/K064Aq Eu3TmIBblCWA+nYXOp6fdDGfYHDLzmNwdqpJPEbbcsYJi/cgLkXwYiJMhIi43BgLzXsR c3XIpGHESu6fWXHUvkj76m1DbVBV5h20iolNd3/uN36T+A4Me0xT0QZVyilro1Ir5PL9 lCysggUNc7HlmBUuNtwW5DoG+jMW/jhRNAaJvURKhhR8i9bAPSefWYJCGBJraIBhe6RR IZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QWyJjuDY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si348926pfo.37.2019.07.02.17.42.59; Tue, 02 Jul 2019 17:43:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=QWyJjuDY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727271AbfGCAml (ORCPT + 99 others); Tue, 2 Jul 2019 20:42:41 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36702 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbfGCAml (ORCPT ); Tue, 2 Jul 2019 20:42:41 -0400 Received: by mail-ot1-f66.google.com with SMTP id r6so506873oti.3 for ; Tue, 02 Jul 2019 17:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0AGSyMvf0zexOMokX4EpC11/R6d7poyoJeo3TShyztM=; b=QWyJjuDYJNyB44jlcWkT2Do84tRKoTgiiRWbe8c+iRWLpEQXaFEgT0w9ZSZH2Cs9Tf NgpgZ8pPPSpSGIZa0MJeB+dtoragQ2H4oPc7bonqaiiNZhCo2ZOJ7wWuogIDhfx9e4s/ ZfZgI41C2VLSea49134z094gXVVtjlcxZP9bHzuIY6XmQJlEzTwh4QKqYp1GvIhzTBqP C0rfgeI6tqW1a8lFZkStsJB+FEkRAIaU3kaEYBQPQGtfGa8CabE6/0FtfDI1lC7Xc0F+ 6+LCGjufHIildbzfwK5DH2jwZiLcBGxTCOHmP+FN42+bD0bPJuwOEVfltIw786Xw5ebf Gk3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0AGSyMvf0zexOMokX4EpC11/R6d7poyoJeo3TShyztM=; b=W0uXxpdT0MiHTijrpMKCfM9ihAbVhgXfhVnbIfOpUzrCN48ZL93lXsF/Wdvneh5fnJ hBwOrFLStv9xXsv3oIBLtPsWy2xWu5XyXfjy9WEepnpAKKvSn+EINf93N2dJmhufiOrv D89VeOQNw2+Lcj/iVhlEwk+cCeZ0UILlnfzl6ZZMLTv/Skj6C1CF0DOCp1rdcAQwkxp9 V6IcFkVzKKWhawmQNaMOuwNnpykEIOr98Rv5BV+cl4TkvVcnxKRSRZUJsYKzYDb5i+EI kibXenSHx7zVoNyw3X/ahhPtMxMXshZmEk4PUoZO4w87M30APsuQlO09kiJpVSiuzfPz TFeQ== X-Gm-Message-State: APjAAAVtkpz+Es9WSNIbV0RRyrQn0hSH/o65QYIO8d+UGKBAOYTgnfKN qEwP/24K4mz48F3aHgV/QM3f47aaK8uMUBjJCPiG3g== X-Received: by 2002:a9d:7a8b:: with SMTP id l11mr25111745otn.247.1562114560450; Tue, 02 Jul 2019 17:42:40 -0700 (PDT) MIME-Version: 1.0 References: <20190627195948.GB4286@bombadil.infradead.org> <20190629160336.GB1180@bombadil.infradead.org> <20190630152324.GA15900@bombadil.infradead.org> <20190702033410.GB1729@bombadil.infradead.org> In-Reply-To: From: Dan Williams Date: Tue, 2 Jul 2019 17:42:28 -0700 Message-ID: Subject: Re: [PATCH] filesystem-dax: Disable PMD support To: Boaz Harrosh Cc: Matthew Wilcox , Seema Pandit , linux-nvdimm , Linux Kernel Mailing List , stable , Robert Barror , linux-fsdevel , Jan Kara Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 2, 2019 at 5:23 PM Boaz Harrosh wrote: > > On 02/07/2019 18:37, Dan Williams wrote: > <> > > > > I'd be inclined to do the brute force fix of not trying to get fancy > > with separate PTE/PMD waitqueues and then follow on with a more clever > > performance enhancement later. Thoughts about that? > > > > Sir Dan > > I do not understand how separate waitqueues are any performance enhancement? > The all point of the waitqueues is that there is enough of them and the hash > function does a good radomization spread to effectively grab a single locker > per waitqueue unless the system is very contended and waitqueues are shared. Right, the fix in question limits the input to the hash calculation by masking the input to always be 2MB aligned. > Which is good because it means you effectively need a back pressure to the app. > (Because pmem IO is mostly CPU bound with no long term sleeps I do not think > you will ever get to that situation) > > So the way I understand it having twice as many waitqueues serving two types > will be better performance over all then, segregating the types each with half > the number of queues. Yes, but the trick is how to manage cases where someone waiting on one type needs to be woken up by an event on the other. So all I'm saying it lets live with more hash collisions until we can figure out a race free way to better scale waitqueue usage. > > (Regardless of the above problem of where the segregation is not race clean) > > Thanks > Boaz