On Thu, Mar 30, 2017 at 8:03 PM, Alistair Grant <akgrant0710@gmail.com> wrote:
On 30 March 2017 at 11:58, Pavel Krivanek <pavel.krivanek@gmail.com> wrote:
Yes, the same priority. See:
The VM may have issues with clock jitter due to the heartbeat thread not running at elevated priority. An exit may be appropriate in some cases, but for most users the above warning is sufficient.
https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ 32f321583c69ca27e61ffaff6decc2a3e4b6ca5e
Cheers, -- Pavel
From looking at the code, my understanding is that the VM attempts to elevate the priority of the heartbeat thread, if the elevation fails, the old behaviour was to exit with a message. The new behaviour is to just warn the user (with a message to stderr) and continue.
Assuming I've read the code correctly, there's a bug that needs to be fixed: the cat statement won't work as sudo doesn't apply to file redirection; and I've suggested some more informative text:
-- This VM uses a separate heartbeat thread to update
the internal clock.
its internal clock and handle events.
For best operation, this thread should run
at real-time priority,
at a higher priority. (Real-time priority is something else.)
however the VM was unable to change the priority. The effect is that
the clock may experience some jitter.
To avoid clock jitter, please
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 <<EOF | sudo tee /etc/security/limits.d/VNAME.conf * hard rtprio 2 VNAME * soft rtprio 2 VNAME EOF
and report to the mail list whether this improves behaviour.
You will need to logout and back in for the changes to take affect.
--
If there's no disagreement or better suggestion, I'll submit a pull request (probably in a couple of days).
cheers -ben
Cheers, Alistair
2017-03-30 11:51 GMT+02:00 Denis Kudriashov <dionisiydk@gmail.com>:
2017-03-29 20:29 GMT+02:00 Pavel Krivanek <pavel.krivanek@gmail.com>:
Hi,
I want to let you know that the SSH (git@...) support in Iceberg on
Linux
VM now works with the latest threaded VM (get.pharo.org/vmTLatest60). The threaded VM now runs without root priviledges nor special configuration of the system.
And what the logic now? Heartbeat and VM are in same priory?