-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi Tim,
I'm following the OpenSmalltalk VM efforts with interest and hopefully the following contributes something.
On Linux systems that have 'prlimit' one can do:
$ prlimit --rtprio RESOURCE DESCRIPTION SOFT HARD UNITS RTPRIO max real-time priority 0 0
$ sudo prlimit --rtprio=99 --pid=$$
Assuming that the user is in the sudoers file (see visudo) possibly the above, results in the following change:
$ prlimit --rtprio RESOURCE DESCRIPTION SOFT HARD UNITS RTPRIO max real-time priority 99 99
My impression is that the pthread_setschedparam() issue has multiple solutions.
In the case of your Ubuntu system, what is the output of "prlimit --rtprio" ?
You can also just run "prlimit" without arguments to see the RTPRIO values.
The above is not necessarily an alternative to the squeak.conf file
/etc/security/limits.d/squeak.conf
may be the "right" file for you to use, but perhaps you can troubleshoot with 'prlimit' why it's not working.
On my system (not Linux but using PAM) one of the possibilities is
/etc/security/policy.conf
so there exist variations out there on the /etc/security/limit.d directory.
Regards, David Stes