Set huge_page_size on 32bit system - Mailing list pgsql-bugs

From Daria Shanina
Subject Set huge_page_size on 32bit system
Date
Msg-id CAMp4U1d177Jf9ZJwXGKom6APx3LSFATa=Z-M=N5kLzvTUcxutw@mail.gmail.com
Whole thread
Responses Re: Set huge_page_size on 32bit system
List pgsql-bugs
Hi all,

I found an error: on 32bit system (I tested on Debian 6.1.0-32-686-pae #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) i686 GNU/Linux) when we set huge_page_size = 1 TB postgres process fails with signal SIGFPE when calculated hugepagesize_local = (Size) huge_page_size * 1024; the value exceeds max for unsigned int = (2^32 – 1).
I attached a full backtrace and one small fix.

What do you think about this?
Thank you for your attention!

--
Best regards,
Daria Shanina

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #19483: pg_upgrade fails with orphan records in pg_init_priv catalog table
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: Set huge_page_size on 32bit system