DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Recent changes related to interrupt thread
@ 2015-11-16 12:32 Rahul Lakkireddy
  2015-11-16 13:48 ` Thomas Monjalon
  0 siblings, 1 reply; 6+ messages in thread
From: Rahul Lakkireddy @ 2015-11-16 12:32 UTC (permalink / raw)
  To: David Marchand, dev; +Cc: Felix Marti, Kumar Sanghvi, Nirranjan Kirubaharan

Hi,

I notice that the following changeset:

Fixes: fd6949c55c9a ("eal: fix io permission for virtio interrupt
handler")

has moved the initialization of the interrupt thread to after the master
lcore has been initialized.  However, this causes the interrupt thread
to _inherit_ the affinity of the master lcore. Hence, this seems to
make all interrupts to be handled by _only_ the master lcore. Because
of this change, it seems that now alarm interrupts would also be handled
by master lcore only, IIUC.

We are seeing a performance regression for cxgbe PMD after this commit
since, cxgbe PMD relies on alarm to periodically transmit pending
coalesced packets.

Also, this perf degradation is only seen if there's a queue allocated
on the master lcore, such as in l3fwd app.  If the master lcore has
been skipped, then no degradation in perf is seen since only the alarm
will run on the master lcore.

So, is the change done to make all interrupts, including alarm
interrupts, be handled by _only_ the master lcore intended?

BTW, I have tried setting the affinity to all cpus instead in
eal_intr_init() and this seems to restore the perf back. Perhaps it's
better to move the master lcore initialization to after the interrupt
thread has been initialized as well? Thoughts?

Thanks,
Rahul

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

end of thread, other threads:[~2015-11-17 11:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-16 12:32 [dpdk-dev] Recent changes related to interrupt thread Rahul Lakkireddy
2015-11-16 13:48 ` Thomas Monjalon
2015-11-16 17:06   ` Stephen Hemminger
2015-11-16 17:19     ` Ananyev, Konstantin
2015-11-16 17:40       ` Stephen Hemminger
     [not found]         ` <2601191342CEEE43887BDE71AB97725836AC98E9@irsmsx105.ger.corp.intel.com>
2015-11-17 11:48           ` Ananyev, Konstantin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).