Socket F (4x4) is out....

Status
Not open for further replies.
Well, what I meant to say was:
I tried to explain it a few times, but you kept bringing up the same issues... so I don't think you really understood what I tried to say.
Now that I've tried to explain it yet again... did I get through this time?

If your right, and I'm not then cool. I didnt know we were disagreeing though, I was simply pointing out other details that you did not. Like the importance of the role of the process manager in a NUMA system.

Like I said though, if you see me say something that isnt correct, then correct me. Thats fine. You know more about this topic then I do, so I'll be glad to listen to you, and maybe learn a few tidbits that I didnt already know, or even correct a few tidbits that I didnt have correct. That is just fine.

As far as programming goes, I'm a noob. so anything you have to say about how programs operate, or how they interact with the OS has a lot of value, and I'd be interested in hearing it. If I am wrong, then I'll be glad for you to correct me on it.
 
This is not about how many threads you create, but what happens when you use threads on both CPUs that need to access the same memory (which is something you can't avoid in many cases...).



You are probably being confused by duby's statements. Ofcourse the application has to access the memory manager... perhaps not directly, but via some kind of library function (depends on what you call the memory manager... the entire library, or just the core functionality underneath)... But that's beside the point.
The point is that the application has to be aware of the fact that not all the threads it creates will have the same speed accessing all memory. The application has to be specifically optimized so that it minimizes cross-CPU memory accesses. Which is something that has never occured on the desktop until now.
And this is where QX6700 has a huge advantage over 4x4. You don't have to rewrite software, and there are no issues with software that cannot be rewritten efficiently for NUMA (which does exist, in fact, I've written quite some of that stuff myself).

Ahhh ok I see what you are saying......thanks for the clarification........



....on topic on hand I see what you are saying and it makes sense, but do you know the technical reason, besides all four cores are one package, why the intel processors do not experience the same issue, because from my pov it seems to me, that intels 'quad core' is that the intel quads right now use two dies that still have to go through the fsb to communicate between the two dies and from really simplified view I see the same idea using two dies connected via either fsb or htt, but where both approaches differ is AMD is using two dies connected via htt on two packages, where as intel is doing two dies on one package connected via fsb.

Does something in the Intel 'gluing' process take care of multiple threads accessing the same memory for non NUMA aware threads??
 
Wow, I can't believe I actually said that. I feel like a dunce.

What I meant to say was that it doesn't say that the four cores are included in the platform, it just says the platform connects them.

It says the Quad FX platform is a multi-core, multi-socket solution. If AMD states that the Quad FX platform has multiple CPUs, can you at least concede that the CPU is part of the platform. Or do I have to continue to dig up AMD press releases where AMD touts processor technology as an advantage of their Quad FX platform. For example: why would AMD brag about the Quad FX being an AMD64 platform when AMD64's logic is in the CPU and not the motherboard? The only way the AMD platform supports AMD64 is if a CPU is installed.

Is it in anyway unclear that when AMD states:

AMD said:
The AMD Quad FX Platform is powered by pairs of the AMD Athlon™ 64 FX-70 series dual-core processors, the newest additions to the award-winning AMD Athlon 64 FX processor family. The new platform takes enthusiasts on a megatasking thrill ride, allowing them to make the most of their overall computing experience while gaming, editing audio/video and streaming high-definition content.

That the processors ARE part of the platform. I mean, the platform is powered by the FX. That's like saying the engine isn't a part of my car.

I just don't understand why this isn't perfectly clear. CPUs are a part of the platform. If you change the CPUs, then the platform changes. AMD wasn't as nice as Intel who just gave a freakin list that no one could argue with except to say that Intel was just plain wrong.

The only problem I have with the Quad FX platform are the FX-7x CPUs. The platform is not a platform at all without these CPUs. If these CPUs suck, then the platform also sucks until I have another CPU option. When I put the newer CPUs into the sockets, then the platform changes. Can we agree to this?
 
And again I tell ya, marketing noobs semantic error. After that it specifically says it is the HTT controller that makes the CPU combination possible.

Yeah, when AMD states something you disagree with, it's obviously an error. When Intel states something you disagree with, it's also an error. Do you believe that anything not coming from your mouth or hand is incorrect?
 
....on topic on hand I see what you are saying and it makes sense, but do you know the technical reason, besides all four cores are one package, why the intel processors do not experience the same issue, because from my pov it seems to me, that intels 'quad core' is that the intel quads right now use two dies that still have to go through the fsb to communicate between the two dies and from really simplified view I see the same idea using two dies connected via either fsb or htt, but where both approaches differ is AMD is using two dies connected via htt on two packages, where as intel is doing two dies on one package connected via fsb.

Does something in the Intel 'gluing' process take care of multiple threads accessing the same memory for non NUMA aware threads??

Well, the Intel system isn't NUMA to begin with. Just like with single-socket Athlon/Opteron systems, there is only one memory controller.
Indeed, Intel systems always have to go through the FSB... but the FSB is just more efficient than AMD's HTT-system.
All cores have the same overhead when accessing memory via the FSB. So there's no fast/slow issues...
There still is the issue of cache sharing on Intel systems though. But a cache already has a system for tracking reads/writes, and a cache has much higher bandwidth than memory, so it's far more efficient to keep both caches synchronized.
It's a similar issue as this NUMA-issue, it just has less of an impact... And it's not unique to the quadcore either... This issue also occurs on any multi-CPU system, and also on Pentium D and Athlon64 dualcores. Only Core Duo and Core2 Duo are the exception, since they have a shared L2-cache, which implicitly synchronizes the contents for both cores. I've done some experiments and I could get about 20% gain from utilizing the fact that I could share data in L2-cache with no additional overhead, compared to a Pentium D or Athlon64 which physically had to copy contents from one core's cache to the other.
 
Intel's platform is not NUMA, it is SMP. Which means they don't have the same issues as AMD has. NUMA is a lot more complex then SMP, because each CPU has it's own memory controller, where as Intel has one memory controller on the chipset that all CPU's access. On an Intel system, it doesn't matter where the memory is it will always be the same distance from the CPU no matter where the CPU is.

As far as "gluing" CPU's that is what is called a cache coherency. Intel uses a protocol called MESI, and AMD uses a slightly enhanced version called MOESI. I'm not sure exactly what the differences are.

AMD uses a switch that is built into the chip called the crossbar, which has all the cores, the memory controller, and the HTT controller connected to it through a device called the SRQ The SRQ is kinda like a port on the crossbar that other devices can connect through. The MOESI protocol uses this crossbar to keep cache between all cores up to date, this is how CPU's communicate. If the chip is on another socket, then the MOESI protocol is sent out the crossbar to the HTT controller to the other chip.

Intel uses the L2 cache to do this same thing. basically each core has a L2 controller that is connected to the L2 cache.... Cache is automatically coherent because they use the same cache. Now if it needs to talk to a chip on another socket then it uses the MESI protocol, which it sends out the FSB to the other chip.

It's alot more complicated then this, but it will give you a general idea.
 
The *real* problem is quite simple...
If AMD's HTT was as good as Intel's FSB, then the remote accesses would be as fast as Intel's regular accesses, and local accesses would be faster.
But Intel's FSB is so good that its accesses are already as fast if not faster than AMD's local access, in most cases (thanks largely to the incredible prefetching algo on the C2D... with Pentium it's much slower), so AMD's remote accesses look quite poor.

So basically the HTT-thing and NUMA sounds nice in theory, but in practice AMD's implementation is too poor and outdated to reach the full potential. AMD needs local accesses to keep up with Intel, else the performance drops way below.

The problem will only get worse with K8L on 4x4, because then there will be even more caches to synchronize and even more threads, so more chances of remote access, on the same slow HTT-bus.
It might get away with it because there are also twice as many cores grinding away at the code, but in the worst case the extra overhead will mean that all cores are working 100% while there is no extra performance gained over a 4-core system, because it's all lost in synchronization and remote access. Sometimes performance may even drop...
I know I tested an algo that ran slower on Pentium D and Athlon64 X2 when using 2 threads, because of this. So one thread meant you had another core entirely free, and you still got more performance than when you used the second thread.
 
how about some hard numbers to back up both sides, eh?

scali, i think that basing your assumptions on poorly coded programs that do worse in multithreading is a poor example of why htt is worse ;)

What exactly is a 'poorly coded program'? A program that is written for a specific generation of systems, which didn't take some performance penalties of future systems into account?
I'm not sure what you're driving at here, but I don't think calling my stuff 'poorly coded programs' while you know absolutely nothing about their design, purpose or targeted platforms is right. It feels quite like a flame actually.

Also I never said HTT is worse, nor did I use any examples to try and prove that.

Now, were you only trying to vent off some frustrations, or do you actually want to have a technical discussion on the issue?
If so, I suggest you get technical, just as I did when explaining the issue.
 
ok scali you mentioned that the intel pentium D suffers from this issue, right?

So core2duo does not because of the shared L2 cache that keeps the data synchronized right. But the current QX cpus are built in the same manner the Pentium D's are, two cores on one package, communicating with each other via FSB. Would that not mean the current QX core 2 duos suffer from the same affliction because each die has a separate L2 caches. The L2 cache from core0 and core1 are not then synchronized with the L2 cache from core2 and core3, so then would not the same problem occur, or am I missing something.


Also from what I have read the K8L cores will have a shared cache as well, does this then fix the problem?
 
ok scali you mentioned that the intel pentium D suffers from this issue, right?

So core2duo does not because of the L2 cache that keeps the data synchronized right. But the current QX cpus are built in the same manner the Pentium D's are, two cores on one package, communicating with each other via FSB. Would that not mean the current QX core 2 duos suffer from the same affliction because each die has a separate L2 caches. The L2 cache from core0 and core1 are not then synchronized with the L2 cache from core2 and core3, so then would not the same problem occur, or am I missing something.

That's right. You have to specifically try and keep core0 and core1 out of the way of core2 and core3 if you want to take full advantage of all cores.
But as I say, this problem occurs on any multi-CPU system aswell... basically it's no different than a system with two dualcore C2Ds. And on a system with one or more dualcore Athlons or Pentium-based Xeons, or single-core CPUs, you also get the cache-sharing issue, but even worse, since ALL caches have to be synchronized... the C2D at least has two cores with a shared cache.
In general I just write my software to avoid cache-sharing as much as possible, so it works fine on all these multithreading-capable systems.
In theory I could take some extra advantage from the shared L2-cache in C2D systems, but I haven't found a practical use for it yet (I experimented with it, and while the C2D did run the routine considerably better than non-shared L2 cache systems, the overall performance wasn't better than my alternative routine which ran fine on all systems).
Since it's a problem that occurs on so many systems, it's not a special consideration when writing software for QX CPUs. The NUMA-problem however is quite specific to AMD at the moment.

Also from what I have read the K8L cores will have a shared cache as well, does this then fix the problem?

Yes and no... The shared cache is an L3-cache that is added onto the current system, unlike the L2-cache that Intel has. So it will still be slower. There's still an extra level of caching to synchronize, and the actual L3-cache will also have lower performance than the L2-cache, so synchronizing is not as fast as on the Intel cache.
It's more of a patch than a proper fix.
 
Status
Not open for further replies.
Back
Top