<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Fabio,<br></div><div><br>On Aug 14, 2016, at 2:57 AM, Fabio Niephaus &lt;<a href="mailto:lists@fniephaus.com">lists@fniephaus.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><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></div></blockquote><div><br></div>The way I think of it is that the interval timer is a mechanism with bad side effects (interrupting system calls potentially affecting foreign code). &nbsp;So I think of it as a poor man's solution. &nbsp;Since Linux is often personal, in that the user usually owns the system, it seems worth guiding the user through being able to use the GT VM if possible. &nbsp;If we go this route I recommend we pull the logic for setting up the files into a separate script so that it can be modified independently of squeak.sh to leave squeak.sh relatively stable as we evolve the setup script.<div><br></div><div>I agree that the itimer VMs are simpler, but in this case not better :-/<br><div><br><blockquote type="cite"><div><div dir="ltr"><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&nbsp; 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>
*&nbsp; &nbsp; &nbsp; &nbsp;hard&nbsp; &nbsp; rtprio&nbsp; 2<br>
*&nbsp; &nbsp; &nbsp; &nbsp;soft&nbsp; &nbsp; rtprio&nbsp; 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're using an ht VM,<br>
&gt; and the following applies to you:<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Linux<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;There are two variants of the Linux VMs; those ending in "ht" have a<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;heartbeat thread, while those that don't use an interval timer for<br>
&gt; the<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;heartbeat (the Windows and Mac VMs have a threaded heartbeat).&nbsp; The<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;threaded heartbeat is better (for example, signals from the interval<br>
&gt; timer<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;interfere with system calls, etc), but to use it one must have a<br>
&gt; kernel<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;later than 2.6.12 and configure linux to allow the VM to use multiple<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;thread priorities.&nbsp; To do so, create a file called VM.conf where VM<br>
&gt; is<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;the name of the vm executable ("squeak" for the Squeak vm, "nsvm" for<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;the Newspeak vm) in /etc/security/limits.d/ with contents:<br>
&gt; *&nbsp; &nbsp; &nbsp; &nbsp;hard&nbsp; &nbsp; rtprio&nbsp; 2<br>
&gt; *&nbsp; &nbsp; &nbsp; &nbsp;soft&nbsp; &nbsp; rtprio&nbsp; 2<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;e.g.<br>
&gt;<br>
&gt; sudo cat &gt;/etc/security/limits.d/squeak.conf &lt;&lt;END<br>
&gt; *&nbsp; &nbsp; &nbsp; &nbsp;hard&nbsp; &nbsp; rtprio&nbsp; 2<br>
&gt; *&nbsp; &nbsp; &nbsp; &nbsp;soft&nbsp; &nbsp; rtprio&nbsp; 2<br>
&gt; END<br>
&gt; sudo cp /etc/security/limits.d/squeak.conf /etc/security/limits.d/nsvm.conf<br>
&gt;<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Only new processes will have the new security settings. Users must<br>
&gt; log<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;out and log back in for the limits to take effect.&nbsp; Services must<br>
&gt; stop<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;and then restart for the changes to take effect.&nbsp; To use this VM as a<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;daemon, e.g. under daemontools, you'll need to raise the limit<br>
&gt; manually.<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Make sure you're using bash and before your launch command, raise the<br>
&gt; max<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;thread priority limit with ulimit -r 2, e.g. versions of the<br>
&gt; following<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;script will work on ubuntu<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #!/bin/bash<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cd /path/to/squeak/directory<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ulimit -r 2<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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;&nbsp; &nbsp; &nbsp;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's a VM bug that it prints the wrong URL. You get this error message,<br>
&gt;&gt;&gt; because you haven'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 <a href="http://nabble.com">Nabble.com</a>.<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>
</div></blockquote><blockquote type="cite"><div><span></span><br></div></blockquote></div></div></body></html>