On Thursday, 29 December 2022 07:59:28 -03 coroberti wrote: > 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. > > https://github.com/ianohara/linux-rt-examples/blob/master/src/schedulerTest. > c
And, if you set the affinity to a single CPU, malloc() will conclude you re in a single-core system (because that's what sched_setaffinity does) and therefore not use arena-per-thread allocation strategies. Your mallocs() will take locks in the same two global arenas. On Linux with glibc. -- Thiago Macieira - thiago.macieira (AT) intel.com Cloud Software Architect - Intel DCAI Cloud Engineering _______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest