Re: [rtl] the performance of linux run on MPC860

2000-03-30 Thread Richard Hendricks

Can you give details on exactly what you're talking about measuring
here?  Your numbers seem way off.  For example, with Metrowerks
using no OS, the following for loop:

  for( i = 0; i < 10; i++ )
  {
j = k+l;//K + L
k = j | l;  //J | L
  }

compiles to:

TestFunction1+0x28: 7fdde214 addr30,r29,r28
TestFunction1+0x2c: 7fdde378 or r29,r30,r28
TestFunction1+0x30: 3bff0001 addi   r31,r31, 0x1
TestFunction1+0x34: 3c62 addis  r3,r0,0x2
TestFunction1+0x38: 386386a0 addi   r3,r3,-0x7960
TestFunction1+0x3c: 7c1f1800 cmp0,r31,r3
TestFunction1+0x40: 4180ffe8 bc 0xc,0,TestFunction1+0x28

for just the loop.  Executing it with the caches off gives you:

Test Function 1, For loop (7 instructions per cycle)
End tick:   125354158
Start tick: 125003298
Diff:   350860
# clks  :   5613760
Clocks per cycle:56

With the caches on you get:

Test Function 1, For loop (7 instructions per cycle)
End tick:   176033722
Start tick: 175983715
Diff:   50007
# clks  :   800112
Clocks per cycle:8

It takes 8 clocks per cycle because of the bubble 
introduced by the branch at TestFunction1+0x40.

I suspect that your caches are turned off, or that you have not
set ICTRL to 0x7 to disable serialization.  Also check to
make sure that your UPM tables are up to snuff.

PS - With ICTRL set to 0x0, and no caches, the loop takes
68 clocks per cycle.  With caches, 26 clocks.  So be
sure that your code set ICTRL to 0x7, since it comes up
out of reset as 0x0.  In fact, if you compare your VxWorks
numbers against your Linux numbers, the difference is ~8.5,
which is the difference between ICTRL=0 W/no caches, and
ICTRL=0x7 W/caches.



[EMAIL PROTECTED] wrote:
> 
> RTLinux should run on an 860. Try the PPC V3 release.
> 
> On Wed, Mar 29, 2000 at 09:25:24PM +0800, shaolin zhang wrote:
> > Hi,
> >
> > Does anyone have test the performance of linux run on an MPC860 board? We have do 
>such a
> > test find that linux is very very slowly. Compare with pSOS and VxWorks the result 
>is can't accepted by our boss. and RTLinux cann't run on an 860 now, anyboday has a 
>good idea about it?
> >
> > some result is:
> >  Linux  pSOS  VxWorks
> >
> > for(;;) for local variable:  0.52  usec/times  23.81 usec/times  4.79 
>usec/times
> > for(;;) for global variable: 0.48  usec/times  9.58  usec/times  3.99 
>usec/times
> > while() for local variable:  0.57  usec/times  11.90 usec/times  5.78 
>usec/times
> > while() for global variable: 0.445 usec/times  11.90 usec/times  3.97 
>usec/times
> >
> >
> 
> --
> -
> Victor Yodaiken
> FSMLabs:  www.fsmlabs.com  www.rtlinux.com
> FSMLabs is a servicemark and a service of
> VJY Associates L.L.C, New Mexico.
> 
> ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-30 Thread Kenneth Johansson

shaolin zhang wrote:
> 
> Thanks for your response.
> I'm so sorry for the test result has some error.
> we has test the profermance of Linux on our mpc860 board with kernel 2.2.13.
> 
> result on 860 is

not making any sens.

What is this benchmark actually doing??
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-30 Thread Rob Taylor


> Thanks for your response.
> I'm so sorry for the test result has some error.
> we has test the profermance of Linux on our mpc860 board with kernel 2.2.13.
> 
> result on 860 is
> linux  pSOS  
>VxWorks
> for(;;) for local variable:  0.52  times/usec  23.81 times/usec 4.79 
>times/usec
> for(;;) for global variable:0.48  times/usec  9.58  times/usec  3.99 
>times/usec
> while() for local variable:0.57  times/usec 11.90 times/usec  5.78 
>times/usec
> while() for global variable:  0.445 times/usec11.90 times/usec  3.97 
>times/usec
> 
> result on Compiled "powerpc-linux-gcc -O2 "
> linux  pSOS  
>VxWorks
> for(;;) for local variable:  1.52   times/usec  23.81 times/usec 4.79 
>times/usec
> for(;;) for global variable:0.79  times/usec  9.58  times/usec  3.99 
>times/usec
> while() for local variable:2.018 times/usec 11.90 times/usec  5.78 
>times/usec
> while() for global variable:  0.908  times/usec11.90 times/usec  3.97 
>times/usec

yes, but what did you use to measure the times, what is the *actual*
code that you ran? have you switched your cache on?

Rob
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread shaolin zhang

Thanks for your response.
I'm so sorry for the test result has some error.
we has test the profermance of Linux on our mpc860 board with kernel 2.2.13.  

result on 860 is 
linux  pSOS
  VxWorks
for(;;) for local variable:  0.52  times/usec  23.81 times/usec 4.79 
times/usec
for(;;) for global variable:0.48  times/usec  9.58  times/usec  3.99 
times/usec
while() for local variable:0.57  times/usec 11.90 times/usec  5.78 
times/usec
while() for global variable:  0.445 times/usec11.90 times/usec  3.97 times/usec

result on Compiled "powerpc-linux-gcc -O2 "
linux  pSOS
  VxWorks
for(;;) for local variable:  1.52   times/usec  23.81 times/usec 4.79 
times/usec
for(;;) for global variable:0.79  times/usec  9.58  times/usec  3.99 
times/usec
while() for local variable:2.018 times/usec 11.90 times/usec  5.78 
times/usec
while() for global variable:  0.908  times/usec11.90 times/usec  3.97 
times/usec


- Original Message - 
From: Bernhard Kuhn <[EMAIL PROTECTED]>
To: Kulwinder Atwal <[EMAIL PROTECTED]>
Cc: shaolin zhang <[EMAIL PROTECTED]>; 
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 30, 2000 5:28 AM
Subject: Re: [rtl] the performance of linux run on MPC860


> Kulwinder Atwal wrote:
> > shaolin zhang wrote:
> > > some result is:
> >  Linux  pSOS  VxWorks
> > 
> > > for(;;) for local variable:  0.52  usec/times  23.81 usec/times  4.79 
>usec/times  
> > > for(;;) for global variable: 0.48  usec/times  9.58  usec/times  3.99 
>usec/times  
> > > while() for local variable:  0.57  usec/times  11.90 usec/times  5.78 
>usec/times  
> > > while() for global variable: 0.445 usec/times  11.90 usec/times  3.97 
>usec/times  
> >
> > Does not a lower time mean it runs faster?
> > It sounds like linux is running faster than pSOS and VxWorks.
> 
> 
> At least, it is rather unclear what the meassured values
> want to say anyway: how do you messure the execution time
> of an endless loop? :-)
> 
> Do you think this "Empty-Loop-Benchmarks" say anything usefull for
> a more complex application? I doupt, your main application
> is an endless loop without content (maybe, you posted the whole
> stuff in the linuxppc-mailinglist, but definitly not at
> the RTL-Mailinglist)
> 
> BTW: RTLinux will not speed up the execution time of loops. This
> only depends on the compiler. RTLinux just reduces latencies&jitters
> and gives you guaranteed response times.
> 
> Please, can you be a little more specific and tell us exactly
> how you did you performace tests including the code?
> 
> Bernhard
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
> 
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread yodaiken

RTLinux should run on an 860. Try the PPC V3 release.

On Wed, Mar 29, 2000 at 09:25:24PM +0800, shaolin zhang wrote:
> Hi,
> 
> Does anyone have test the performance of linux run on an MPC860 board? We have do 
>such a 
> test find that linux is very very slowly. Compare with pSOS and VxWorks the result 
>is can't accepted by our boss. and RTLinux cann't run on an 860 now, anyboday has a 
>good idea about it?
> 
> some result is:
>  Linux  pSOS  VxWorks
> 
> for(;;) for local variable:  0.52  usec/times  23.81 usec/times  4.79 usec/times 
> 
> for(;;) for global variable: 0.48  usec/times  9.58  usec/times  3.99 usec/times 
> 
> while() for local variable:  0.57  usec/times  11.90 usec/times  5.78 usec/times 
> 
> while() for global variable: 0.445 usec/times  11.90 usec/times  3.97 usec/times 
> 
> 
> 

-- 
-
Victor Yodaiken 
FSMLabs:  www.fsmlabs.com  www.rtlinux.com
FSMLabs is a servicemark and a service of 
VJY Associates L.L.C, New Mexico.

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread Wolfgang Denk

In message <[EMAIL PROTECTED]> you wrote:
> 
> Without knowing full details of the source code, it is impossible
> to tell what might be happening.  There's no description about
> what happens inside the loop, what compilers are used, etc.  It

It's also interesting to know if caches are enabled, etc.

Wolfgang

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
For every complex problem, there is a solution that is simple,  neat,
and wrong.   -- H. L. Mencken
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread Bernhard Kuhn

Kulwinder Atwal wrote:
> shaolin zhang wrote:
> > some result is:
>  Linux  pSOS  VxWorks
> 
> > for(;;) for local variable:  0.52  usec/times  23.81 usec/times  4.79 
>usec/times  
> > for(;;) for global variable: 0.48  usec/times  9.58  usec/times  3.99 
>usec/times  
> > while() for local variable:  0.57  usec/times  11.90 usec/times  5.78 
>usec/times  
> > while() for global variable: 0.445 usec/times  11.90 usec/times  3.97 
>usec/times  
>
> Does not a lower time mean it runs faster?
> It sounds like linux is running faster than pSOS and VxWorks.


At least, it is rather unclear what the meassured values
want to say anyway: how do you messure the execution time
of an endless loop? :-)

Do you think this "Empty-Loop-Benchmarks" say anything usefull for
a more complex application? I doupt, your main application
is an endless loop without content (maybe, you posted the whole
stuff in the linuxppc-mailinglist, but definitly not at
the RTL-Mailinglist)

BTW: RTLinux will not speed up the execution time of loops. This
only depends on the compiler. RTLinux just reduces latencies&jitters
and gives you guaranteed response times.

Please, can you be a little more specific and tell us exactly
how you did you performace tests including the code?

Bernhard
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread David Schleef

On Wed, Mar 29, 2000 at 01:57:30PM -0700, Kulwinder Atwal wrote:
> Does not a lower time mean it runs faster?
> It sounds like linux is running faster than pSOS and VxWorks.
> 
> Maybe I am mistaken by your test, but it sounds like Linux is faster.
> 
> - Kal.
> 


Without knowing full details of the source code, it is impossible
to tell what might be happening.  There's no description about
what happens inside the loop, what compilers are used, etc.  It
could simply be a matter of one compiler inserting an extra
memory operation, in order to be more correct or to make debugging
easier.



dave...

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] the performance of linux run on MPC860

2000-03-29 Thread Kulwinder Atwal

Does not a lower time mean it runs faster?
It sounds like linux is running faster than pSOS and VxWorks.

Maybe I am mistaken by your test, but it sounds like Linux is faster.

- Kal.

shaolin zhang wrote:
> 
>Part 1.1Type: Plain Text (text/plain)
>Encoding: base64
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] the performance of linux run on MPC860

2000-03-29 Thread shaolin zhang



Hi,
 
Does anyone have test the performance of linux run on an 
MPC860 board? We have do such a 
test find that linux is very very slowly. Compare with pSOS 
and VxWorks the result is can't accepted by our boss. and 
RTLinux cann't run on an 860 now, anyboday has a good idea about 
it?
 
some result is:
  
   
Linux  
pSOS  VxWorks
 
for(;;) for local 
variable:  0.52  usec/times  23.81 usec/times 
 4.79 usec/times  for(;;) for global 
variable: 0.48  usec/times  
9.58  usec/times  3.99 usec/times  while() for local 
variable:  0.57  usec/times  11.90 usec/times  
5.78 usec/times  while() for global 
variable: 0.445 usec/times  
11.90 usec/times  3.97 usec/times