From: Keir Fraser <keir@xensource.com>
To: Jan Beulich <jbeulich@novell.com>, xen-devel@lists.xensource.com
Subject: Re: struct page_info on x86-64
Date: Tue, 03 Apr 2007 10:39:47 +0100 [thread overview]
Message-ID: <C237DF73.CB40%keir@xensource.com> (raw)
In-Reply-To: <461236F5.76E4.0078.0@novell.com>
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
prev parent reply other threads:[~2007-04-03 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 9:13 struct page_info on x86-64 Jan Beulich
2007-04-03 9:39 ` Keir Fraser [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C237DF73.CB40%keir@xensource.com \
--to=keir@xensource.com \
--cc=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.