<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 <<a href="mailto:hannes.hirzel@gmail.com">hannes.hirzel@gmail.com</a>> 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 >/etc/security/limits.d/squeak.conf <<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 <<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>> wrote:<br>
> Hi Hannes,<br>
><br>
> Only ht VMs require higher process priorities, so you're using an ht VM,<br>
> and the following applies to you:<br>
><br>
> Linux<br>
> There are two variants of the Linux VMs; those ending in "ht" have a<br>
> heartbeat thread, while those that don't use an interval timer for<br>
> the<br>
> heartbeat (the Windows and Mac VMs have a threaded heartbeat). The<br>
> threaded heartbeat is better (for example, signals from the interval<br>
> timer<br>
> interfere with system calls, etc), but to use it one must have a<br>
> kernel<br>
> later than 2.6.12 and configure linux to allow the VM to use multiple<br>
> thread priorities. To do so, create a file called VM.conf where VM<br>
> is<br>
> the name of the vm executable ("squeak" for the Squeak vm, "nsvm" for<br>
> the Newspeak vm) in /etc/security/limits.d/ with contents:<br>
> * hard rtprio 2<br>
> * soft rtprio 2<br>
><br>
> e.g.<br>
><br>
> sudo cat >/etc/security/limits.d/squeak.conf <<END<br>
> * hard rtprio 2<br>
> * soft rtprio 2<br>
> END<br>
> sudo cp /etc/security/limits.d/squeak.conf /etc/security/limits.d/nsvm.conf<br>
><br>
> Only new processes will have the new security settings. Users must<br>
> log<br>
> out and log back in for the limits to take effect. Services must<br>
> stop<br>
> and then restart for the changes to take effect. To use this VM as a<br>
> daemon, e.g. under daemontools, you'll need to raise the limit<br>
> manually.<br>
> Make sure you're using bash and before your launch command, raise the<br>
> max<br>
> thread priority limit with ulimit -r 2, e.g. versions of the<br>
> following<br>
> script will work on ubuntu<br>
> #!/bin/bash<br>
> cd /path/to/squeak/directory<br>
> ulimit -r 2<br>
> exec setuidgid <account> ./coglinuxht/squeak -vm display-null -vm<br>
> sound-null squeak.image<br>
><br>
><br>
> Levente<br>
><br>
><br>
> On Sat, 13 Aug 2016, H. Hirzel wrote:<br>
><br>
>> Hello Levente<br>
>><br>
>> I can not figure out what to by reading<br>
>> <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>
>><br>
>> For example I do not know which VM I have as they seem to be renamed<br>
>> to just squeak.<br>
>> /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak<br>
>><br>
>><br>
>> So it is difficult to find out which of the remarks in<br>
>> <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>
>> apply.<br>
>><br>
>> I think it is the task of the script<br>
>> squeak.sh<br>
>><br>
>> to tell me more what to do (script copied in below)<br>
>><br>
>> --Hannes<br>
>><br>
>><br>
>><br>
>> On 8/13/16, Levente Uzonyi <<a href="mailto:leves@caesar.elte.hu" target="_blank">leves@caesar.elte.hu</a>> wrote:<br>
>>> Hi Hannes,<br>
>>><br>
>>> It's a VM bug that it prints the wrong URL. You get this error message,<br>
>>> because you haven't allowed Squeak to use higher process priorities.<br>
>>> Try this link:<br>
>>> <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>
>>><br>
>>> Levente<br>
>>><br>
>>> On Sat, 13 Aug 2016, H. Hirzel wrote:<br>
>>><br>
>>>> Hello<br>
>>>><br>
>>>> On Ubuntu 14.04.1 I get an error with All-in-one-64bit,<br>
>>>><br>
>>>> user8@user8-Latitude:~$ chmod +x squeak.sh<br>
>>>> user8@user8-Latitude:~$ ./squeak.sh<br>
>>>> /home/user8/Squeak5.1beta-16420-64bit-r201608051639-All-in-One.app/Contents/Linux-x86_64/bin/squeak<br>
>>>> pthread_setschedparam failed: Operation not permitted<br>
>>>> Read e.g.<br>
>>>> <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>
>>>> user8@user8-Latitude:~$ uname -a<br>
>>>> Linux user8-Latitude-E6410 3.19.0-25-generic #26~14.04.1-Ubuntu SMP<br>
>>>> Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux<br>
>>>> user8@user8-Latitude:~$<br>
>>>><br>
>>>><br>
>>>> The requested URL /files/Cog/VM/VM.r201608051639/README.201608051639<br>
>>>> was not found on this server.<br>
>>>><br>
>>>> Additionally, a 404 Not Found error was encountered while trying to<br>
>>>> use an ErrorDocument to handle the request.<br>
>>>><br>
>>>> Best wishes<br>
>>>><br>
>>>> Hannes<br>
>>>><br>
>>>> On 8/13/16, marcel.taeumel <<a href="mailto:Marcel.Taeumel@hpi.de" target="_blank">Marcel.Taeumel@hpi.de</a>> wrote:<br>
>>>>> Hi there,<br>
>>>>><br>
>>>>> here are new builds:<br>
>>>>> <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>
>>>>> <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>
>>>>><br>
>>>>> Note that the VM version in the file name is true for 32-bit but not<br>
>>>>> so<br>
>>>>> true<br>
>>>>> for 64-bit because the 64-bit Windows VM is different but the version<br>
>>>>> comes<br>
>>>>> from the macOS VM, which is used to update the image.<br>
>>>>><br>
>>>>> Best,<br>
>>>>> Marcel<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> View this message in context:<br>
>>>>> <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>
>>>>> Sent from the Squeak - Dev mailing list archive at Nabble.com.<br>
>>>>><br>
>>>>><br>
>>>><br>
>>>><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
><br>
<br>
</blockquote></div></div></div>