Re: [LAD] some updated RT programming wisdom

2020-11-18 Thread Fons Adriaensen
On Wed, Nov 18, 2020 at 06:16:49PM +0100, Jörn Nettingsmeier wrote:

> And I have a question: since nobody seems to pre-fault their stacks and
> heaps: is that the reason for xruns when adding new clients to the JACK
> graph? We all know not to malloc() in the process thread, but of course we
> may be using malloc'ed memory for the first time...

That could well be so. But AFAIK, at least Jack1 may skip some cycles 
while initialising a client or a creating ports, even if the client
behaves perfectly. Not sure about Jack2.

Ciao,

-- 
FA



___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev


Re: [LAD] some updated RT programming wisdom

2020-11-18 Thread Jörn Nettingsmeier

On 11/18/20 6:04 PM, Jörn Nettingsmeier wrote:
It may be old news for seasoned programmers, but I found this to be a 
trove of information that goes a bit beyond of the traditional wisdom of 
"what's safe in a jack process() thread", so I thought I'd share it here 
(courtesy of LWN's free subscriber link feature, please check out LWN!)


https://lwn.net/SubscriberLink/837019/e323ab1009054668/

https://ogness.net/ese2020/ese2020_johnogness_rtchecklist.pdf



And I have a question: since nobody seems to pre-fault their stacks and 
heaps: is that the reason for xruns when adding new clients to the JACK 
graph? We all know not to malloc() in the process thread, but of course 
we may be using malloc'ed memory for the first time...





--
Jörn Nettingsmeier
Tuinbouwstraat 180, 1097 ZB Amsterdam, Nederland
Tel. +49 177 7937487

Meister für Veranstaltungstechnik (Bühne/Studio), Tonmeister VDT
http://stackingdwarves.net
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev


[LAD] some updated RT programming wisdom

2020-11-18 Thread Jörn Nettingsmeier
It may be old news for seasoned programmers, but I found this to be a 
trove of information that goes a bit beyond of the traditional wisdom of 
"what's safe in a jack process() thread", so I thought I'd share it here 
(courtesy of LWN's free subscriber link feature, please check out LWN!)


https://lwn.net/SubscriberLink/837019/e323ab1009054668/

https://ogness.net/ese2020/ese2020_johnogness_rtchecklist.pdf


All best,


Jörn




--
Jörn Nettingsmeier
Tuinbouwstraat 180, 1097 ZB Amsterdam, Nederland
Tel. +49 177 7937487

Meister für Veranstaltungstechnik (Bühne/Studio), Tonmeister VDT
http://stackingdwarves.net
___
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-dev