Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp686706rdb; Thu, 18 Jan 2024 16:16:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAGKcArjzoWVrlEwcLwcy9pWiNhPH088zTNF0l26cMBsDHSCcVegkPVs92KK35aHyQaVp0 X-Received: by 2002:a05:6808:1903:b0:3bc:cd5:d2a5 with SMTP id bf3-20020a056808190300b003bc0cd5d2a5mr2034283oib.39.1705623412237; Thu, 18 Jan 2024 16:16:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705623412; cv=pass; d=google.com; s=arc-20160816; b=spOYvqbV27Y1vA0O5a6J9b3aobbVV8AjmUjefkDSa0wEaeHCSLCprGrw0hEzlWR/41 EPGExwsEoshMT9bfa97q0Zql0+8Sew4ZeOeBbAziKTxdVEWxBaC4c95M0M0FuzLmeRg8 wpE7jRiy2yXBtwQx3swqkTWmt4kfyE/OxUH6guSlPMZ8IUZ7jkYJyn4+L+SiI1kjis3/ uVICLg1RpolmL+FJ0PzV5cjPCO/tGFRA11YH/Rtslcs+XG7wQggjW/1/rEUOIymxbqv8 CyaKxGRCMBPmRHlelpaImTHKqmoUCg0aOhlyARz62s8hlt32abHx1bNOgUQsxE8loSQi AMRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cyFCAw+3MWHn7kvC5txRDNiZL7S1o52REXRdj6L83qY=; fh=n9LeJGVMOdTO6gT8jDI3NjalfxLlA0hcCrYg09vsDEg=; b=uA+24G5V1O4DvTfBRKN2xT3NPhcE1K9tZWPfVRZqkvc2tONsq6dPQgB7au0zCeF5ZP 59yXD0dD3MgmozggFdHafuxrXJhHcgSFxaipi3E/1BiRUXReryI/gFn/jtX65amRGRJE k8HwgV1r1PgxCrXp+sgQjrzrgMIUbeMSPr27AT2C8Pu44MnGAMDZjn85y6e9IN3XY6+m plgpAp99F733IHjfXJ5SySoCxGp9WC5JI7/D5kAWeMdWrvIP/ArDRl/c+AAgWzBlTzbO gGtE/p6dZZf8tVE5G9Ewq/zjGpIEYkJBVrjKqpPwMYhfMMj+MuWgOZng/P/tA2A+XXlW N25g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E09b9+pu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-30654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30654-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r6-20020a05622a034600b0042a1e4c6241si1761351qtw.703.2024.01.18.16.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 16:16:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=E09b9+pu; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-30654-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30654-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 007CA1C22C2B for ; Fri, 19 Jan 2024 00:16:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9199391; Fri, 19 Jan 2024 00:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="E09b9+pu" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAA43180 for ; Fri, 19 Jan 2024 00:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705623405; cv=none; b=MN4ckzTplBpmwYOOC+0h/7OnOlm16EMfcps7kHvvRt8OZrjJhQQ6llLD8IQr+6t5tI6h9M/ohW2S4hKZ4TJxvzGxr+fHDnwCi8CXT5ei8e340tn9b21LWS2rWrHd9ZyQLn8oTXb1K99bDmGQzR8tRbLz6/Mri+Rq+U5g0vsYxOc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705623405; c=relaxed/simple; bh=fx8wb+F0IG13Fuw+CHMgt82vAzHtmHWYMxLE88gSjO4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hsXXjqAOH5Dd8s3VD8UqyVEVbmL0ztmYCd3M5ER6hiZcbKmmrDjnbpS6Eu4AnqDcWOKX+1ZfA235l2/CCuRX5jGZUP3Po1mgLzlldH38MxiesCbASbzClc3d698m5d0c/1rBXOLGA1WrRQ4VCxzhvrrE//uL67iJfuIFQC5+pY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=E09b9+pu; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cyFCAw+3MWHn7kvC5txRDNiZL7S1o52REXRdj6L83qY=; b=E09b9+pu/yyJLV8I9ejzRpgg27 t2xrXuesPWZ4KyEi6kuTk33cV4T8pjHbRzMgUvjk1L9VGHpT0XE7+SPyOnurLRoq92kk+KYw2HFSU uP/mF+czpDJrS6uM6KmFpEqP0oM2Q8KzQK62tkjDIDtiQ1P/vv/TRG690RbIUdChuTnD7jTIKzDI7 6CvB/ST7kqIRVSldOwkA2eB+CIBF+hEdgDBRZ30thiN9jIa65dahYalITEEvPva0BIEWoaYXsIv8N YOYviveCFqML+Sx20pSAILQiSLE+horKBAPw44gYuSIkDWPMaOVNURbfR3QlOLZ1M8MhhXfcplxEP hDS80hWA==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rQcYl-00000003Tb7-09Gt; Fri, 19 Jan 2024 00:16:35 +0000 Date: Fri, 19 Jan 2024 00:16:34 +0000 From: Matthew Wilcox To: Yang Shi Cc: jirislaby@kernel.org, surenb@google.com, riel@surriel.com, cl@linux.com, akpm@linux-foundation.org, yang@os.amperecomputing.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: huge_memory: don't force huge page alignment on 32 bit Message-ID: References: <20240118133504.2910955-1-shy828301@gmail.com> <20240118180505.2914778-1-shy828301@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240118180505.2914778-1-shy828301@gmail.com> On Thu, Jan 18, 2024 at 10:05:05AM -0800, Yang Shi wrote: > From: Yang Shi > > The commit efa7df3e3bb5 ("mm: align larger anonymous mappings on THP > boundaries") caused two issues [1] [2] reported on 32 bit system or compat > userspace. > > It doesn't make too much sense to force huge page alignment on 32 bit > system due to the constrained virtual address space. > > [1] https://lore.kernel.org/linux-mm/d0a136a0-4a31-46bc-adf4-2db109a61672@kernel.org/ > [2] https://lore.kernel.org/linux-mm/CAJuCfpHXLdQy1a2B6xN2d7quTYwg2OoZseYPZTRpU0eHHKD-sQ@mail.gmail.com/ > > Fixes: efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries") > Reported-by: Jiri Slaby > Reported-by: Suren Baghdasaryan > Tested-by: Jiri Slaby > Tested-by: Suren Baghdasaryan > Cc: Rik van Riel > Cc: Matthew Wilcox > Cc: Christopher Lameter > Signed-off-by: Yang Shi Reviewed-by: Matthew Wilcox (Oracle)