All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xen.org>
To: George Dunlap <George.Dunlap@eu.citrix.com>,
	Jan Beulich <JBeulich@suse.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: credit2 data structures
Date: Thu, 13 Oct 2011 11:57:59 +0100	[thread overview]
Message-ID: <CABC82C7.329CD%keir@xen.org> (raw)
In-Reply-To: <CAFLBxZaHwav97=PVvZDTKzBVaeGc9FYh4xs9mj3cC=WbEzTZtw@mail.gmail.com>

On 13/10/2011 11:11, "George Dunlap" <George.Dunlap@eu.citrix.com> wrote:

> For one thing, the number of runqueues in credit2 is actually meant to
> be smaller than the number of logical cpus -- it's meant to be one per
> L2 cache, which should have between 2 and 8 logical cpus, depending on
> the architecture.  I just put NR_CPUS because it was easier to get
> working.  Making that an array of pointers, which is allocated on an
> as-needed basis, should reduce that requirement a great deal.

That would suffice. If we can put per-cpu stuff in the per_cpu() data area
then even better. The fact that credit2 burns a couple of kB per CPU isn't a
problem at all, as long as it does it only for active CPUs.

 -- Keir

  reply	other threads:[~2011-10-13 10:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13  9:42 credit2 data structures Jan Beulich
2011-10-13 10:11 ` George Dunlap
2011-10-13 10:57   ` Keir Fraser [this message]
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

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=CABC82C7.329CD%keir@xen.org \
    --to=keir@xen.org \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.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.