Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp157877ybg; Thu, 11 Jun 2020 20:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7K9+Jt/GouETCFPs9My2w0FMvfj/JO7uqWkl5EO7lQ5srPv/4eqd5l/ZbdMM5OzOikdJm X-Received: by 2002:aa7:c15a:: with SMTP id r26mr9380485edp.21.1591932846901; Thu, 11 Jun 2020 20:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591932846; cv=none; d=google.com; s=arc-20160816; b=hGfg9KhV/xvFbK10xK7hv9ruilfaQ1+OFvO8hJHhK+jJh1cdO0wux1EuMa3yLdekW+ HNMLYvFyrJfnWZA9AcL0bSNJHh9ltRpLRqul0LSQv4Sq4k0UnONXAOszVrIkMssDw8yt IfRb95yh/+/38YWAVIputbGn5USlVPBpVDIyj2K2NySQDZ3S82fT8zhYPGbaGtV3SFKM p2Gz6CNx/mw9oGE1Nrl1RtqJdbGEIc3/7QkI7AcP5D1r4Z5eItfjY/yPyjYhUuM9o45O WBxQTE7k1K/x0/XQifca4SLPXwBaXppp/c1gjZ4KeJcfcW1305k0gbO0C5BFDf9XDWA2 jXpw== 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:dkim-signature; bh=3r/RFyunZuTefVau6GRBcKb6mgNqSQqMP2oHRrS/4LU=; b=UnbioReMfQv1Y89briM2OZ7/6FXjX2ckxT5coMdvFk8NBd0oEe8kavcU5A+hs4yQyB G263qynFCoynNv0fzETq57rqqs1e8FtzbXaN5k5/yxCUS0N31b2FyzuaEDP8aAlBDcGG o/rDgYgeq4MtSZ5JrIjGezu9tWb9KwvWkNhi1BUAHCcHWQPh9GJOHx7ktlNMHFZjPy/Y Wr8bYstBngjXgZLZMhV3Zkf3XA8gbMNzVpuHK1S2s+bUcLAEUVgDdSxhJyWitF+ygSju 9MzIfQl8ReZPZJOOkDQ5Vp6uTH4C7u1hJk33JoJQWDdfi/yb0c8ACzT+cxm0UxRtWN3b bsEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=WL6U4IPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nx24si3010248ejb.615.2020.06.11.20.33.43; Thu, 11 Jun 2020 20:34:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=WL6U4IPj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726391AbgFLD34 (ORCPT + 99 others); Thu, 11 Jun 2020 23:29:56 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:59270 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgFLD34 (ORCPT ); Thu, 11 Jun 2020 23:29:56 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05C3NMO1116572; Fri, 12 Jun 2020 03:29:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=3r/RFyunZuTefVau6GRBcKb6mgNqSQqMP2oHRrS/4LU=; b=WL6U4IPjmtDQuEekJhKmta2nvIGEmMSRlZu+xJtd1BDk8o8JUoDRjLc97bGZfPhHp8yj SX8xI2+IZmMiujumSfqgcrLuQvDsjyrmwSIEg7rrJinZN5NqW/7ESPZqNhGT7CkuLQmi fNQgnJbcTucwgD1REL+tooy0smwpL7vdnp01worxGjUMV3wOtXbQIhVfPjyMUwJ7xCpj wOIw2rFaMiNTnxPd6wvY4pJENY/rgG2CYJ58jhG2sQ9XasTC/iPPDPJq1XBX+sKUeZDQ GrdxFiXdQbNX8y5Lzpke5clp21xsZ9MYTipjwDpWZ1nPuvWChWe+k4KVFY6Rl1j/YBMN yQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 31g2jrk0ge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 12 Jun 2020 03:29:37 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 05C3MtIB154197; Fri, 12 Jun 2020 03:29:37 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 31m1rhgnke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 Jun 2020 03:29:36 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 05C3TYtc008852; Fri, 12 Jun 2020 03:29:34 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 11 Jun 2020 20:29:33 -0700 Date: Thu, 11 Jun 2020 23:29:59 -0400 From: Daniel Jordan To: Dave Hansen Cc: Daniel Jordan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Andy Lutomirski , Dave Hansen , David Hildenbrand , Michal Hocko , Pavel Tatashin , Peter Zijlstra , Steven Sistare Subject: Re: [PATCH v2] x86/mm: use max memory block size on bare metal Message-ID: <20200612032959.yo43ydg273zu35lx@ca-dmjordan1.us.oracle.com> References: <20200609225451.3542648-1-daniel.m.jordan@oracle.com> <20200611165910.6dwd3c7z5brimjbm@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9649 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006120025 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9649 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 impostorscore=0 cotscore=-2147483648 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006120025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 10:05:38AM -0700, Dave Hansen wrote: > One other nit for this. We *do* have actual hardware hotplug, and I'm > pretty sure the alignment guarantees for hardware hotplug are pretty > weak. For instance, the alignment guarantees for persistent memory are > still only 64MB even on modern platforms. > > Let's say we're on bare metal and we see an SRAT table that has some > areas that show that hotplug might happen there. Is this patch still > ideal there? Well, not if there's concern about hardware hotplug. My assumption going in was that this wasn't a problem in practice. 078eb6aa50dc50 ("x86/mm/memory_hotplug: determine block size based on the end of boot memory") was merged in 2018 to address qemu hotplug failures and >64G systems have used a 2G block since 2014 with no complaints about alignment issues, to my knowledge anyway.