All of lore.kernel.org
 help / color / mirror / Atom feed
* 1GB hugepages and intel_xc_cpuid_policy by default disables it.
@ 2014-01-10 18:41 Konrad Rzeszutek Wilk
  2014-01-13 10:10 ` Ian Campbell
  0 siblings, 1 reply; 11+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-01-10 18:41 UTC (permalink / raw)
  To: xen-devel, ian.jackson, stefano.stabellini, ian.campbell,
	jun.nakajima

Hey,

It occured to me that when booting Linux HVM guests, the 1GB hugepage
cpuid is not exposed. One needs to manually do:

 cpuid= ['0x80000001:edx=xxxxx1xxxxxxxxxxxxxxxxxxxxxxxxxx'] 
or 
 cpuid="host,page1gb=k"

(see http://lists.xenproject.org/archives/html/xen-users/2013-09/msg00083.html
for some discussion about it).

The machine I am using is supporting it:

 (XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB 

and this is the only way to get hugepages working
(for reference here is what I have in the guest command line:
"default_hugepagesz=1G hugepagesz=1G hugepages=2 hugepagesz=2M
hugepages=100" and without this cpuid I get:
 hugepagesz: Unsupported page size 1024 M 

because the 1GB flag is not exposed.

I was wondering why we don't check the host cpuid and set the 1GB
flag (pdpe1gb) for those cases? It seems that all the pieces are in
place for this to work?

Thanks!

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

end of thread, other threads:[~2014-11-11 15:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-10 18:41 1GB hugepages and intel_xc_cpuid_policy by default disables it Konrad Rzeszutek Wilk
2014-01-13 10:10 ` Ian Campbell
2014-01-13 11:30   ` Jan Beulich
2014-01-13 11:38     ` Ian Campbell
2014-01-13 11:51       ` Jan Beulich
2014-01-15 20:07         ` Konrad Rzeszutek Wilk
2014-01-16  7:49           ` Jan Beulich
2014-11-10  5:08           ` Zhang, Yang Z
2014-11-10 14:57             ` Konrad Rzeszutek Wilk
2014-11-11  3:30               ` Zhang, Yang Z
2014-11-11 15:45                 ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.