DPDK usage discussions
 help / color / mirror / Atom feed
* Can independent dpdk applications in 2 separate pod use same cpu.
       [not found] <1346556956.3870791.1694264663662.ref@mail.yahoo.com>
@ 2023-09-09 13:04 ` Amy Smith
  2023-09-09 14:46   ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Amy Smith @ 2023-09-09 13:04 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 325 bytes --]

Hi,I have 2 independent dpdk application pods working now using different set of cpu cores. For low cost use case I would like them to use same cpu. I have 1 cpu core which I want both pods to share. Is it possible? Do I need to make any changes to applications to use non eal thread, changes to scheduling thread etc.Thanks!

[-- Attachment #2: Type: text/html, Size: 604 bytes --]

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

* Re: Can independent dpdk applications in 2 separate pod use same cpu.
  2023-09-09 13:04 ` Can independent dpdk applications in 2 separate pod use same cpu Amy Smith
@ 2023-09-09 14:46   ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-09-09 14:46 UTC (permalink / raw)
  To: Amy Smith; +Cc: users

On Sat, 9 Sep 2023 13:04:23 +0000 (UTC)
Amy Smith <gsonvin@yahoo.com> wrote:

> Hi,I have 2 independent dpdk application pods working now using different set of cpu cores. For low cost use case I would like them to use same cpu. I have 1 cpu core which I want both pods to share. Is it possible? Do I need to make any changes to applications to use non eal thread, changes to scheduling thread etc.Thanks!

Possible yes, but will kill performance since most DPDK applications do pure polling.
What will happen is one application will run until preempted by the kernel scheduler, then the other one.
The preemption happens on clock tick so each one will run until the clock interrupt (usually 4 ms).
And the overhead of context switching and cache misses.


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

end of thread, other threads:[~2023-09-09 14:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1346556956.3870791.1694264663662.ref@mail.yahoo.com>
2023-09-09 13:04 ` Can independent dpdk applications in 2 separate pod use same cpu Amy Smith
2023-09-09 14:46   ` Stephen Hemminger

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).