[squeak-dev] Re: [ANN] Squeak 5.1 Feature Freeze -- Trunk closed for new features; only bug fixes or text updates

Eliot Miranda eliot.miranda at gmail.com
Sun Aug 14 10:55:05 UTC 2016


Hi Marcel,

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

I'm glad you think so!  My only suggestion is that the logic be in its own script, called from squeak.sh so that we can keep squeak.sh as stable as possible while we evolve the setup script.

> Best,
> Marcel


_,,,^..^,,,_ (phone)


More information about the Squeak-dev mailing list