-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
The message that the OpenSmalltalk VM emits when it cannot pthread_setsched(), has multiple solutions depending on the setup.
According to https://packages.ubuntu.com/groovy/util-linux the package util-linux for ubuntu has a command /usr/bin/prlimit
A method which you could try:
prlimit --rtprio=99 --pid=<pid of shell in which you will run squeak>
So you could try to raise/change the rtprio using prlimit.
Perhaps even the prlimit method is not working for you, but it is something that you could try to troubleshoot the issue.
If the prlimit method is not working , there may be some other software that disallows changing the rtprio.
David Stes
On 2021-04-02, at 12:15 AM, stes@PANDORA.BE stes@telenet.be wrote: The message that the OpenSmalltalk VM emits when it cannot pthread_setsched(), has multiple solutions depending on the setup.
That's what I was afraid of; yet more complication in making a system decently portable.
According to https://packages.ubuntu.com/groovy/util-linux the package util-linux for ubuntu has a command /usr/bin/prlimit
A method which you could try:
prlimit --rtprio=99 --pid=<pid of shell in which you will run squeak>
OK, so my Ubuntu does have that command installed, so a good start, thanks. I have no idea how one might find that pid and use it within any of the shell scripts etc we have. Fire up the Bash Signal! (Obviously this is the unix equivalent of the Windows(™) Bat Signal, which gets Batman to help with your .bat files)
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim All programmers are playwrights and all computers are lousy actors.
-----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
vm-dev@lists.squeakfoundation.org