All of lore.kernel.org
 help / color / mirror / Atom feed
* credit2 data structures
@ 2011-10-13  9:42 Jan Beulich
  2011-10-13 10:11 ` George Dunlap
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2011-10-13  9:42 UTC (permalink / raw)
  To: George Dunlap; +Cc: xen-devel@lists.xensource.com

George,

while hunting down direct assignments of cpumask_t variables (which I'm
trying to eliminate so that hypervisor binaries built for many CPUs won't
have undue memory overhead on "normal" [smaller] systems), I stumbled
across memory references that at the first glance looked buggy to me
due to their huge immediates. As it turns out, they're not buggy but a
result of credit2's struct csched_private - particularly having a NR_CPUS
sized array of struct csched_runqueue_data, which in turn has three
cpumask_t-s, totaling to a structure size of about 6.5Mb when building
for 4095 CPUs (the current upper limit in Xen).

Apart from the possibility of allocating the arrays (and maybe also the
cpumask_t-s) separately (for which I can come up with a patch on top
of what I' currently putting together) - is it really necessary to have
all these, the more that there can be multiple instances of the structure
with CPU pools?

Jan

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

end of thread, other threads:[~2011-10-14  4:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13  9:42 credit2 data structures Jan Beulich
2011-10-13 10:11 ` George Dunlap
2011-10-13 10:57   ` Keir Fraser
2011-10-13 12:17     ` Jan Beulich
2011-10-13 12:24   ` Jan Beulich
2011-10-13 12:54     ` Juergen Gross
2011-10-13 14:17       ` Jan Beulich
2011-10-14  4:35         ` Juergen Gross

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.