Re: [PATCH v3 1/2] eal: get/set thread priority per thread identifier

2022-05-27 Thread Tyler Retzlaff
On Thu, May 26, 2022 at 08:21:27AM -0700, Stephen Hemminger wrote: > > Thanks for clarifying. > Is there any analog for SCHED_DEADLINE worth considering? i hadn't considered it. for now i probably won't since this patch is just a blocker for getting the thread lifetime series up. which is higher

Re: [PATCH v3 1/2] eal: get/set thread priority per thread identifier

2022-05-26 Thread Stephen Hemminger
On Wed, 25 May 2022 23:29:57 -0700 Tyler Retzlaff wrote: > On Tue, May 24, 2022 at 07:51:05AM -0700, Stephen Hemminger wrote: > > On Tue, 24 May 2022 04:08:36 -0700 > > Tyler Retzlaff wrote: > > > > > +static int > > > +thread_map_priority_to_os_value(enum rte_thread_priority eal_pri, > > > +

Re: [PATCH v3 1/2] eal: get/set thread priority per thread identifier

2022-05-25 Thread Tyler Retzlaff
On Tue, May 24, 2022 at 07:51:05AM -0700, Stephen Hemminger wrote: > On Tue, 24 May 2022 04:08:36 -0700 > Tyler Retzlaff wrote: > > > +static int > > +thread_map_priority_to_os_value(enum rte_thread_priority eal_pri, > > + int *os_pri, int *pol) > > +{ > > + /* Clear the output parame

Re: [PATCH v3 1/2] eal: get/set thread priority per thread identifier

2022-05-24 Thread Stephen Hemminger
On Tue, 24 May 2022 04:08:36 -0700 Tyler Retzlaff wrote: > +static int > +thread_map_priority_to_os_value(enum rte_thread_priority eal_pri, > + int *os_pri, int *pol) > +{ > + /* Clear the output parameters */ > + *os_pri = sched_get_priority_min(SCHED_OTHER) - 1; > + *pol

[PATCH v3 1/2] eal: get/set thread priority per thread identifier

2022-05-24 Thread Tyler Retzlaff
Add functions for setting and getting the priority of a thread. Priorities on multiple platforms are similarly determined by a priority value and a priority class/policy. Currently in DPDK most threads operate at the OS-default priority level but there are cases when increasing the priority is use