All of lore.kernel.org
 help / color / mirror / Atom feed
* struct page_info on x86-64
@ 2007-04-03  9:13 Jan Beulich
  2007-04-03  9:39 ` Keir Fraser
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2007-04-03  9:13 UTC (permalink / raw)
  To: xen-devel

I am getting the impression that struct page_info could (in the default case)
be reduced from 40 to 32 bytes after the 3.0.4/5 changes, which no longer
appear to require type_info and shadow_flags to be unsigned long (they
could both be unsigned int aka u32). The only hindrance then is cpumask_t
being defined as an array of longs, whereas this doesn't really need to be
64 bits wide unless NR_CPUS exceeds 32. Is it worth trying to change
cpumask_t for that purpose (improving performance of frame table
accesses as well as bumping supportable memory from approximately
1.6Tb to 2Tb)?

Jan

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

* Re: struct page_info on x86-64
  2007-04-03  9:13 struct page_info on x86-64 Jan Beulich
@ 2007-04-03  9:39 ` Keir Fraser
  0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2007-04-03  9:39 UTC (permalink / raw)
  To: Jan Beulich, xen-devel

On 3/4/07 10:13, "Jan Beulich" <jbeulich@novell.com> wrote:

> I am getting the impression that struct page_info could (in the default case)
> be reduced from 40 to 32 bytes after the 3.0.4/5 changes, which no longer
> appear to require type_info and shadow_flags to be unsigned long (they
> could both be unsigned int aka u32). The only hindrance then is cpumask_t
> being defined as an array of longs, whereas this doesn't really need to be
> 64 bits wide unless NR_CPUS exceeds 32. Is it worth trying to change
> cpumask_t for that purpose (improving performance of frame table
> accesses as well as bumping supportable memory from approximately
> 1.6Tb to 2Tb)?

The cpumask stuff is all built on top of Linux bitmap code which assumes an
array of longs. I suppose we could change it so that the architecture gets
to choose the container type for the bits (and we could make that u32 for
x86 builds)? I'm not sure how invasive that would be, however. I wonder if
the benefit is sufficient, compared with putting effort into stripping out
use of the BIGLOCK from hot paths, for example?

 -- Keir

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

end of thread, other threads:[~2007-04-03  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-03  9:13 struct page_info on x86-64 Jan Beulich
2007-04-03  9:39 ` Keir Fraser

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.