Cog VM on Raspberry Pi ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Cog VM on Raspberry Pi ?

Sven Van Caekenberghe-2
Hi,

Does a (faster) Cog VM for the Raspberry Pi actually exist ?

I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
[version] 5.0 #50581

"http://files.pharo.org/vm/pharoS/raspbian/latest.zip"

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'167429692 bytecodes/sec; 11160247 sends/sec'

"http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

"https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?

Thx,

Sven

PS: Just for reference, my Mac Book Pro is 10 times faster

1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"


Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Denis Kudriashov
Hi.

2016-10-17 20:43 GMT+02:00 Sven Van Caekenberghe <[hidden email]>:
That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?

Thx,

Sven

PS: Just for reference, my Mac Book Pro is 10 times faster

I had same experience with beaglebone
 

1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"


Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Clément Béra
The VM you use is the fastest one available.

It's slower mostly due to non Smalltalk concerns (processor architecture, energy consumption, frequency, overall hardware). 

There is an abstraction over the back-ends in the JIT and it could be that overall the JIT is a little bit more optimised for intel than for ARM. But I would guess that's a 20% difference at most, if difference there is.

On Mon, Oct 17, 2016 at 11:15 PM, Denis Kudriashov <[hidden email]> wrote:
Hi.

2016-10-17 20:43 GMT+02:00 Sven Van Caekenberghe <[hidden email]>:
That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?

Thx,

Sven

PS: Just for reference, my Mac Book Pro is 10 times faster

I had same experience with beaglebone
 

1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"



Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Henrik Sperre Johansen
In reply to this post by Sven Van Caekenberghe-2

> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:
>
> Hi,
>
> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>
> I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):
>
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
> [version] 5.0 #50581
>
> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip"
>
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
> '167429692 bytecodes/sec; 11160247 sends/sec'
>
> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"
>
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
>
> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"
>
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
>
> That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?
>
> Thx,
>
> Sven
>
> PS: Just for reference, my Mac Book Pro is 10 times faster
>
> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
Are you 100% sure you benched different VM's?
A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...

At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
which, while still "slow", is a decent bump in speed compared to what you're seeing.

Cheers,
Henry

signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Sven Van Caekenberghe-2

> On 18 Oct 2016, at 14:29, Henrik Johansen <[hidden email]> wrote:
>
>
>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:
>>
>> Hi,
>>
>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>>
>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):
>>
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>> [version] 5.0 #50581
>>
>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip"
>>
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>> '167429692 bytecodes/sec; 11160247 sends/sec'
>>
>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"
>>
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>
>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"
>>
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>
>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?
>>
>> Thx,
>>
>> Sven
>>
>> PS: Just for reference, my Mac Book Pro is 10 times faster
>>
>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>
> Are you 100% sure you benched different VM's?
> A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
>
> At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
> which, while still "slow", is a decent bump in speed compared to what you're seeing.
>
> Cheers,
> Henry

Hi Henry,

That is exactly the kind of reference/experience I am looking for.
Could you please point me to the exact download URL you downloaded ?
I will happily test it ;-)

Thx,

Sven



Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

tblanchard
There is a scratch on cog vm as part of the standard raspbian distro.

Have you tried that?

> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe <[hidden email]> wrote:
>
>
>> On 18 Oct 2016, at 14:29, Henrik Johansen <[hidden email]> wrote:
>>
>>
>>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:
>>>
>>> Hi,
>>>
>>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>>>
>>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):
>>>
>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>>> [version] 5.0 #50581
>>>
>>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip"
>>>
>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>> '167429692 bytecodes/sec; 11160247 sends/sec'
>>>
>>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"
>>>
>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>
>>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"
>>>
>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>
>>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?
>>>
>>> Thx,
>>>
>>> Sven
>>>
>>> PS: Just for reference, my Mac Book Pro is 10 times faster
>>>
>>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>>
>> Are you 100% sure you benched different VM's?
>> A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
>>
>> At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
>> which, while still "slow", is a decent bump in speed compared to what you're seeing.
>>
>> Cheers,
>> Henry
>
> Hi Henry,
>
> That is exactly the kind of reference/experience I am looking for.
> Could you please point me to the exact download URL you downloaded ?
> I will happily test it ;-)
>
> Thx,
>
> Sven
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Sven Van Caekenberghe-2

> On 18 Oct 2016, at 22:16, Todd Blanchard <[hidden email]> wrote:
>
> There is a scratch on cog vm as part of the standard raspbian distro.
>
> Have you tried that?

The Squeak VMs that come with raspbian seem to be of the older variant (I am using Pharo 5).

You known, "This interpreter (vers. 6505) cannot read image file (vers. 6521)."

Still, in order to be sure we are talking about the exact same VM, version info is needed.

>> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe <[hidden email]> wrote:
>>
>>
>>> On 18 Oct 2016, at 14:29, Henrik Johansen <[hidden email]> wrote:
>>>
>>>
>>>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:
>>>>
>>>> Hi,
>>>>
>>>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>>>>
>>>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):
>>>>
>>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>>>> [version] 5.0 #50581
>>>>
>>>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip"
>>>>
>>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>> '167429692 bytecodes/sec; 11160247 sends/sec'
>>>>
>>>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"
>>>>
>>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>>
>>>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"
>>>>
>>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>>
>>>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?
>>>>
>>>> Thx,
>>>>
>>>> Sven
>>>>
>>>> PS: Just for reference, my Mac Book Pro is 10 times faster
>>>>
>>>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>>>
>>> Are you 100% sure you benched different VM's?
>>> A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
>>>
>>> At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
>>> which, while still "slow", is a decent bump in speed compared to what you're seeing.
>>>
>>> Cheers,
>>> Henry
>>
>> Hi Henry,
>>
>> That is exactly the kind of reference/experience I am looking for.
>> Could you please point me to the exact download URL you downloaded ?
>> I will happily test it ;-)
>>
>> Thx,
>>
>> Sven
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

EstebanLM
Hi Sven, 


should work. Name is bad but is an ARMv6 VM… did you tried it?

Esteban

On 18 Oct 2016, at 22:50, Sven Van Caekenberghe <[hidden email]> wrote:


On 18 Oct 2016, at 22:16, Todd Blanchard <[hidden email]> wrote:

There is a scratch on cog vm as part of the standard raspbian distro.

Have you tried that?

The Squeak VMs that come with raspbian seem to be of the older variant (I am using Pharo 5).

You known, "This interpreter (vers. 6505) cannot read image file (vers. 6521)."

Still, in order to be sure we are talking about the exact same VM, version info is needed.

On Oct 18, 2016, at 09:27, Sven Van Caekenberghe <[hidden email]> wrote:


On 18 Oct 2016, at 14:29, Henrik Johansen <[hidden email]> wrote:


On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:

Hi,

Does a (faster) Cog VM for the Raspberry Pi actually exist ?

I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
[version] 5.0 #50581

"http://files.pharo.org/vm/pharoS/raspbian/latest.zip"

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'167429692 bytecodes/sec; 11160247 sends/sec'

"http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

"https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?

Thx,

Sven

PS: Just for reference, my Mac Book Pro is 10 times faster

1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"

Are you 100% sure you benched different VM's?
A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...

At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
which, while still "slow", is a decent bump in speed compared to what you're seeing.

Cheers,
Henry

Hi Henry,

That is exactly the kind of reference/experience I am looking for.
Could you please point me to the exact download URL you downloaded ?
I will happily test it ;-)

Thx,

Sven








Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Sven Van Caekenberghe-2
Thanks, Esteban, that works:

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo --version
5.0-201610181220  Tue Oct 18 14:42:58 UTC 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-rsf.1951 uuid: c714858a-7f63-47bd-a9ec-4bc1350eead2 Oct 18 2016
StackToRegisterMappingCogit VMMaker.oscog-rsf.1951 uuid: c714858a-7f63-47bd-a9ec-4bc1350eead2 Oct 18 2016
VM: 201610181220 https://github.com/estebanlm/opensmalltalk-vm.git $ Date: Tue Oct 18 14:20:17 2016 +0200 $
Plugins: 201610181220 https://github.com/estebanlm/opensmalltalk-vm.git $
Linux testing-gce-a8263b5d-fc45-4502-a6e9-cbf3483c9374 4.4.0-42-generic #62~14.04.1-Ubuntu SMP Fri Oct 7 23:15:48 UTC 2016 armv7l GNU/Linux
plugin path: /home/pi/Pharo/pharo-arm-vm/ [default: /home/pi/Pharo/pharo-arm-vm/]

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo -vm-display-null Pharo.image printVersion
[version] 5.0 #50581

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo -vm-display-null Pharo.image eval '1 tinyBenchmarks'
'167210973 bytecodes/sec; 11337746 sends/sec'

Speed is similar to what I got before 160M bytecodes/s, 11M sends/s

Maybe all the VMs that I tried before were all Cog VMs ?

Is there still a stack VM (PharoS for ARM, 5.0) ?

> On 18 Oct 2016, at 22:56, Esteban Lorenzano <[hidden email]> wrote:
>
> Hi Sven,
>
> this vm: pharo-linux-i386.7237aa8.zip
>
> should work. Name is bad but is an ARMv6 VM… did you tried it?
>
> Esteban
>
>> On 18 Oct 2016, at 22:50, Sven Van Caekenberghe <[hidden email]> wrote:
>>
>>
>>> On 18 Oct 2016, at 22:16, Todd Blanchard <[hidden email]> wrote:
>>>
>>> There is a scratch on cog vm as part of the standard raspbian distro.
>>>
>>> Have you tried that?
>>
>> The Squeak VMs that come with raspbian seem to be of the older variant (I am using Pharo 5).
>>
>> You known, "This interpreter (vers. 6505) cannot read image file (vers. 6521)."
>>
>> Still, in order to be sure we are talking about the exact same VM, version info is needed.
>>
>>>> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe <[hidden email]> wrote:
>>>>
>>>>
>>>>> On 18 Oct 2016, at 14:29, Henrik Johansen <[hidden email]> wrote:
>>>>>
>>>>>
>>>>>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe <[hidden email]> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>>>>>>
>>>>>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to find that they are all equally fast (slow actually):
>>>>>>
>>>>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>>>>>> [version] 5.0 #50581
>>>>>>
>>>>>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip"
>>>>>>
>>>>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>>>> '167429692 bytecodes/sec; 11160247 sends/sec'
>>>>>>
>>>>>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz"
>>>>>>
>>>>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>>>>
>>>>>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz"
>>>>>>
>>>>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
>>>>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>>>>>
>>>>>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I missing something ?
>>>>>>
>>>>>> Thx,
>>>>>>
>>>>>> Sven
>>>>>>
>>>>>> PS: Just for reference, my Mac Book Pro is 10 times faster
>>>>>>
>>>>>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>>>>>
>>>>> Are you 100% sure you benched different VM's?
>>>>> A stack VM (PharoS) getting the same results as a Spur VM (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
>>>>>
>>>>> At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M sends....
>>>>> which, while still "slow", is a decent bump in speed compared to what you're seeing.
>>>>>
>>>>> Cheers,
>>>>> Henry
>>>>
>>>> Hi Henry,
>>>>
>>>> That is exactly the kind of reference/experience I am looking for.
>>>> Could you please point me to the exact download URL you downloaded ?
>>>> I will happily test it ;-)
>>>>
>>>> Thx,
>>>>
>>>> Sven
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>


Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Henrik Sperre Johansen
In reply to this post by Sven Van Caekenberghe-2


That's the one I downloaded/ran Pharo on.
Like Todd said, there's also a Spur VM shipped with raspbian (as part of nuscratch package, located in /usr/lib/squeak/5.*).
Unless you've already uninstalled scratch/is running on an OS other than Raspbian, downloading a Squeak image and running the tinyBenchmarks in an image launched by
squeak $PathToMyImage should give a good baseline, on my machine it yields comparable tinyBenchmark numbers to the above Pharo build.
(In fact, it runs Pharo 6 images as well, the difference is mostly in plugins it seems. I guess you'll encounter errors if opening a file browser that attempts to use the extended FilePlugin prims, for example)

I'd recommend focusing on verifying any externally interacting parts you intend to use work correctly, since that's generally the area that's most spotty.
For instance, while FFI plugin ships with Pharo VM, you may (as I did on cursory testing with the vm linked above) get failing float/double call tests (60262 image), or downright crashes due to illegal instructions (latest 5.0 image)  
OSProcessPlugin shipped (externally) with the squeak cog vm has been sort of hit-and-miss, on above pharo vm it's built internal and seems to be working (but curiously, has no canonical source version from which it was generated in the Modules list...).

If you plan on developing on the Pi rather than just deploying to, switching to Bitmapped Fonts asap is a good idea; iirc the work that was done to provide optimized arm-assembly primitives included (bitmap) font rendering.  
Disabling auto-complete and syntax-highlighting (that seem to tend to cause frequent noticeable pauses), and commenting out "write-entire-contents-to-file-every-keystroke" functionality from Playground code (so your SD-card doesn't die a premature death), are other small ways to make a less jarring experience of it.

Or, framework use allowing, you could save yourself a lot of work flow interruption frustration and develop using a Squeak image instead.

Cheers,
Henry

signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Henrik Sperre Johansen
In reply to this post by Sven Van Caekenberghe-2
There are two; without nuscratch package loaded, it's an old interpreter
(squeak script in /usr/bin launches /usr/lib/squeak/4.*), with nuscratch loaded (which it should be by default in recent Raspbian versions...), it's a cog vm. (squeak script in /usr/bin launches /usr/lib/squeak/5.*)

Cheers,
Henry

> On 18 Oct 2016, at 10:50 , Sven Van Caekenberghe <[hidden email]> wrote:
>
>
>> On 18 Oct 2016, at 22:16, Todd Blanchard <[hidden email]> wrote:
>>
>> There is a scratch on cog vm as part of the standard raspbian distro.
>>
>> Have you tried that?
>
> The Squeak VMs that come with raspbian seem to be of the older variant (I am using Pharo 5).
>
> You known, "This interpreter (vers. 6505) cannot read image file (vers. 6521)."
>
> Still, in order to be sure we are talking about the exact same VM, version info is needed.

signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Henrik Sperre Johansen
In reply to this post by Sven Van Caekenberghe-2

On 18 Oct 2016, at 11:11 , Sven Van Caekenberghe <[hidden email]> wrote:


Is there still a stack VM (PharoS for ARM, 5.0) ?

I downloaded the one you linked (http://files.pharo.org/vm/pharoS/raspbian/latest.zip), but it was a pre-spur VM, so I had to use 50496 from the "preSpur" folder.
It didn't recognize the -nodisplay parameter, so I had to open image normally to do tinyBenchmarks.
Performance was fairly bad compared to Cog Spur (34M bytecodes, 2M sends), and in general not suitable for live editing of a Pharo image at all (8 seconds to open a browser, etc), so if a newer does not exist, I doubt it makes sense to spend effort creating one that reads Spur images other than as an intellectual exercize with a Cog VM available. 

Cheers,
Henry

Version infos of vms I've ran, in order of age:


./phcogspurlinuxhtRPi/pharo -version
5.0-201610142319  Sat Oct 15 02:45:47 UTC 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-eem.1959 uuid: 2784931a-d7ba-431a-be8c-ec79b1e55684 Oct 15 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1959 uuid: 2784931a-d7ba-431a-be8c-ec79b1e55684 Oct 15 2016
VM: 201610142319 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Sat Oct 15 00:19:53 2016 +0100 $
Linux testing-gce-874b9d32-9a0b-447e-98d4-15ee5b4feaec 4.4.0-42-generic #62~14.04.1-Ubuntu SMP Fri Oct 7 23:15:48 UTC 2016 armv7l GNU/Linux
plugin path: ./phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319 [default: /home/veloxit/phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319/]

Included by nuscratch:

squeak -version
5.0-201608180858  Mon Aug 22 18:41:57 PDT 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-cb.1919 uuid: 00a8dd2a-bc8d-4552-b400-be781c8aabec Aug 22 2016
StackToRegisterMappingCogit VMMaker.oscog-cb.1919 uuid: 00a8dd2a-bc8d-4552-b400-be781c8aabec Aug 22 2016
VM: 201608180858 [hidden email]:Documents/Squeak/Rasbian-VM/vm $ Date: Thu Aug 18 10:58:48 2016 +0200 $
Plugins: 201608180858 [hidden email]:Documents/Squeak/Rasbian-VM/vm $
Linux Pi-3B-1 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
plugin path: /usr/lib/squeak/5.0-201608180858 [default: /usr/lib/squeak/5.0-201608180858/]


./PharoS/PharoS --version
3.9-7 #1 Thu Apr  9 14:59:10 CEST 2015 gcc 4.6.3 [Production ITHB VM]
StackInterpreter VMMaker.oscog-jeanbaptistearnaud.828 uuid: ba8d2ed6-70b9-4309-8bf0-9eda9c0d1c2d Apr  9 2015
https://github.com/pharo-project/pharo-vm.git Commit: 32d18ba0f2db9bee7f3bdbf16bdb24fe4801cfc5 Date: 2015-03-24 11:08:14 +0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #128
Linux pharo-contribution-raspberrypi-linux 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /home/veloxit/PharoS/ [default: /home/veloxit/PharoS/]

squeak.old (aka squeak , without nuscratch installed) (shell script doesn't forward to actual vm if not provided image path, hence the absolute):

/usr/lib/squeak/4.10.2-2614/squeakvm -version
4.10.2-2614 #1 XShm Sat Nov  8 01:32:22 UTC 2014 /usr/bin/cc
Linux bm-wb-01 3.16-trunk-armmp #1 SMP Debian 3.16-1~exp1 (2014-08-09) armv7l GNU/Linux
plugin path: /usr/lib/squeak/4.10.2-2614/ [default: /usr/lib/squeak/4.10.2-2614/]


signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cog VM on Raspberry Pi ?

Sven Van Caekenberghe-2
OK, thanks everybody for the replies, seems like I was looking at 3 basically identical VM's with Cog.

I went back to an older installation (on a RPi2), that performed way worse (being a stack interpreter):

volumio@audio359:~/pharo$ ./bin/PharoS --version
3.9-7 #1 Thu Mar 26 14:59:31 CET 2015 gcc 4.6.3 [Production ITHB VM]
StackInterpreter VMMaker.oscog-jeanbaptistearnaud.828 uuid: ba8d2ed6-70b9-4309-8bf0-9eda9c0d1c2d Mar 26 2015
https://github.com/pharo-project/pharo-vm.git Commit: 32d18ba0f2db9bee7f3bdbf16bdb24fe4801cfc5 Date: 2015-03-24 11:08:14 +0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #126
Linux pharo-contribution-raspberrypi-linux 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /home/volumio/pharo/bin/ [default: /home/volumio/pharo/bin/]

volumio@audio359:~/pharo$ ./bin/PharoS --nodisplay mpdc.image printVersion
[version] 4.0 #40624

volumio@audio359:~/pharo$ ./bin/PharoS --nodisplay mpdc.image eval '1 tinyBenchmarks'
'7866273 bytecodes/sec; 615105 sends/sec'

> On 19 Oct 2016, at 17:24, Henrik Johansen <[hidden email]> wrote:
>
>
>> On 18 Oct 2016, at 11:11 , Sven Van Caekenberghe <[hidden email]> wrote:
>>
>>
>> Is there still a stack VM (PharoS for ARM, 5.0) ?
>
> I downloaded the one you linked (http://files.pharo.org/vm/pharoS/raspbian/latest.zip), but it was a pre-spur VM, so I had to use 50496 from the "preSpur" folder.
> It didn't recognize the -nodisplay parameter, so I had to open image normally to do tinyBenchmarks.
> Performance was fairly bad compared to Cog Spur (34M bytecodes, 2M sends), and in general not suitable for live editing of a Pharo image at all (8 seconds to open a browser, etc), so if a newer does not exist, I doubt it makes sense to spend effort creating one that reads Spur images other than as an intellectual exercize with a Cog VM available.
>
> Cheers,
> Henry
>
> Version infos of vms I've ran, in order of age:
>
> http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz :
>
> ./phcogspurlinuxhtRPi/pharo -version
> 5.0-201610142319  Sat Oct 15 02:45:47 UTC 2016 gcc 4.9.2 [Production Spur VM]
> CoInterpreter VMMaker.oscog-eem.1959 uuid: 2784931a-d7ba-431a-be8c-ec79b1e55684 Oct 15 2016
> StackToRegisterMappingCogit VMMaker.oscog-eem.1959 uuid: 2784931a-d7ba-431a-be8c-ec79b1e55684 Oct 15 2016
> VM: 201610142319 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Sat Oct 15 00:19:53 2016 +0100 $
> Plugins: 201610142319 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
> Linux testing-gce-874b9d32-9a0b-447e-98d4-15ee5b4feaec 4.4.0-42-generic #62~14.04.1-Ubuntu SMP Fri Oct 7 23:15:48 UTC 2016 armv7l GNU/Linux
> plugin path: ./phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319 [default: /home/veloxit/phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319/]
>
> Included by nuscratch:
>
> squeak -version
> 5.0-201608180858  Mon Aug 22 18:41:57 PDT 2016 gcc 4.9.2 [Production Spur VM]
> CoInterpreter VMMaker.oscog-cb.1919 uuid: 00a8dd2a-bc8d-4552-b400-be781c8aabec Aug 22 2016
> StackToRegisterMappingCogit VMMaker.oscog-cb.1919 uuid: 00a8dd2a-bc8d-4552-b400-be781c8aabec Aug 22 2016
> VM: 201608180858 [hidden email]:Documents/Squeak/Rasbian-VM/vm $ Date: Thu Aug 18 10:58:48 2016 +0200 $
> Plugins: 201608180858 [hidden email]:Documents/Squeak/Rasbian-VM/vm $
> Linux Pi-3B-1 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
> plugin path: /usr/lib/squeak/5.0-201608180858 [default: /usr/lib/squeak/5.0-201608180858/]
>
> http://files.pharo.org/vm/pharoS/raspbian/latest.zip :
>
> ./PharoS/PharoS --version
> 3.9-7 #1 Thu Apr  9 14:59:10 CEST 2015 gcc 4.6.3 [Production ITHB VM]
> StackInterpreter VMMaker.oscog-jeanbaptistearnaud.828 uuid: ba8d2ed6-70b9-4309-8bf0-9eda9c0d1c2d Apr  9 2015
> https://github.com/pharo-project/pharo-vm.git Commit: 32d18ba0f2db9bee7f3bdbf16bdb24fe4801cfc5 Date: 2015-03-24 11:08:14 +0100 By: Esteban Lorenzano <[hidden email]> Jenkins build #128
> Linux pharo-contribution-raspberrypi-linux 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
> plugin path: /home/veloxit/PharoS/ [default: /home/veloxit/PharoS/]
>
> squeak.old (aka squeak , without nuscratch installed) (shell script doesn't forward to actual vm if not provided image path, hence the absolute):
>
> /usr/lib/squeak/4.10.2-2614/squeakvm -version
> 4.10.2-2614 #1 XShm Sat Nov  8 01:32:22 UTC 2014 /usr/bin/cc
> Linux bm-wb-01 3.16-trunk-armmp #1 SMP Debian 3.16-1~exp1 (2014-08-09) armv7l GNU/Linux
> plugin path: /usr/lib/squeak/4.10.2-2614/ [default: /usr/lib/squeak/4.10.2-2614/]
>