[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Error message for the failure to create heartbeat thread is too specific. (#540)

dcstes notifications at github.com
Thu Dec 10 12:25:11 UTC 2020


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


Another thing to consider is whether calling pthread_setschedparam()
should be the default ...

My impression is that if I just ignore the warning

"pthread_setschedparam failed: Not owner"

the programs still run fine.

So perhaps the default could be changed NOT to issue a pthread_setschedparam()
and make it optional.

Maybe some option like '-best-performance' could enable this.

Currently the message seems to indicate it is for "best operation".

So the message implies that the default could be not to issue the
pthread_setschedparam() and then have the user it enable via a switch.

In any case, the message is very specific and it combines both error and
solution, while the solution is "cookbookish" it tells you how what to do,
but there are many variations possible and many operating systems, what
could be the right "cookbook recipe" on one system may not apply to another ...


MESSAGE:

pthread_setschedparam failed: Not owner
This VM uses a separate heartbeat thread to update its internal clock
and handle events.  For best operation, this thread should run at a
higher priority, however the VM was unable to change the priority.  The
effect is that heavily loaded systems may experience some latency
issues.  If this occurs, please create the appropriate configuration
file in /etc/security/limits.d/ as shown below:

cat <<END | sudo tee /etc/security/limits.d/squeak.conf
*      hard    rtprio  2
*      soft    rtprio  2
END

and report to the squeak mailing list whether this improves behaviour.

You will need to log out and log back in for the limits to take effect.
For more information please see
https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/r3732#linux


David Stes

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

iQEcBAEBCAAGBQJf0hMyAAoJEAwpOKXMq1MaazkH/R8KAROHBOUlcaXTZ8MPPr6v
fi8/zjr8eLtAKK7GxlVPRO9EI1Zpxs7z2/YpjlkuID1gepTgMvKH7HlJaiytw1SV
iKW7Ybp8KAAIo/7uBTeH1/2woGNDZDELaApQGIfD7WPoCMKEJv2C0Gt/QosXBJ0o
xk+M4D2P3JhkjP1VshgzYzfHWwec7SlABUQgQP++iT7zwVSp0CzUTSuKtG78T4yB
DKNUiHcFIJA9zmKTiGWgdsabPww8mlZ1+yDWPsSd5sqq5YunhSjy2ixkQ3+T+HbC
2hMzD02Ef9z2OAutmjPuWN06GC6XhB8vGhEmk6Pgl1QmVkgDlrqdT4ZVk2gUMEs=
=2wOl
-----END PGP SIGNATURE-----


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/540#issuecomment-742489426
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201210/a0d5ba49/attachment.html>


More information about the Vm-dev mailing list