Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1117312pxb; Fri, 26 Feb 2021 03:03:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzXyQfWEsPgTQhA/ddpf+DwRypQFXLoZzJcLJIC7+ZR71b9iVBcALLTJ6i8ptNRFp4Ww2R X-Received: by 2002:a05:6402:22f3:: with SMTP id dn19mr2664265edb.238.1614337399099; Fri, 26 Feb 2021 03:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614337399; cv=none; d=google.com; s=arc-20160816; b=cdfaZDC45GfANhh4fwYadd1uXDh0opx8NQPdDuPVQ0wMUVz7fhJsUx3EVL9/FRVGrd ckN4ECc7Tpw0gjDi6ibinY2ftCdszmZFI71vYWyrUSyKg+iz5RyjHwA3YLKW5YuWliX0 8n5PgH0nC4w5kTCCGqnhYTtExk/wvV6hdyEJLZiYYE5w0DVovit1BIXbOxeuRKY4tgqA uNJXToSKhHJQuMxOZKryqrSqWjcmJUfy+ZY2npkNqeidr8ddmAWX15VYt8ej3IO0mmsZ tVJmn/kSxqzBATSGfGL+B3AWLyLcMAFVg3Rac2B18wST3MPF/PsaOoCoXPUGYa3bRyuT x+MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=00s2MsyW/a2AE1oZWb1iglLJz/LlWkEfj9iznPhKodI=; b=yLS2xybeNAmg3NoXcn5SQIzCviA1RmOqIuCeUDYc3X5bLcSCzMRdPz2YdI5ysiLeWA DwKkm6YY0Q3RhhJRvr0GG8FO10KCZJ1uNE6+/qdsKAqqI7JOTAtp738ewoKJF8k2Rab9 /LJddsbWg2gO+68zBfOoFy7bCtEH/NnXwtc5Mm5Oba2c1qwIaPb2EIKlpcyS9Y6QJRNq yTmsm8RiDSyochgS92OwK65Zu2aIO5Yiv0NsalHhaAruVvXTp3hfB3pK6YvY2TVsOxxM jBv9suQnDYB7rsr312arVWY4/FouokoV7CaBkm9LRnbYW3fNWHrkR9cl8TCxVUAUtyOm sjgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=bseSV9G2; 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si6180994edz.98.2021.02.26.03.02.56; Fri, 26 Feb 2021 03:03:19 -0800 (PST) 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=@ibm.com header.s=pp1 header.b=bseSV9G2; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbhBZLAQ (ORCPT + 99 others); Fri, 26 Feb 2021 06:00:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:24564 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbhBZLAO (ORCPT ); Fri, 26 Feb 2021 06:00:14 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 11QAYtWN131166; Fri, 26 Feb 2021 05:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=00s2MsyW/a2AE1oZWb1iglLJz/LlWkEfj9iznPhKodI=; b=bseSV9G2g5lxLnBShjcXJu/ZNxJuc2/iqsRHGhZeLxB/bwhXzvUmrJXxdQkJnRiIUo1i TX2cwgiPQfK4AyUJmWIG5zmIgData+5xUuAAIXcrrh/77Rse5nEmkczvLVPh8FIqQ54h udRtO13yMzwUeOnWLw2/qMR596vqi97GoCjd7yVRdGOwYUNPT6cpFVI/KyYF8u1Q02W+ upR8eLGLcnk7ccYzL3UtteSgJYDo6a6q2iDKNIXl2UxCrWIKx8zTUvflWU2uP6UrYw+n TnQgllGRjHTJn5eaRlDwFIrsT98Wf9R01cmEAJW4BGU2gMWQYa7IqzJWzeU+jAOH9uhq ug== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 36xjs1bu2e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Feb 2021 05:59:10 -0500 Received: from m0098394.ppops.net (m0098394.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 11QAgGew169368; Fri, 26 Feb 2021 05:59:09 -0500 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 36xjs1bu1j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Feb 2021 05:59:09 -0500 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 11QAw117007075; Fri, 26 Feb 2021 10:59:07 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma03fra.de.ibm.com with ESMTP id 36tt28trc0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Feb 2021 10:59:06 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 11QAx45V41419216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Feb 2021 10:59:04 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6CBA5A4065; Fri, 26 Feb 2021 10:59:04 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 415A5A4040; Fri, 26 Feb 2021 10:59:02 +0000 (GMT) Received: from linux.ibm.com (unknown [9.145.51.238]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 26 Feb 2021 10:59:02 +0000 (GMT) Date: Fri, 26 Feb 2021 12:59:00 +0200 From: Mike Rapoport To: Vlastimil Babka Cc: Mike Rapoport , Andrew Morton , Andrea Arcangeli , Baoquan He , Borislav Petkov , Chris Wilson , David Hildenbrand , "H. Peter Anvin" , Ingo Molnar , Linus Torvalds , =?utf-8?Q?=C5=81ukasz?= Majczak , Mel Gorman , Michal Hocko , Qian Cai , "Sarvela, Tomi P" , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v7 1/1] mm/page_alloc.c: refactor initialization of struct page for holes in memory layout Message-ID: <20210226105900.GK1854360@linux.ibm.com> References: <20210224153950.20789-1-rppt@kernel.org> <20210224153950.20789-2-rppt@kernel.org> <20210225180521.GH1854360@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-02-26_02:2021-02-24,2021-02-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102260082 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 07:38:44PM +0100, Vlastimil Babka wrote: > On 2/25/21 7:05 PM, Mike Rapoport wrote: > >> > >> What if two zones are adjacent? I.e. if the hole was at a boundary between two > >> zones. > > > > What do you mean by "adjacent zones"? If there is a hole near the zone > > boundary, zone span would be clamped to exclude the hole. > > Yeah, zone span should exclude those pages, but you still somehow handle them? > That's how I read "pages that are not spanned by any node will get links to the > adjacent zone/node." > So is it always a unique zone/node can be determined? > > Let's say we have: > > > ---- pageblock boundary ---- > > > > ---- pageblock boundary ---- > > Now I hope such configurations don't really exist :) But if we simulated them in > QEMU, what would be the linkage in struct pages in that hole? I don't think such configuration is possible in practice but it can be forced with e.g memmap="2M hole at 4G - 1M". The hole in your example the hole will get node1 for node and zone that spans the beginning of node1 for zone. -- Sincerely yours, Mike.