PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

What's wrong with XScales after all?

ToTTenTranz · 11 Nov 2002, 18:22 UTC
Why do the 400Mhz of the PXA250 seem so disappointing?!
How is it possible that a CPU running at 400Mhz and having MMX and SSE extensions actually get slower than another one running at 206Mhz?


Is it only a software flaw, like the lack of optimization for that cpu, or are there also hardware issues?

Even if not having many L1 cache and floating point units, the XScale #should# at least have the performance of a Celeron at 300Mhz, right?

But a celeron at that speed is perfectly able to play tomb raider and quake1 at decent (playable) framerates, emulate gameboy without slowdowns, play divx movies at 240*320 without glitches, emulate GBA, SNES, Genesis etc... »»» which my Pocket LOOX isn't capable of!

So what's wrong with XScales? Why aren't they twice as fast as StrongARMs? They should be even faster than that on multimedia applications because of the added extensions!


Another question:
Is there any hope yet? I mean.. will microsoft release like a new version of PocketPC or GAPI that will take full advantage of the XScale architecture?

Or will the XScale be no more than a StrongARM with less power consumption?
The main issue with XScale is lack of OS optimization. We could see nearly a 50% increase in speed over 206MHz if optimizations were made.

But XScale does not have MMX or SSE extensions, atleast I'm pretty sure they don't. I don't know where you heard that... I do recall Intel saying something about adding MMX extensions to a new crop of portable processors, but that's ARMv11, not ARMv5 or ARMv6 (StrongARM and XScale, respectively).

There is a small hardware problem. Memory writes and moves are VERY slow, about a third of the speed of the older ARM processor. This can be worked around somewhat, but it is a major issue. Even with this, however, there is possiblity for XScale to run faster than it currently does, and slightly faster than it's older brother StrongARM.

Software optimizations are the major problem, though. The current batch of emulators are just so unoptimized that it's not even funny. They could easily, with optimizations, run on the SH3 processor at 133MHz. A lot of the things that are emulated run on ARM processors natively so it should be quite easy to make a lot of these emulators.
But the ARM processors are very slow at floating point operations, every mobile processor is. Floating point coprocessors use up a lot of power, and aren't really needed for the average PDA use so there's no point in having them.

The 400MHz XScale will never be twice as fast as a StrongARM at 206MHz. But it could potentially be faster, with OS optimizations and better hardware design. Microsoft has no plans to support XScale with PocketPC2002, and no plans for an update. The WindowsCE.NET OS has support for XScale, but that OS isn't available in PocketPC format and there is no known timetable for its release.
The XScale was designed with power consumption in mind, and performance was simply a consequence of this. The XScale IS the best mobile processor because of how well it works at low power. The XScale IS NOT a performance chip. It fills a gap that was desperately needed. Its performance is by no means lackluster, either, as it beats the 206MHz StrongARM processor in nearly every category.
Don't forget that intel has a lab set up where software developers can go in order to optimize their software for the new XScale processor.
The main issue with XScale is lack of OS optimization. We could see nearly a 50% increase in speed over 206MHz if optimizations were made.


Well, not exactly. Games like Pocket Quake take over the device nearly 100%. So regardless of how well the OS is optimized or performs it all comes down to the hardware and game itself.

Dan East
ToTTenTranz · 11 Nov 2002, 21:15 UTC
MooseMaster wrote:
But XScale does not have MMX or SSE extensions, atleast I'm pretty sure they don't. I don't know where you heard that... I do recall Intel saying something about adding MMX extensions to a new crop of portable processors, but that's ARMv11, not ARMv5 or ARMv6 (StrongARM and XScale, respectively).


http://www.intel.com/design/pca/prodbref/251669.htm
Doesn't this mean that the XScale architecture already has built-in support for MMX and SSE?
Or is the "Wireless MMX" another completely different thing?

Anyways, thanks for the reply.

Could it be that the Linux for ARM cpus works better and faster than the PocketPC, when using a XScale??
Ya, that Wireless MMX thing is not a part of every XScale PocketPC. It requires a seperate hardware architecture. Wireless MMX is not in PocketPCs yet.
ToTTenTranz · 11 Nov 2002, 21:32 UTC
And do you think it could be appliable to current PocketPCs through hardware add-ons, i.e. compact flash modules?
Dan, have you looked over that dev. library that intel released? If so, did you see anything useful in it that could help speed up quake a bit?
ToTTenTranz wrote:
And do you think it could be appliable to current PocketPCs through hardware add-ons, i.e. compact flash modules?
LOL! No, not a chance :D
Dan, I am completely with you.
I don't believe it's just a software issue. I am sure the OS is involved, but does not play the major role.

Anyway, look here for a similar discussion.
If I'm not mistaken, doesn't the XScale perform poorly in multi-word load and storing on non-optimized apps?
Sponge, you may be true. But you have to count the RAM bus interface.
Is this true for 16 bit and 32 bit interface?
sponge is right: and load and store of anything above a word is slightly slower... although as i am not an armV5 instruction expert there is probably something to make up for this loss.
Guys, I've done a lot of work in narrowing this down. There is something broken in the current rev of XScale chips with regard to memory access and I've written the benchmarks that prove it.

No OS mods, app tweaking, or new ARM5 compiler is going to fix this unless by chance you end up performing fewer read/writes to memory.

The 16-bit data path that people keep babbling about with the Toshiba e740 is the memory bus width to read/write the onboard ATI Imageon's video memory. The path to system memory is 32 bits, just as it is on the SA1110.
If Intel knew this, why would they set up an optimization lab for software? They've got to be doing SOMETHING else, maybe it could be even faster if they fixed the problem you mention.
Well there are new machine codes incorporated with the XScale, they might just be teaching how to use it.

And ya, the problem is with Memory Copies, Memory Fill is actually faster than StrongARM, but copying (reading?) is less than a third of the speed of StrongARM... I don't really understand why the that specific part is slower, but it is...
R0B wrote:
Dan, have you looked over that dev. library that intel released? If so, did you see anything useful in it that could help speed up quake a bit?



Yes, I've looked over the Intel Graphics Primitives pretty extensively. It would be extremely difficult to modify Quake to use those line rasterizers (which is all the library really contains, besides your usual trig, matrix, and fixed point routines). Their rasterizers require textures and output buffers to be 16 bit RGB 565. Quake uses palettized bitmaps. Plus the real issue with Quake is all the floating point math, which is higher level than that.

Dan East
Even if not having many L1 cache and floating point units, the XScale #should# at least have the performance of a Celeron at 300Mhz, right?


This is definately not the true!

Even old celerons are multi-pipeline CISC chips with a floating point unit. They can perform 3 or 4 instructions in the same clock cycle, and being a CISC chip the instructions can do far more (I think current athlons have at least 7/8 pipelines).

ARM chips on the other hand are RISC chips, and only have one pipeline. These things don't even have a divide operation!

In general a 300MHz celeron can be expected to be at least 4 times faster than a 300MHz ARM processor. As AMD are so keen on reminding us - MHz is a stupid way to compare processors.

Also remember that the XScale is not desined solely for PDA's - it's a general purpose embedded system processor.
P5s have two pipes, x and y. And it is unlikely that both are running full speed. Maybe on a good day you can get 1.5 operations a clock cycle, if everything is ordered optimally. I have a 400 K6/III that runs about as fast as my XScale 400, running similar (in job), super-optimized code.
OK, u and v pipes to be precise.
Digby:
There is something broken in the current rev of XScale chips with regard to memory access and I've written the benchmarks that prove it.


Yes indeed. The "earlier" XScale chips have "broken" cache systems and have to use work-arounds that make things horribly slow.

From one of the Linux mailing lists (ipaq at handhelds.org) I subscribe to (I chopped it):

Sent: Friday, 25 October 2002 3:02 AM
From: Nicolas Pitre
To: Steven Reddie
Cc: ipaq at handhelds.org
Subject: Re: [iPAQ] Any update on bugs in Intel Xscale CPU?

<snip>

All PXA250s prior version C0 have serious problems with the CPU cache and PCMCIA suport.

The PXA250 revision C0 and up (which is now called the PXA260) should be much better. At least Linux PCMCIA drivers work with it now.

<snip>

> It sounded like perhaps these bugs could be the cause of the multi-word
> load/store performance problems (rather than it being a design decision).

Nothing to do with that. Totally differnet issues. And the multi word load/store isn't a performance _problem_ either. It's just that on XScale
there are other instructions that can do the same thing faster in some cases.


(And reading his other posts Mr. Pitre knows what he's talking about).

Cheers,

Ref.
Guest · 15 Nov 2002, 22:32 UTC — ARM vs XSCALE
If you were to choose, which one would you get ARM or XSCALE ?
Probably an X-Scale becuase it uses less power so bat. life would last longer... which in most cases is the more important thing to look at after at least usable speed is cranked out.
is XSCALE compatible with programs written for ARM ???
Yes.

Dan East
Thank you very much...
I was worried about that, because in my downtime, I am a gamer and want to check out PocketQuake, DOOM, AOE, TOMBRAIDER, stuff like that..
Plus it looks like Ipaq'sare now all going to have XSCALE, so it should be good for a few years...
I've always wondered, why does it seem all the anonymous posters capitalize random words?
Who's Tom Braider?
One of the more respected people involved in Linux on the iPaqs.

BTW, got an experimental Linux running on my 3900 tonight, however Opie doesn't seem to work, so I gave up when I couldn't get the ppp connection working.
Spoge, are you serious? I was just makig fun of the how the guy slewed TOMB and RAIDER together into one word :/
(TSC)Bender · 16 Nov 2002, 16:17 UTC
:lol:
MooseMaster wrote:
Spoge, are you serious? I was just makig fun of the how the guy slewed TOMB and RAIDER together into one word :/


Well I'm confused now. Thought you meant the guy who wrote the e-mail.
Annoying Snails Master · 17 Nov 2002, 22:33 UTC
Pass the ketchup.
(TSC)Bender · 17 Nov 2002, 22:48 UTC
*Passes the ketchup*

Snails master - Hey its yellow!

- Yeah, its the new colored ketchup.

Snails master - What the...this is mustard!

*Runs*
I don't know, does this really sound that bad?

The workaround is to make sure all
cache lines are labeled "write-through"
at all times, whether the lines are
valid or not.

Erratum 120; see 100 for more fun. Nothing indicates that steeping C0 found the real fix, at least not as of October. 100 has been known for a year (workaround? disable WB). 120 since April 2002.

Yes indeed. The "earlier" XScale chips have "broken" cache systems and have to use work-arounds that make things horribly slow.
MooseMaster wrote:
what about salsa?

Now the only reason people like salsa, is because they like to say it...

Could you pass the SALSA?
Where's the SALSA?
There isn't any SALSA?
I need SALSA!

(let's see who knows where I got that from...)
Jerry Seinfeld speaking to George Costanza at a booth at Monk's Diner. It's the episode called "The Pitch" where they try to convince network execs to buy their "show about nothing."
grrrrr...

Seinfeld rocks. I've seen every episode.
Seinfeld is stupid... but I still watch it