523 points · by ItsTotallyOn · 6y ago · 246 comments
I'd love to see what is possible with a tiny runtime/OS in the kilobyte size and running a microservice written in a native language off of each core, everything out of the L3 cache.
I imagine the throughput would be amazing. Single thread per core, e.g. cooperative multitasking. Do this for stream orientated workflows, or even for processing data that is in reasonable sized chunks, it might be screaming fast!
But that's inconvenient. You'd much rather be able to write your code in something like C. Any C code compiled by an ordinary compiler is going to access memory (at least for the stack). Writing and maintaining a custom C compiler for this is a lot of work and still comes with a lot of limitations on the C code that it will accept.
So they set up the cache in a way that it will never try to write its contents out to RAM. Then you can use the output of an ordinary C compiler that uses memory accesses and those accesses will all be served by the cache and never touch RAM. They call this "Cache as RAM".
With some work you could probably boot into DOS like this.
https://www.coreboot.org/data/yhlu/cache_as_ram_lb_09142006....
Thank you for sharing!
The optimism is premature. A CPU may flush cache even when it pages exactly the same page. Modern CPUs have too much of completely unfathomable prefetch, and cache coherence logic
If I had infinite money to spend I would build a hypercube out of these bad boys. each "atom" having 6 x8 PCIe connectors (up,down,left,right,front,back) with corner nodes dedicating a x16 PCIe port for I/O in and out of the cube.
Immerse that bad boy in flourinert and contemplates the deepest secrets of the universe :-)
[1] The (original?) Oak Ridge National Labs paper -- https://www.osti.gov/biblio/6487986-parallel-computing-hyper...
[2] https://www.nature.com/articles/313616b0.pdf?proof=trueIn
Edit: oh a bit of searching and it was in the order of thousands of microprocessors. It was called "Connection Machine", you can read about it in Wikipedia[0].
For the electricity grid in today's world, that's over-engineering things. The 60Hz electricity grid doesn't really need anything being changed at more than 600Hz, and considering your CPU core runs at 3,000,000,000Hz, you can totally waste a lot of cycles before you start missing deadlines.
[1] https://kx.com/
Disk, Network, or in-memory artifact reference would seem to be much bigger bottlenecks.
The majority of microservices I've written would fit into a system like this just fine.
NodeJS is built around the idea that a single thread of execution is enough for a stupidly large % of backend code. On top of that is ton of infrastructure to deploy slews of 100 line JS microservices that each do one thing.
So, back to basics. No VM, no disk at runtime, a single statically linked binary running on top of nearly bare metal.
Available memory is whatever space the program code doesn't take up.
Ignoring l3 being unaddressable, I wonder if UEFI applications are powerful enough to pull something like image deployment off.
This is probably all less efficient than the current Russian doll system of VMs and containers in use right now, but it is fun to imagine!
If you set the right config registers, you can map the cache to a linear address space and use it like RAM.
I think to do that, you loose access to actual RAM though, so it isn't awfully practical.
>I can see this being used to lift houses.
My evening has been made that much more interesting.
In theory all you'd need is some tight integration with the NIC (or a few of em!) and tiny driver that knows how to DMA to the NIC.
Larger problem of course is that L3 isn't addressable. I wonder how much money a cloud provider would have to pony up to AMD to get an exception to that? :)
A huge # of workloads would fit in 16MB with no storage hanging off. Heck I think every microservice I've ever written could manage that.
There have been some efforts of late to make a cloud first OS, honestly once you remove everything except for "talk to network controller" and "parse JSON", well so long as you don't mind writing in a language that isn't JS, a few MB is plenty for lots of workloads.
Also, in the same vein, I was surprised that double and single floating point cost per flop has stayed fairly stagnant the last couple years as NVIDIA seems focused on improving lower precision performance (ie for machine learning inference).
Yup - the Tesla V100 is 7 TFLOPs of double-precision at around ~$9000
A huge split between consumer & HPC happened in the aftermath of the Fermi (2010) architecture. Fermi was really bad in the consumer space from all the wasted die spent on unused double-precision. It was late, hot, and loud. And barely even faster than the competition.
With Maxwell Nvidia basically removed all the FP64 support from the architecture itself ( https://www.anandtech.com/show/9059/the-nvidia-geforce-gtx-t... - native FP64 rate is 1/32'd the FP32 rate) - the result was a huge boost to gaming performance. But it also meant that HPC users who want double-precision had to use Tesla cards. The actual architectures between GeForce & Tesla are different now, it's not "just" a lockout anymore.
I was very surprised it was this close. I thought the accelerator would be an order of magnitude cheaper per double Gflop. And AMD isn't using AVX512, yet.
[1]EDIT: Tesla v100s are still about 40% lower cost per Gflop than Epyc 7742, but still definitely the same order of magnitude, unlike my expectation.
It used to be that Intel was a good choice of money wasn’t really an object, but as time has gone on it has become harder to justify Intel chips regardless of the pricing.
They do still make CPUs though. Just incredibly slow ones currently: https://www.youtube.com/watch?v=-DanhnASClQ (although with guaranteed government funding TBD how much that changes)
AMD's platforms are similarly split, except that their mainstream desktop processors with integrated graphics are lagging behind the CPU-only processors by a generation.
If Intel sells $5 CPUs, will you change your mind? I don't understand the obsessive praise of AMD. Keep in mind that Jim Keller, an Intel ex-chip architect lead the AMD Zen platform when he was hired in 2013 (after working at Apple on the A4/A5 SOCs). It is the same dude competing against himself. Btw, he is back at Intel since 2018 to help Intel out.
I could have spent that money on a motherboard and some extra RAM, but didn't feel like doing the work. Meaning this was an upgrade from an under powered CPU to a newer chip that was not available when I did the build originally.
>> If Intel sells $5 CPUs, will you change your mind?
Sure, if they were selling i9s for $5.
But the OP's point is the opposite. "Regardless of the pricing" means even that if you ignored the huge costs of Intel's best CPUs they were generally the highest performance option given your unlimited budget.
That's not really the case anymore, except for very specific workloads.
> I don't understand the obsessive praise of AMD.
"obsessive" seems unnecessary. People are praising AMD because they are finally bringing performance competition to the CPU market, which is great for consumers.
Jim Keller's work at Intel should probably start showing up in 2021 or 2022... Could be pretty exciting, or Intel corporate politics could bury it all.
Jim's wikipedia page doesn't say he was ex-Intel employee when he joined AMD in 2013 to work on Zen.
It doesn't say what his favourite meal is, but he probably has one...
Based on Keller's work with the DEC Alpha, I was looking forward to investing in PASemi, but Apple acquired PASemi to design mobile chips before PASemi IPO'd.
At this point, Intel's move to 10nm processes is an embarrassment. I'm sure it's a difficult problem but historically Intel has been reasonably good at planning process advancements but in the case of 10nm they've been off by years. I believe the original goal was 2017? And we're still not there yet.
I would dearly love to see an honest postmortem of this and see what went wrong. Who made promises they'd miss by so much, why, what the issues were and so on.
The last PC I built (because apparently I still do that, even though it annoys me no end) has an Intel 9700 in it. At the time that was probably the best choice. 6 months later and it would no doubt have been a Ryzen.
I hope AMD keeps this up as we need the competition.
That, and Intel isn't an innovative company anymore. Now they are a process company riding on their manufacturing dominance and x86 market share. It looks a lot like Apple under Tim Cook, except add another decade since there was innovative leadership (Andy Grove). They are a few consultants removed from IBM at this point.
Ehh this is debatable. Apple has put out a few products that have completely changed the market under Cook's tenure. AirPods have introduced a new head phone paradigm. Apple Watch is waaaay ahead of the competition. The iPhone X made full screen phones mainstream and introduced UI gestures that were copied by Android.
Sure there have been some missteps cough butterfly keyboard cough but I’d say overall, they are still producing interesting products that define a large part of the consumer tech market
In contrast, the AirPods and Apple Watch are more straightforward "make 'em smaller" incremental moves. The engineering work is leading in many respects, but it doesn't upend a market.
And Intel does have a history that was like Apple's in parts. A big part of their advantage as the PC market heated up was in marketing an entire nomenclature of what the platform could be and to provide comprehensive path-of-least-resistance solutions around that, ensuring that the industry fell in line around their technical lead rather than IBM or some competitor.
Those bones are still there in parts of the company - Intel chipsets are pretty well regarded for dependability(seeing Windows crash because of Intel drivers is a very rare event) and they've been good at getting the corporate office to standardize on them - but increasingly the platform is getting defined around mobile and server needs, which are a more competitive space generally. Intel doesn't get to call the shots on 5G, for example - and huge data center customers are in the business of optimizing the system end-to-end to provide the most efficient general computing resource possible; everything they touch commoditizes, and they will put their foot down if they smell enterprise contract crap.
So much that got copied from Android in the meantime, the innovation of the iPhone is a long time ago :)
I have never seen someone use UI gestures.
Not sure what he is doing, but the only thing I see is updating iPhone and raising the price. In the meantime, losing market share in their most important market.
I'm pretty sure iPhones market share will sharply drop way with the current Covid situation worldwide. Not a good position while trying to get people onboard the digital services.
As will the expensive gadgets.
It depends how you define "Original". If it was the initial Tick Tock roadmap, 22 and 14 were Late, otherwise it was 2015. But then since both were 6 months late it was expected to be 2016, counting from initial 14nm launch.
We are now 4 years later and 10nm is barely working and yield. Although there were lots of promise during investor meetings of more 10nm products this year, it seems Intel wants to move pass 10nm as early as possible to 7nm and regain their lead by 2023 with 5nm. But judging Intel's recent record I am a little skeptical of their claims.
It wasn't a terrible idea at a high level, but the implementation was terribly complex and power-hungry, needing huge caches to compensate for its low instruction density. They also bet heavily on compiler advances that never materialized or materialized later than expected.
I can imagine an alternative history where Intel took the EPIC idea, but went more conservatively and focused on minimizing complexity and the total number of transistors, designing in such a way that allowed for complex power-hungry HPC optimizations later on, but didn't depend on them for the initial roll-out. This would have resulted in a lot of the potential of the idea for HPC being left on the table, but may have allowed them to have more initial success in the server market and would potentially allowed them to scale down to cell phones more easily than trying to scale Atom down to cell phones.
Hell Intel's i7 has finally caught up to the and fx octo 12 years later. Meanwhile the ryzen 8-16 core absolutely crushes anything intel has to offer regardless of price.
Intel may have been boring for the past 5 years, but suggesting they have not innovate since 2005 completely ignore the majority of tick tock execution they achieved.
Oh in 2005 or so they made rdram a verryyyyyyy slow thing
Bang for buck you can go back to 386 dx, And has always been killing intel.
Let's see I could buy an intel chip for a couple Grand and it cracks 10k on CPU cpubenchmark
Or buy a thousand dollar amd chip and get 40 cpu bench mark
I can't understand why anyone would ever buy intel
And as for stock prices intel has definitely been boring. Amd is kicking the shit out of intel
It's extremely predictable. Amd loses because of stupid shorttraders
And they get burned. Meanwhile amd had risen 2000+ percent in five years. Intel not so much
Edit for the downvoters please prove me wrong on anything. Amd is the winner Intel has been unimpressive for decades. Pick your horse because and is three Laos ahead
https://www.servethehome.com/amd-epyc-7f52-benchmarks-review...
https://www.avadirect.com/Tomcat-HX-S8030-S8030GM2NE-AMD-SoC... this is a $400 standard ATX board with 80 PCIe lanes (+ 16 more via risers). That's the equivalent of 160 3.0 PCIe lanes.
That said I have no idea how you would actually feed that many PCI-E lanes with an EPYC 7252, but if you can pull it off it's an insane $/lane value.
I presume you could build an insane fast fileserver with a real lot of M.2 disks and multiple 100GbE ports?
PCIe lanes don't work like that, lanes are the unit of allocation, a lane is a lane regardless of the speed it runs at.
But yes, you can put more bandwidth down a 4.0 lane... if your device supports it. Most of the devices you will be putting on a budget home system don't support it.
It would, hypothetically, be more desirable to have 160 PCIe 3.0 lanes than 80 4.0 lanes. Of course there is no system with that many, but I'd take 128 3.0 lanes over 80 4.0 lanes for sure.
There's no need to be pedantic here. Just about nothing uses a single 3.0 lane, especially not in a system where you care about having a big count. For anything that was using 2-16 lanes, doubling the speed is basically the same as doubling the number of lanes. Except for the extra benefit that the max allocation goes up.
> I'd take 128 3.0 lanes over 80 4.0 lanes for sure
Maybe you'd take that today. In a few years when more devices support 4.0 that's not a great tradeoff. Especially when you can put switch chips in front of your 3.0 devices to keep all your lanes saturated.
Isn't this just history repeating itself though? We could easily replace "Intel" with any number of previous market leaders that have fallen by the wayside.
I do.
Heck, among other examples, I remember the company being Intel, the market being x86 general purpose desktop/laptop processors, and the firm they blew their long-established unassailable lead to being AMD. I also remember AMD turning around much quicker and flubbing it back...
Actually, unless I'm mistaken, that happened twice before, the first time being the reason the now-universal standard for 64-bit x86 is what used to be “AMD64”.
> AMD gets the mindshare (which it is in the process of acquiring), with some lag those sales will start to die, and it'll be too late to do much about them then
AMD had the mindshare for quite a while before, but Intel was able to do enough about it that people apparently forget that it even happened. The market is fickle, and AMD is at least at good as flubbing advantaged positions as Intel, judging from history.
Sun Microsystems comes to mind. From revenue just behind Microsoft during the peak of the dot com era to a footnote in history in just two decades. Even IBM didn't drop the ball that badly.
IBM deciding that the home PC market wasn't a big deal?
GM's Electro Motive Division losing to General Electric (in railroad locomotives) is probably about at the same level.
- programming, docker, golang
- gaming
can anyone recommend a resource for determining the relative performance of processors? With all the new of how well AMD is doing, I’m still not sure how to look at a given task, and determine which processor would perform better.
Does anyone know of such a source?
Just get some nice fast DDR4-3600 CL16 RAM to go with it.
I recently built a gaming/developer PC, here is my part list (prices are NZD if you don’t want to have a heart attack):
https://pcpartpicker.com/list/2x4kb8
Handles any game I throw at it, and I can do 4K gaming for quite a few, though with 60Hz monitors you can see I’m not a hardcore gamer.
You can spend time gazing at the benchmarks for each CPU, but I would not pinpoint it as the bottleneck for a responsive and pleasant programming environment. The new AMD chips are good all around. The new Intels are still OK, but the top end probably too hot and loud to reccommend.
For gaming, high clocks/high single-threaded IPC remain the primary factors. Games are mostly designed towards a certain number of cores and speed of I/O. Fast disk and memory will reduce sources of stutter but this is dependent on how often the game tries to load something.
Others have mentioned Phoronix (linux benchmarking) but I would also recommend Level1Techs. They are the only reviewers I've found that actually (occasionally) dig into what kind of performance actually matters to developers.
Recently, they did a video on using the Threadripper 3990X for Unreal Engine game development[0]. Some useful insights came out of that, such as:
- Compilers favor large cache sizes (which favors AMD)
- Usually the biggest performance bottleneck isn't compiling the code, but running automated tests (especially when it involves running a bunch of VMs).
I guess there are more gaming benchmarks because there are much more gamers than software engineers.
> I guess there are more gaming benchmarks because there are much more gamers than software engineers.
That may be true, but I don't think that's a sufficient explanation. There are plenty of benchmarks for other professional workloads, such as CAD, 3D rendering, video editing, and mathematical modeling for financial or scientific applications.
Anandtech has a section of benchmarks with many workloads. I used that for years to assess CPU relative performance. https://www.anandtech.com/bench/CPU-2019/2224
You can also look at https://hwbot.org/benchmarks , but it's harder to use.
Another good resource would be: https://www.notebookcheck.net/Benchmarks-Tech.123.0.html
It depends on what you're shoving into docker, or how much you're building in golang...
As far as gaming, all the Ryzen 3000 series perform within a couple percent of any Intel CPU close to the price point... The 10900X might do another 3-5% better for gaming, but your electricty use will nearly double for that very minor increase, not worth it imo.
Edit: Corsair also offers 3200 kits I'm pretty sure, too lazy to look up their exact specs
One of the main value propositions (for a programmer) of going from a Ryzen 5 or Ryzen 7 to a Ryzen 9 is that you get double the amount of cache (and four times the amount of an Intel Core i9-9900K).
Both the 3900X and the 3950X have that extra cache. Aside from that, the extra 4 cores are going to have diminishing returns for most programmers, and the bump in boost clocks is minimal (though the ability to achieve those clocks with the same TDP as the 3900X is impressive).
That CPU is a bit outdated now, but just a nice benchmark to show the 3*x is definitely enough.
I built a high-end gaming machine about a year ago (Intel 8700k, Nvidia 2080TI). While its an extremely good machine, I find that I absolutely detest Windows, even for gaming. Its unusable for me for doing development work.
The hardware I picked, with the exception of the 2080TI, were oriented towards being Hackintosh compatible. That mainly includes the motherboard and cpu. I'm now contemplating purchasing a top of the line AMD gpu and moving ahead with the Hackintosh project. Another benefit to doing that switch is that the AMD products are a hell of a lot cheaper than Nvidia's while offering very competitive performance.
Now programming is difficult. You might want to check phoronix, they have some programming-related workloads, like compiling Linux kernel.
Also you might want to check geekbench. It consists of a several real-world usage tests like AES, etc.
But the others are right, you should be looking for a Ryzen 3000, depending on budget 3600, 3700X, 3900X or even 3950X.
Just one of many threads from the last few weeks:
https://www.reddit.com/r/Amd/comments/fyhl1g/tim_from_hardwa...
The idea was this was supposed to be what games care about, but it isn't. Modern games have issues with even 6c/6t CPUs, such as the horrible 1% lows on the 9600K in Far Cry 5: https://www.gamersnexus.net/hwreviews/3407-intel-i5-9600k-cp...
It looks like Userbench has since adjusted to weight up to 8 threads of performance? Which is maaaaybe less trash if all you care about is gaming. But the Core i5 series still tops charts on userbench despite reviewers no longer recommending the i5's due to performance inconsistency.
They even make ludicrous claims like that the 9100F is perfectly fine for gaming, and is even 10% better than a 2700X. They seem to be basing this decision entirely on older games or games specifically built for as broad a userbase as possible (eg, CSGO, Fortnite & Overwatch). Meanwhile actual reviews say things like "The quad-core Core i3-9100F was hopeless in Battlefield V, pretty bad in Assassin’s Creed: Odyssey, fairly useless in The Division 2, and weak in Shadow of the Tomb Raider." https://www.techspot.com/review/1983-intel-vs-amd-budget-cpu...
So even if you're an Intel fan, userbench is still a terrible way to pick a CPU.
It's still a very useful site for comparing niche hardware that will never get a true review - how does a J5005 compare to a i5 750? How does a Xeon E5-1650 compare to a Ryzen 1600? Probably not going to ever be directly tested. The only alternatives are things like Passmark that are much less accurate. UserBenchmark lets you compare against all kinds of niche or rare hardware at will, that's an incredibly valuable resource. Some people are just so butthurt about the "effective speed" composite scores that they can't bring themselves to scroll past a single line, which is a little ridiculous.
Generally r/AMD constantly gets their panties in a bunch about something or other, it's constant conspiracies about how this or that is a NVIDIA or Intel backed conspiracy. Don't take them too seriously.
At times they have sent death threats because they didn't like the conclusion of a review. After the initial Ryzen launch they decided that Steve from GamersNexus (among others) was an Intel shill and started threatening his family. iirc there have been other "incidents" as well.
https://www.reddit.com/r/Amd/comments/5xkw1b/gamersnexus_rec...
(most of those "removed" posts are people justifying it because Steve is an Intel shill who put out a "biased review")
They really take the whole fanboy thing to a whole new level. It is practically a uniquely toxic subreddit, even among other "brand" subreddits, more like a sports team sub or something.
As it happens I am awaiting delivery of a Ryzen 5 3600, good to know it's likely to be even better than userbenchmark suggested!
UB stores passwords in plaintext, and emails them around.
https://plaintextoffenders.com/post/183587319928/userbenchma...
https://github.com/plaintextoffenders/plaintextoffenders/blo...
I will say the last time AMD had a brief lead on Intel with Athlon, they laid on their laurels and started milking customers in record time. I think that was Hector Ruiz.
The last time, it was pretty clear from the mobile processors that the core engineering talent was somewhere in the company, I think the Core processor was from an Israeli team rather than the one pushing out the high-frequency pipeline-stalls-be-damned stuff.
But I get the feeling with the stunning, STUNNING process lead collapse that the engineering talent is fundamentally gone.
Intel had a two or three year lead it was thought at one point.
It’s like x every year vs cycling between 0 and 4x.
that gets better with the upcoming generation though, its more unified.
I also think there might be a niche for unikernels here to compile number crunching and other CPU-heavy tasks down to sizes that would run almost 100% from L3 cache. Wow.
All it takes is Intel to bin them with ECC Memory and renamed them to Xeon to compete.
And it seems AMD is in no hurry to release their Zen 3. Giving plenty of time for he market to digest their Zen 2. I just hope their Enterprise and Server Sales Department do better. Because right now, while on paper / benchmarks they are doing great, their sales figure aren't showing all the enthusiasm many sites and comments are claiming.
And that is speaking from an AMD shareholders.