Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wd1gZ-003piK-0a for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2026 08:13:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wd1gY-009vFQ-0W for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2026 08:13:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wd1gX-009vFH-2q for pgsql-bugs@lists.postgresql.org; Fri, 26 Jun 2026 08:13:13 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wd1gV-00000000Kbo-3Jeg for pgsql-bugs@lists.postgresql.org; Fri, 26 Jun 2026 08:13:13 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2c7f1db3ad4so6439255ad.3 for ; Fri, 26 Jun 2026 01:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1782461589; x=1783066389; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=+m/5a5ySb4lsfZAK/edTJc0HR7D8myM3nLhvTwldC34=; b=WqXtSqrVfuZX6hO7ZtzzpslHsE4O/1gFmGqlpgkeP0Y2F8X+7NLQjhM34YyIPiPI5c H9eLQoxea/fStBbrpHvtBz5zzIL+1cU0lRKj9yjJdRnGGp5bgvpgqqmVl5M5LwS7HY5Z 5O/xZwa1j5Op18YiUkRutRqs/iKrjvSiWLDmgA68KmsaEZCgHybPZbCIv6b1LJhNXdUY 7/81G7hw5tiCIHIS3zTQJNRiXCmckYg5YRG7SGdwEXiNp68iODsOS5OCVjS5JFrPKQJC OvKD50YGAA9nrecpeHBsFjAziXouaZ+hO9cfLksb7Shn2icBClShgTUPUtyIdqdFsEPi 4X8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782461589; x=1783066389; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+m/5a5ySb4lsfZAK/edTJc0HR7D8myM3nLhvTwldC34=; b=FP2ZMpBFFphR3HsPUCwUUVkL7spJevC9nSxgXIW9jXPg7xnLfz/wfWd3/cfK4Pwmlr KJNO+0w0rpAcCtRzVT+p9IqxiePglZPzHQe6UHuX4WD6xvABEy10AyBUbmgScZxsELVL fL+/mkN04PTJhftBd3cgCwqxGVsZ63Agv79WP3y9LcK77pR2pIJLPPSvFvZY0+iJGAcR 2Y9+3994REDUhe6TRndFiVGoZOJzy3cHet3BW+6V1y97WaKrBxKNGeCALEJzRZ+T9e7I JiuhlrF2dUk7pSY6aBKEUkVuIGl9wDxpV+VqcTt62q/tPY2CQdGGhrbahl1zhQJ4+B12 t6hQ== X-Forwarded-Encrypted: i=1; AHgh+Rrr85Nwn3lRBduQtQskx3+yoLurzqC1Yxw/pGLZk85WlitzLS1FYS7Ec0dSMoo+kq4fRBxtqBJhdLLk@lists.postgresql.org X-Gm-Message-State: AOJu0YxcCzRMjKfbaCbMU6/r2rYBjac1m8Azccq4nrOuO2/vn5zKyWww bm8+O97fIziOAhX8yAETLRSVWo7PhFWIxE7UvPnIsdX9XALKguq93VxB X-Gm-Gg: AfdE7clhR0aJDtY2WhWX8/bSysG5gbaB7LrzU3VbmS3Jgc5j6N23Sx7pPu/DhOKrZt+ f7bSULSHyXmLrykjfJHm2EO3n+7nT9Z9NkqfGi0IVrvlngNlLp6sgXsQ+Ax8RAx+KwUFEPvLALa qvSlH2lRm1DHZeNgQGpJOrjBsv+OVNs2SXv1xcdCpPH1A48Rczh5pAh8eOP8naQLTeWVwyfcjmM cKjjicbtS5Cgpu8R8uWO3tpmYoTVTMtmmGBfJZxC36g1MVrmMvMEd/Xhe0ob0eGGF2qBje1XT4o JPzEemVD659v1egECFa6w32z+SwYJa3oGMXF5lgF0SkOxiBnz0lmAQ7rk5ZYXEAdhhRk5e4bN5L 8mA83y+lZVPSKY84T9TdQjjE+ZDGl9v1SX71aNjQiFA/O0FgvascrjDZp9zmW+qv6TFKjqY+mJa tKcol6WoLMi7SxAaF/La5fqV/GKIJfLbTiDb1PIXZv43q3m4b6jGBpGe5dTrRr X-Received: by 2002:a17:903:2307:b0:2ba:4ad9:70f6 with SMTP id d9443c01a7336-2c7fccae9e8mr62597455ad.31.1782461589312; Fri, 26 Jun 2026 01:13:09 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c7f63b2bc8sm34381115ad.39.2026.06.26.01.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2026 01:13:08 -0700 (PDT) Date: Fri, 26 Jun 2026 17:13:07 +0900 (JST) Message-Id: <20260626.171307.1289242154888665760.horikyota.ntt@gmail.com> To: michael@paquier.xyz Cc: vilensipkdm@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: Set huge_page_size on 32bit system From: Kyotaro Horiguchi In-Reply-To: References: <20260626.132415.904994526137946499.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 29.4 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Fri, 26 Jun 2026 14:26:31 +0900, Michael Paquier wrote in > So it seems to me that the mistake is that huge_page_size uses INT_MAX > as upper bound. We should use MAX_KILOBYTES instead; this definition > exists to exactly prevent this kind of computation mistake in 32b > environments. Ah, you're right. MAX_KILOBYTES exists for exactly this purpose. Regards, -- Kyotaro Horiguchi NTT Open Source Software Center