linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Commit 'hugetlbfs: extend the definition of hugepages parameter to support node allocation' breaks old numa less syntax of reserving hugepages on boot.
@ 2021-11-28 11:18 Maxim Levitsky
  2021-11-29  4:31 ` Mike Kravetz
  0 siblings, 1 reply; 6+ messages in thread
From: Maxim Levitsky @ 2021-11-28 11:18 UTC (permalink / raw)
  To: Zhenguo Yao; +Cc: Mike Kravetz, Andrew Morton, linux-mm, linux-kernel


dmesg prints this:

HugeTLB: allocating 64 of page size 1.00 GiB failed.  Only allocated 0 hugepages

Huge pages were allocated on kernel command line (1/2 of 128GB system):

'default_hugepagesz=1G hugepagesz=1G hugepages=64'

This is 3970X and no real support/need for NUMA, thus only fake NUMA node 0 is present.

Reverting the commit helps.

New syntax also works ( hugepages=0:64 )

I can test any patches for this bug.


Also unrelated, is there any progress on allocating 1GB pages on demand so that I could
allocate them only when I run a VM?

i don't mind having these pages to be marked as to be used for userspace only,
since as far as I remember its the kernel usage that makes some page unmoveable.

Last time (many years ago) I tried to create a zone with only userspace pages
(I don't remember what options I used) but it didn't work.

Is there a way to debug what is causing unmoveable pages and doesn't let
/proc/sys/vm/nr_hugepages work (I tried it today and as usual the number
it can allocate steadly decreases over time).

Thanks,
Best regards,
	Maxim Levitsky





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-30  7:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-28 11:18 Commit 'hugetlbfs: extend the definition of hugepages parameter to support node allocation' breaks old numa less syntax of reserving hugepages on boot Maxim Levitsky
2021-11-29  4:31 ` Mike Kravetz
2021-11-29  8:17   ` Zhenguo Yao
2021-11-29 10:39   ` Maxim Levitsky
2021-11-30  7:49     ` Maxim Levitsky
2021-11-29 12:26   ` Zhenguo Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox