Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3311226img; Mon, 25 Mar 2019 07:51:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzCZoMHH+4XyMRqjT6+X7RNz9JfnRWne6nxoANul9TuM1DL8IEL0/5AmH9T9U/rdD6oML/ X-Received: by 2002:a65:514a:: with SMTP id g10mr24055599pgq.400.1553525494331; Mon, 25 Mar 2019 07:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553525494; cv=none; d=google.com; s=arc-20160816; b=l1OiL1+5m+c+sZnMHH5cs26FIyYxmrFYhk1t+sr3wtElJoDQp6seBd4XH3QXySLO/Z uycNDRsYGyNPPIegnsK0Am42Y1dryMXTc5eu1lV+tQxAGf94EAyWXJ8thcjseaMYgLsL ch7r9qYELrPZf0jNdm61GTctZ2lTWC5GzB4eyVY1cvdX5UQuT8z0eB/5tpNMb597xJTP thIbDigT6xVSSsrZZtWvhsTjRUhMV4TJ0WJYA84j4GIjuA23yQ2UOuLmrqO9H66HTG8/ vOZFPY4AmHEJlivQaMPZI2i8Zm8i9k2xAkNHCr+JelGwWi328rJ/rRZ8rGHCHZmEN7xq Rz1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=LgB2gc+PW7bzoHCIRb7A2nfXSzD26V52wasM1SKGnyE=; b=nm3KUCfOk70S0fwU5t9uI+rxBDVyTcIyspT2unuhVZvXOEe813ELxlovnxIi/3Z6DI wr6QDdyhWuqTgqkQk2VVeNMTGqel1k2Xy91OylWGe7b/e3wUM9xyjNshXRGsqjcPAj77 TVCL2OHpjvBsVX+JwXD/fFATg4GuTL9CHAxdifaW4UIVQ1/ta5tOzpPc/BfmzK0U3YAd xkbLvUvMm0jvUPe4BsPgEF8YFWCY+jxreP8/UXhfaZPzrvax9HVqlAc28pS/3WZLslkK QVWr08ZaRamj5kf/QPdDxcMcWSoFCmeljabNtfNUXD35NTpd0Wv4e6NedvY2bWQpKvVp ufGw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j65si9211295pge.48.2019.03.25.07.51.19; Mon, 25 Mar 2019 07:51:34 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729369AbfCYOu1 (ORCPT + 99 others); Mon, 25 Mar 2019 10:50:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:52448 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725788AbfCYOuZ (ORCPT ); Mon, 25 Mar 2019 10:50:25 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 058C5AF2F; Mon, 25 Mar 2019 14:50:23 +0000 (UTC) Date: Mon, 25 Mar 2019 15:50:23 +0100 From: Michal Hocko To: Jeff Moyer Cc: Dan Williams , Andrew Morton , =?iso-8859-1?B?Suly9G1l?= Glisse , Logan Gunthorpe , Toshi Kani , Vlastimil Babka , stable , Linux MM , linux-nvdimm , Linux Kernel Mailing List Subject: Re: [PATCH v5 00/10] mm: Sub-section memory hotplug support Message-ID: <20190325145023.GG9924@dhcp22.suse.cz> References: <155327387405.225273.9325594075351253804.stgit@dwillia2-desk3.amr.corp.intel.com> <20190322180532.GM32418@dhcp22.suse.cz> <20190325101945.GD9924@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 25-03-19 10:28:00, Jeff Moyer wrote: > Michal Hocko writes: > > >> > and I would like to know that you are > >> > not just shifting the problem to a smaller unit and a new/creative HW > >> > will force us to go even more complicated. > >> > >> HW will not do this to us. It's software that has the problem. > >> Namespace creation is unnecessarily constrained to 128MB alignment. > > > > And why is that a problem? A lack of documentation that this is a > > requirement? Something will not work with a larger alignment? Someting > > else? > > See this email for one user-visible problem: > https://lore.kernel.org/lkml/x49imxbx22d.fsf@segfault.boston.devel.redhat.com/ : # ndctl create-namespace -m fsdax -s 128m : Error: '--size=' must align to interleave-width: 6 and alignment: 2097152 : did you intend --size=132M? : : failed to create namespace: Invalid argument So the size is in section size units. So what prevents the userspace to use a proper alignment? I am sorry if this is a stupid question but I am not really familiar with ndctl nor the pmem side of it. -- Michal Hocko SUSE Labs