<div dir="ltr">Heartbeat threaded vms seem to be better, but they require a kernel later than 2.6.12 and Linux needs to be reconfigured by creating a file.<div><br></div><div>I wonder, would it be better to use vms with interval timer in the Linux bundles instead?</div><div>Or shall we extend the squeak.sh launcher script, so that it helps with the Linux setup?</div><div><br></div><div>It feels like ht vms are for power users and I think it might be better to trade performance for ease of use in this case (having beginners in mind). Any other opinions?</div><div><br></div><div>Best,</div><div>Fabio<br><div class="GmSign"><br></div><div class="GmSign">-- <br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Aug 14, 2016 at 9:43 AM H. Hirzel &lt;<a href="mailto:hannes.hirzel@gmail.com">hannes.hirzel@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Levente<br>
<br>
The following on  did the job. The 64bit all-in-one runs fine on Ubuntu 14.04.1.<br>
<br>
Thank you<br>
<br>
Hannes<br>
<br>
sudo cat &gt;/etc/security/limits.d/squeak.conf &lt;&lt;END<br>
*       hard    rtprio  2<br>
*       soft    rtprio  2<br>
END<br>
<br>
<br>
(log out and log in)<br>
<br>
On 8/14/16, Levente Uzonyi &lt;<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>&gt; wrote:<br>
&gt; Hi Hannes,<br>
&gt;<br>
&gt; Only ht VMs require higher process priorities, so you&#39;re using an ht VM,<br>
&gt; and the following applies to you:<br>
&gt;<br>
&gt;       Linux<br>
&gt;       There are two variants of the Linux VMs; those ending in &quot;ht&quot; have a<br>
&gt;       heartbeat thread, while those that don&#39;t use an interval timer for<br>
&gt; the<br>
&gt;       heartbeat (the Windows and Mac VMs have a threaded heartbeat).  The<br>
&gt;       threaded heartbeat is better (for example, signals from the interval<br>
&gt; timer<br>
&gt;       interfere with system calls, etc), but to use it one must have a<br>
&gt; kernel<br>
&gt;       later than 2.6.12 and configure linux to allow the VM to use multiple<br>
&gt;       thread priorities.  To do so, create a file called VM.conf where VM<br>
&gt; is<br>
&gt;       the name of the vm executable (&quot;squeak&quot; for the Squeak vm, &quot;nsvm&quot; for<br>
&gt;       the Newspeak vm) in /etc/security/limits.d/ with contents:<br>
&gt; *       hard    rtprio  2<br>
&gt; *       soft    rtprio  2<br>
&gt;<br>
&gt;       e.g.<br>
&gt;<br>
&gt; sudo cat &gt;/etc/security/limits.d/squeak.conf &lt;&lt;END<br>
&gt; *       hard    rtprio  2<br>
&gt; *       soft    rtprio  2<br>
&gt; END<br>
&gt; sudo cp /etc/security/limits.d/squeak.conf /etc/security/limits.d/nsvm.conf<br>
&gt;<br>
&gt;       Only new processes will have the new security settings. Users must<br>
&gt; log<br>
&gt;       out and log back in for the limits to take effect.  Services must<br>
&gt; stop<br>
&gt;       and then restart for the changes to take effect.  To use this VM as a<br>
&gt;       daemon, e.g. under daemontools, you&#39;ll need to raise the limit<br>
&gt; manually.<br>
&gt;       Make sure you&#39;re using bash and before your launch command, raise the<br>
&gt; max<br>
&gt;       thread priority limit with ulimit -r 2, e.g. versions of the<br>
&gt; following<br>
&gt;       script will work on ubuntu<br>
&gt;          #!/bin/bash<br>
&gt;          cd /path/to/squeak/directory<br>
&gt;          ulimit -r 2<br>
&gt;          exec setuidgid &lt;account&gt; ./coglinuxht/squeak -vm display-null -vm<br>
&gt; sound-null squeak.image<br>
&gt;<br>
&gt;<br>
&gt; Levente<br>
&gt;<br>
&gt;<br>
&gt; On Sat, 13 Aug 2016, H. Hirzel wrote:<br>
&gt;<br>
&gt;&gt; Hello Levente<br>
&gt;&gt;<br>
&gt;&gt; I can not figure out what to by reading<br>
&gt;&gt; <a href="http://www.mirandabanda.org/files/Cog/VM/latest/README.3732" rel="noreferrer" target="_blank">http://www.mirandabanda.org/files/Cog/VM/latest/README.3732</a><br>
&gt;&gt;<br>
&gt;&gt; For example I do not know which VM I have as they seem to be renamed<br>
&gt;&gt; to just squeak.<br>
&gt;&gt; /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So it is difficult to find out which of the remarks in<br>
&gt;&gt; <a href="http://www.mirandabanda.org/files/Cog/VM/latest/README.3732" rel="noreferrer" target="_blank">http://www.mirandabanda.org/files/Cog/VM/latest/README.3732</a><br>
&gt;&gt; apply.<br>
&gt;&gt;<br>
&gt;&gt; I think it is the task of the script<br>
&gt;&gt;     squeak.sh<br>
&gt;&gt;<br>
&gt;&gt; to tell me more what to do (script copied in below)<br>
&gt;&gt;<br>
&gt;&gt; --Hannes<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 8/13/16, Levente Uzonyi &lt;<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>&gt; wrote:<br>
&gt;&gt;&gt; Hi Hannes,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It&#39;s a VM bug that it prints the wrong URL. You get this error message,<br>
&gt;&gt;&gt; because you haven&#39;t allowed Squeak to use higher process priorities.<br>
&gt;&gt;&gt; Try this link:<br>
&gt;&gt;&gt; <a href="http://www.mirandabanda.org/files/Cog/VM/latest/README.3732" rel="noreferrer" target="_blank">http://www.mirandabanda.org/files/Cog/VM/latest/README.3732</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Levente<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Sat, 13 Aug 2016, H. Hirzel wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hello<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Ubuntu 14.04.1 I get an error with All-in-one-64bit,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; user8@user8-Latitude:~$ chmod +x squeak.sh<br>
&gt;&gt;&gt;&gt; user8@user8-Latitude:~$ ./squeak.sh<br>
&gt;&gt;&gt;&gt; /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak<br>
&gt;&gt;&gt;&gt; pthread_setschedparam failed: Operation not permitted<br>
&gt;&gt;&gt;&gt; Read e.g.<br>
&gt;&gt;&gt;&gt; <a href="http://www.mirandabanda.org/files/Cog/VM/VM.r201608051639/README.201608051639" rel="noreferrer" target="_blank">http://www.mirandabanda.org/files/Cog/VM/VM.r201608051639/README.201608051639</a><br>
&gt;&gt;&gt;&gt; user8@user8-Latitude:~$ uname -a<br>
&gt;&gt;&gt;&gt; Linux user8-Latitude-E6410 3.19.0-25-generic #26~14.04.1-Ubuntu SMP<br>
&gt;&gt;&gt;&gt; Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux<br>
&gt;&gt;&gt;&gt; user8@user8-Latitude:~$<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; The requested URL /files/Cog/VM/VM.r201608051639/README.201608051639<br>
&gt;&gt;&gt;&gt; was not found on this server.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Additionally, a 404 Not Found error was encountered while trying to<br>
&gt;&gt;&gt;&gt; use an ErrorDocument to handle the request.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Best wishes<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hannes<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 8/13/16, marcel.taeumel &lt;<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt; Hi there,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; here are new builds:<br>
&gt;&gt;&gt;&gt;&gt; <a href="http://files.squeak.org/5.1beta/Squeak5.1beta-16420-32bit/" rel="noreferrer" target="_blank">http://files.squeak.org/5.1beta/Squeak5.1beta-16420-32bit/</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://files.squeak.org/5.1beta/Squeak5.1beta-16420-64bit/" rel="noreferrer" target="_blank">http://files.squeak.org/5.1beta/Squeak5.1beta-16420-64bit/</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Note that the VM version in the file name is true for 32-bit but not<br>
&gt;&gt;&gt;&gt;&gt; so<br>
&gt;&gt;&gt;&gt;&gt; true<br>
&gt;&gt;&gt;&gt;&gt; for 64-bit because the 64-bit Windows VM is different but the version<br>
&gt;&gt;&gt;&gt;&gt; comes<br>
&gt;&gt;&gt;&gt;&gt; from the macOS VM, which is used to update the image.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Best,<br>
&gt;&gt;&gt;&gt;&gt; Marcel<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt; View this message in context:<br>
&gt;&gt;&gt;&gt;&gt; <a href="http://forum.world.st/ANN-Squeak-5-1-Feature-Freeze-Trunk-closed-for-new-features-only-bug-fixes-or-text-updates-tp4909004p4910909.html" rel="noreferrer" target="_blank">http://forum.world.st/ANN-Squeak-5-1-Feature-Freeze-Trunk-closed-for-new-features-only-bug-fixes-or-text-updates-tp4909004p4910909.html</a><br>
&gt;&gt;&gt;&gt;&gt; Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div></div></div>