[Interest] Thread-To-CPU-Core distribution
alexander_carot at gmx.net
Tue Jan 3 00:05:11 CET 2023
>>Additionally, to decrease the jitter and get more attention to your threads,
>>you may try running as a root and switch to SCHED_FIFO priority and
>>assign high priority there.
Absolutely – I am already doing this and I love the ability to control pthreads this way.
However, now I wonder if it is also possible to have such control (affinity and/or priority) over the main Qt thread (including the event handler etc.).
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
> Gesendet: Donnerstag, 29. Dezember 2022 um 11:59 Uhr
> Von: "coroberti" <coroberti at gmail.com>
> An: "Alexander Carôt" <alexander_carot at gmx.net>
> Cc: interest at qt-project.org
> Betreff: Re: [Interest] Thread-To-CPU-Core distribution
> On Thu, Dec 29, 2022 at 1:45 AM Alexander Carôt <alexander_carot at gmx.net> wrote:
> > Hej Konrad,
> > >>I can't hold back my curiosity, so I've got to ask: why? Why would you
> > >>do that? Why do you assume you know better than the operating system?
> > I totally understand the question and agree to anything else you state in your email below, however, I am dealing with a non-standard use case with comparably tough delay restrictions. I do it for R&D reasons related to remote music performances and the project where this works has been going into:
> > https://www.soundjack.eu/
> > https://www.soundjack.eu/publications/
> > In this domain we are constantly seeking opportunities to improve audio/video low(est)-latency on x-platform standard hardware.
> > Especially on cheaper hardware such as the Raspi thread distribution was a benefit in that regard especially when processing audio with 32 samples/block and probably less but I need to compare and evaluate it more intensively now.
> Additionally, to decrease the jitter and get more attention to your threads,
> you may try running as a root and switch to SCHED_FIFO priority and
> assign high priority there.
> Kind regards,
> Robert Iakobashvili
More information about the Interest