RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-27 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 26 October 2023 21.51 > > 26/10/2023 18:50, Morten Brørup: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 26 October 2023 18.07 [...] > > > For average realtime thread, I suggest the API > > >

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Stephen Hemminger
On Thu, 26 Oct 2023 21:55:24 +0200 Thomas Monjalon wrote: > > To be safe the sleep has to be longer than the system clock tick. > > Most systems are built today with HZ=250 but really should be using HZ=1000 > > on modern CPU's. > > If it has to be more than 1 ms, > we should mention it is a s

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
26/10/2023 18:28, Stephen Hemminger: > On Thu, 26 Oct 2023 16:08:02 +0200 > Morten Brørup wrote: > > > > > In our recent tests, nanosleep() itself took around 50 us. So you need > > > > to > > > sleep longer than that for your thread not to be runnable when the > > > nanosleep() > > > wakes u

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
26/10/2023 18:50, Morten Brørup: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Thursday, 26 October 2023 18.07 > > > > 26/10/2023 17:54, Bruce Richardson: > > > On Thu, Oct 26, 2023 at 04:59:51PM +0200, Morten Brørup wrote: > > > > > From: Morten Brørup [mailto:m...@smartsharesy

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 26 October 2023 18.07 > > 26/10/2023 17:54, Bruce Richardson: > > On Thu, Oct 26, 2023 at 04:59:51PM +0200, Morten Brørup wrote: > > > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > > > Sent: Thursday, 26 October

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Stephen Hemminger
On Thu, 26 Oct 2023 16:08:02 +0200 Morten Brørup wrote: > > > In our recent tests, nanosleep() itself took around 50 us. So you need to > > > > > sleep longer than that for your thread not to be runnable when the > > nanosleep() > > wakes up again, because 50 us has already passed in "nanosle

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
26/10/2023 17:54, Bruce Richardson: > On Thu, Oct 26, 2023 at 04:59:51PM +0200, Morten Brørup wrote: > > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > > Sent: Thursday, 26 October 2023 16.50 > > > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > > Sent: Thursday, 26

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Bruce Richardson
On Thu, Oct 26, 2023 at 04:59:51PM +0200, Morten Brørup wrote: > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > Sent: Thursday, 26 October 2023 16.50 > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 26 October 2023 16.31 > > > > > > 26/10/2023 16:08

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Morten Brørup [mailto:m...@smartsharesystems.com] > Sent: Thursday, 26 October 2023 16.50 > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Thursday, 26 October 2023 16.31 > > > > 26/10/2023 16:08, Morten Brørup: > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] >

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 26 October 2023 16.31 > > 26/10/2023 16:08, Morten Brørup: > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 26 October 2023 16.05 > > > > > > 26/10/2023 15:57, Morten Brørup: > > > > > From: Morten

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
26/10/2023 16:08, Morten Brørup: > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Thursday, 26 October 2023 16.05 > > > > 26/10/2023 15:57, Morten Brørup: > > > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > > > Sent: Thursday, 26 October 2023 15.45 > > > > > > > > >

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread David Marchand
On Thu, Oct 26, 2023 at 3:57 PM Morten Brørup wrote: > > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > Sent: Thursday, 26 October 2023 15.45 > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 26 October 2023 15.37 > > > > > > 25/10/2023 18:31, Thoma

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 26 October 2023 16.05 > > 26/10/2023 15:57, Morten Brørup: > > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > > Sent: Thursday, 26 October 2023 15.45 > > > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.ne

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
26/10/2023 15:57, Morten Brørup: > > From: Morten Brørup [mailto:m...@smartsharesystems.com] > > Sent: Thursday, 26 October 2023 15.45 > > > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > > Sent: Thursday, 26 October 2023 15.37 > > > > > > 25/10/2023 18:31, Thomas Monjalon: > > > > Rea

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Morten Brørup [mailto:m...@smartsharesystems.com] > Sent: Thursday, 26 October 2023 15.45 > > > From: Thomas Monjalon [mailto:tho...@monjalon.net] > > Sent: Thursday, 26 October 2023 15.37 > > > > 25/10/2023 18:31, Thomas Monjalon: > > > Real-time thread priority was been forbidden on Unix

RE: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Thursday, 26 October 2023 15.37 > > 25/10/2023 18:31, Thomas Monjalon: > > Real-time thread priority was been forbidden on Unix > > because of problems they can cause. > > Warnings and helpers are added to avoid deadlocks, > > so real-ti

Re: [PATCH v3 0/2] allow creating thread with real-time priority

2023-10-26 Thread Thomas Monjalon
25/10/2023 18:31, Thomas Monjalon: > Real-time thread priority was been forbidden on Unix > because of problems they can cause. > Warnings and helpers are added to avoid deadlocks, > so real-time can be allowed on all systems. Unit test is failing: DPDK:fast-tests / threads_autotest TIMEOUT 6

[PATCH v3 0/2] allow creating thread with real-time priority

2023-10-25 Thread Thomas Monjalon
Real-time thread priority was been forbidden on Unix because of problems they can cause. Warnings and helpers are added to avoid deadlocks, so real-time can be allowed on all systems. Thomas Monjalon (2): eal: add thread yield functions eal/unix: allow creating thread with real-time priority