[Vm-dev] setting rtprio on ubuntu 18 x64 box appears to fail

stes@PANDORA.BE stes at telenet.be
Wed Jul 22 18:12:12 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hi,

The warning/error 

pthread_setschedparam failed: Not owner

is also happening on Solaris, and obviously it also prints some text,
which does not really make sense on Solaris.

I have documented on the following Wiki how to get rid of this warning/error
on Solaris:

	https://sourceforge.net/p/solaris-squeak/wiki/Home/

I don't know how to fix the issue specifically on your Ubuntu distribution,
but possibly it makes sense to - when the error happens - to print a simple:

"error: pthread_setschedparam failed: Not owner

or 

"error: heartbeat thread unable to run at higher priority"

Such a simple short message would be sufficient, and then the user can
try to do some research and find fixes for the specific platform,
where the error happens.

I can imagine that on various Unix flavors the instructions for:

 /etc/security/limits.d/squeak.conf

do not apply.

Also note that in my limited experience on Solaris, I can either fix
the warning (by having threads run at different priorities) or ignore
the warning, as it does not seem to make much difference ...

But it's not nice that an extensive error message is printed,
certainly not when it does not apply to that specific Unix distribution.

Regards,
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfGIB/AAoJEAwpOKXMq1MaRngIAKRpp650F5wxVLLl5RI03rxY
Cbog93dnnXYhEtsKr1U1+FLTfwXcvMVDEI6nTi0dUuRfUg+698yPblisUJtQzgc4
3k54aqbz36oslkJA1y+kBU9V6nv/LfvVwpz9R0fnvuGTZndZYYHMfbCcU9yfDZ6x
psHJ2EQRWfT+tjXC1nVHARb2IIWfR2NtG/YoaZcuohNE342B2CHx3OisTck5tlKA
Fnx1pl/G7Z4OHleSmqKUT1KkMGfMHz4VIW0t3/D2CCMOuYqXQxxOejD2mqtqhzMP
8uUqNo1TLAmTjZwY4NVt7sa2Ny2PUXhxkASOL0c3YlvB3Dp6DAYNPptFmWC48Is=
=5Vgy
-----END PGP SIGNATURE-----


More information about the Vm-dev mailing list