Hi Alistair,
On Mar 30, 2017, at 5:03 AM, 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/32f321583c69ca27e61...
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:
Are you sure? Many people, myself included, have used the sudo version successfully in the past. I think I see what you mean; if sudo is a.command then the shell that invokes it is not running as superuser and it sets up the pipe. But perhaps there's behind-the-scenes magic in the shell (I've used bash) that makes it work? Also isn't a nicer alternative is just to say su cat ... ?
-- This VM uses a separate heartbeat thread to update the internal clock. For best operation, this thread should run at real-time priority, however the VM was unable to change the priority. The effect is that the clock may experience some jitter. To avoid clock jitter, 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
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, 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?