DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 - rte_timer_subsystem_init(void)
@ 2021-01-13  2:38 Li, Jiu (NSB - CN/Hangzhou)
  2021-01-18  8:41 ` David Marchand
  0 siblings, 1 reply; 3+ messages in thread
From: Li, Jiu (NSB - CN/Hangzhou) @ 2021-01-13  2:38 UTC (permalink / raw)
  To: users
  Cc: Dong, Shaojie (NSB - CN/Hangzhou), Ye, Hua (NSB - CN/Hangzhou),
	Alasaarela, Risto (Nokia - FI/Oulu),
	Jarvelaid, Rain (Nokia - FI/Oulu),
	Wu, Jianyue (NSB - CN/Hangzhou),
	Pan, Jianyong (NSB - CN/Hangzhou)

Hello!  Dpdk experts,

On Dpdk 18.05,  void rte_timer_subsystem_init(void)
On Dpdk 19.11,  int    rte_timer_subsystem_init(void) implementation changed, which will return 0, -EALREADY or -ENOMEM;

There is still have  dpdk "process" mode (instead of pdkd thread mode) deployment in my side.
Can I have a question?

If rte_timer_subsystem_init() is called one time is enough?
After rte_timer_subsystem_init() called with return 0 by one process , then other processes are able to use "rte timer" service without issue, right?

Thanks in advance!

Best Regards.
  U-Plane
(Clark),  Jiu LI


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

* Re: [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 - rte_timer_subsystem_init(void)
  2021-01-13  2:38 [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 - rte_timer_subsystem_init(void) Li, Jiu (NSB - CN/Hangzhou)
@ 2021-01-18  8:41 ` David Marchand
  2021-01-19 16:11   ` Carrillo, Erik G
  0 siblings, 1 reply; 3+ messages in thread
From: David Marchand @ 2021-01-18  8:41 UTC (permalink / raw)
  To: Li, Jiu (NSB - CN/Hangzhou), Robert Sanford, Erik Gabriel Carrillo
  Cc: users, Dong, Shaojie (NSB - CN/Hangzhou),
	Ye, Hua (NSB - CN/Hangzhou), Alasaarela, Risto (Nokia - FI/Oulu),
	Jarvelaid, Rain (Nokia - FI/Oulu),
	Wu, Jianyue (NSB - CN/Hangzhou),
	Pan, Jianyong (NSB - CN/Hangzhou)

On Sun, Jan 17, 2021 at 11:04 PM Li, Jiu (NSB - CN/Hangzhou)
<jiu.li@nokia-sbell.com> wrote:
>
> Hello!  Dpdk experts,
>
> On Dpdk 18.05,  void rte_timer_subsystem_init(void)
> On Dpdk 19.11,  int    rte_timer_subsystem_init(void) implementation changed, which will return 0, -EALREADY or -ENOMEM;
>
> There is still have  dpdk "process" mode (instead of pdkd thread mode) deployment in my side.
> Can I have a question?
>
> If rte_timer_subsystem_init() is called one time is enough?
> After rte_timer_subsystem_init() called with return 0 by one process , then other processes are able to use "rte timer" service without issue, right?
>

Copied timer library maintainers.


-- 
David Marchand


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

* Re: [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 - rte_timer_subsystem_init(void)
  2021-01-18  8:41 ` David Marchand
@ 2021-01-19 16:11   ` Carrillo, Erik G
  0 siblings, 0 replies; 3+ messages in thread
From: Carrillo, Erik G @ 2021-01-19 16:11 UTC (permalink / raw)
  To: David Marchand, Li, Jiu (NSB - CN/Hangzhou), Robert Sanford
  Cc: users, Dong, Shaojie (NSB - CN/Hangzhou),
	Ye, Hua (NSB - CN/Hangzhou), Alasaarela, Risto (Nokia - FI/Oulu),
	Jarvelaid, Rain (Nokia - FI/Oulu),
	Wu, Jianyue (NSB - CN/Hangzhou),
	Pan, Jianyong (NSB - CN/Hangzhou)

Hi,

Response in-line:

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: Monday, January 18, 2021 2:42 AM
> To: Li, Jiu (NSB - CN/Hangzhou) <jiu.li@nokia-sbell.com>; Robert Sanford
> <rsanford@akamai.com>; Carrillo, Erik G <erik.g.carrillo@intel.com>
> Cc: users@dpdk.org; Dong, Shaojie (NSB - CN/Hangzhou)
> <shaojie.dong@nokia-sbell.com>; Ye, Hua (NSB - CN/Hangzhou)
> <hua.ye@nokia-sbell.com>; Alasaarela, Risto (Nokia - FI/Oulu)
> <risto.alasaarela@nokia.com>; Jarvelaid, Rain (Nokia - FI/Oulu)
> <rain.jarvelaid@nokia.com>; Wu, Jianyue (NSB - CN/Hangzhou)
> <jianyue.wu@nokia-sbell.com>; Pan, Jianyong (NSB - CN/Hangzhou)
> <jianyong.pan@nokia-sbell.com>
> Subject: Re: [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 -
> rte_timer_subsystem_init(void)
> 
> On Sun, Jan 17, 2021 at 11:04 PM Li, Jiu (NSB - CN/Hangzhou) <jiu.li@nokia-
> sbell.com> wrote:
> >
> > Hello!  Dpdk experts,
> >
> > On Dpdk 18.05,  void rte_timer_subsystem_init(void)
> > On Dpdk 19.11,  int    rte_timer_subsystem_init(void) implementation
> changed, which will return 0, -EALREADY or -ENOMEM;
> >
> > There is still have  dpdk "process" mode (instead of pdkd thread mode)
> deployment in my side.
> > Can I have a question?
> >
> > If rte_timer_subsystem_init() is called one time is enough?
> > After rte_timer_subsystem_init() called with return 0 by one process , then
> other processes are able to use "rte timer" service without issue, right?
> >

rte_timer_subsystem_init() needs to be called in each process that wishes to create and manage timers. 

Note that secondary processes need to be using distinct lcores, as described here:
http://doc.dpdk.org/guides-19.11/prog_guide/multi_proc_support.html#multi-process-limitations

"All DPDK processes running as a single application and using shared memory must have distinct coremask/corelist arguments. It is not possible to have a primary and secondary instance, or two secondary instances, using any of the same logical cores. Attempting to do so can cause corruption of memory pool caches, among other issues."

Regards,
Erik

> 
> Copied timer library maintainers.
> 
> 
> --
> David Marchand


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

end of thread, other threads:[~2021-01-19 16:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13  2:38 [dpdk-users] Integration from Dpdk18.05 to Dpdk19.11 - rte_timer_subsystem_init(void) Li, Jiu (NSB - CN/Hangzhou)
2021-01-18  8:41 ` David Marchand
2021-01-19 16:11   ` Carrillo, Erik G

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ http://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git