Open gabriel-rodriguez opened 2 years ago
hi, I have encountered the same problem,How did you handle it? Did it succeed?
No, I haven't yet found a good solution for it, IIRC (my memory is sketchy after 18 months :-))
On Wed, Sep 20, 2023 at 12:14 PM Young-xin @.***> wrote:
hi, I have encountered the same problem,How did you handle it? Did it succeed?
— Reply to this email directly, view it on GitHub https://github.com/libhugetlbfs/libhugetlbfs/issues/70#issuecomment-1727411497, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA52KQPTWOCUH22I7CE5VGLX3K6ZLANCNFSM5ROTITOQ . You are receiving this because you authored the thread.Message ID: @.***>
thanks,
Hi all,
I've been trying to link applications to use 1GB hugepages for the text/BSS segments. Unfortunately, I'm getting errors when running as segments would overlap. Upon closer inspection, segments are aligned to 4MiB boundaries, and therefore no wonder they would overlap. Looking at the linker script, I can see that the hugepagesize is computed as follows:
i.e., for elf_x86_64 the HPAGE_SIZE is fixed to 4MiB, instead of extracting it from /proc/meminfo. Trying to use the same approach as for elf64ppc fails, but how can this issue be fixed to make segments 1GiB-aligned?
Thanks in advance!