Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

QEMU KVM Memory Hugepages won't get used

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
MaDDeePee
Guru
Guru
User avatar
Posts: 428
Joined: Wed Aug 18, 2004 5:24 pm
Location: Germany
Contact:
Contact MaDDeePee
Website

QEMU KVM Memory Hugepages won't get used

  • Quote

Post by MaDDeePee » Fri Jan 30, 2026 9:31 pm

Hello :)

it looks like if my gaming VM with hugepages is configured right, because:
hugetlbfs on /mnt/hugepages type hugetlbfs (rw,relatime,gid=78,mode=1770,pagesize=2M)
... and right after VM start that mountpoint is getting subdirs: "/mnt/hugepages/libvirt/qemu" but thats it. no file here.

well, and "cat /proc/meminfo":

Code: Select all

HugePages_Total:   16384
HugePages_Free:    16384
HugePages_Rsvd:    16384
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:        33554432 kB
BUT HugePages_Free stays exactly like this. nothing is used.

My VM-XML:

Code: Select all

    <qemu:arg value="memory-backend-file,id=mem1,size=32G,mem-path=/mnt/hugepages,share=on"/>

VM fires up without problems. VM is having 32GB rams and i wanted that all to be "covered" by hugepages.
Its just that i am unter the impression hugepages *are_not* used just because HugePages_Free doesnt shrink.
Am i wrong? Help :)
Top
Post Reply
1 post • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic