Re: [dpdk-dev] [PATCH 1/3] timer: add per-installer pending lists for each lcore

2017-08-29 Thread Stephen Hemminger
On Wed, 23 Aug 2017 09:47:22 -0500 Gabriel Carrillo wrote: > __TIMER_STAT_ADD(manage, 1); > - /* optimize for the case where per-cpu list is empty */ > - if (priv_timer[lcore_id].pending_head.sl_next[0] == NULL) > - return; > - cur_time = rte_get_timer_cycles(); > +

[dpdk-dev] [PATCH 1/3] timer: add per-installer pending lists for each lcore

2017-08-23 Thread Gabriel Carrillo
Instead of each priv_timer struct containing a single skiplist, this commit adds a skiplist for each enabled lcore to priv_timer. In the case that multiple lcores repeatedly install timers on the same target lcore, this change reduces lock contention for the target lcore's skiplists and increases p