From: Eric Dumazet <eric.dumazet@gmail.com>
To: Ben Hutchings <bhutchings@solarflare.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
David Miller <davem@davemloft.net>,
Tom Herbert <therbert@google.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
linux-net-drivers@solarflare.com
Subject: Re: [PATCH 2/2] lib: cpu_rmap: CPU affinity reverse-mapping
Date: Tue, 04 Jan 2011 23:19:02 +0100 [thread overview]
Message-ID: <1294179542.3420.13.camel@edumazet-laptop> (raw)
In-Reply-To: <1294178690.3636.49.camel@bwh-desktop>
Le mardi 04 janvier 2011 à 22:04 +0000, Ben Hutchings a écrit :
> get_rps_cpu() will need to read from an arbitrary entry in cpu_rmap (not
> the current CPU's entry) for each new flow and for each flow that went
> idle for a while. That's not fast path but it is part of the data path,
> not the control path.
>
Hmm, I call this fast path :(
> > Cache lines dont matter. I was not concerned about speed but memory
> > needs.
> >
> > NR_CPUS can be 4096 on some distros, that means a 32Kbyte allocation.
> >
> > Really, you'll have to have very strong arguments to introduce an
> > [NR_CPUS] array in the kernel today.
>
> I could replace this with a pointer to an array of size
> num_possible_cpus(). But I think per_cpu is wrong here.
Yes, an dynamic array is acceptable
You probably mean nr_cpu_ids
prev parent reply other threads:[~2011-01-04 22:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 19:37 [PATCH 0/2] IRQ affinity reverse-mapping Ben Hutchings
2011-01-04 19:38 ` [PATCH 1/2] genirq: Add IRQ affinity notifiers Ben Hutchings
2011-01-14 19:47 ` Thomas Gleixner
2011-01-14 20:06 ` Ben Hutchings
2011-01-14 20:40 ` Thomas Gleixner
2011-01-04 19:39 ` [PATCH 2/2] lib: cpu_rmap: CPU affinity reverse-mapping Ben Hutchings
2011-01-04 21:17 ` Eric Dumazet
2011-01-04 21:23 ` Ben Hutchings
2011-01-04 21:45 ` Eric Dumazet
2011-01-04 22:04 ` Ben Hutchings
2011-01-04 22:19 ` Eric Dumazet [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=1294179542.3420.13.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@solarflare.com \
--cc=netdev@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=therbert@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox