12 ms·
Sandy Bridge: Setting Intel’s modern foundation
- ksec 3y agoSandy Bridge was the last CPU uArch changes that we got 20% IPC increase. Since then everything has been ~10% spread up with majority leaning towards floating point with new instructions. I often spend time wondering the transistor count difference between modern Efficiency Core and Sandy Bridge. If you compare the two [1], SandyBridge vs Gracemont. It is clear the difference where Gracemont Support for AVX, AVX2, FMA3 and AVX-VNNI instructions makes. The SandyBridge was fabbed on 32nm, Gracemont on Intel 7, would a modern SandyBridge on Intel 7 have similar die size as Gracemont? Or they could have sold me a SandyBridge on Intel 7 on a Raspberry Pi like devices. [1]https://browser.geekbench.com/v6/cpu/compare/2135149?baseline=1995726 https://browser.geekbench.com/v6/cpu/compare/2135149?baselin...
- passwordoops 3y agoApologies as this comment contributes nothing of real value to the conversation, but here goes: Everytime I see a post on this topic my mind reads "Sandy Hook" and I'm momentarily worried things on HN are taking a turn...
- nologic01 3y agoWhen you ponder the abstraction upon abstraction that a true "full stack" view of computation entails it induces vertigo. While somehow it "all works" in the end it is retains the sense of miracle associated with any sufficiently complex engineering. But I wonder to what extend the complexity and difficulty of redesigning this early layer to meet evolving computational needs is what creates the current sense of stagnation.
- undersuit 3y agohttps://make-linux-fast-again.com/ https://make-linux-fast-again.com/ is down but Sandy Bridge would appreciate the kernel parameters: noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off
- whalesalad 3y agoI still run an i7-3770k in my homelab (Ivy Bridge, the successor to Sandy Bridge, but still a relatively shared platform with backwards compat) and despite the fact that it's older than dirt it is still a pretty great processor to this day. Not too long ago it was powering my gaming rig and it held up really well to modern titles at 1080p. The best part is that I got it at a university surplus sale for $60, complete w/ a decent antec case, corsair psu, 16gb of ram and a decent Asus motherboard.
- generaltsos 3y agoI still run the i7-2600k which I purchased new along with the ASUS P8P67 Deluxe motherboard in 2011 (maybe 2012?). It's been overclocked and water cooled from the start, I believe somewhere in the neighborhood of 4.5 or 4.7 GHz, and despite updating my RAM and GPU during that time, I have had practically zero issues whatsoever with the CPU and motherboard. It's certainly not very performant when compared to newer generations of Intel CPU, but for a little bit of gaming here and there I really can't complain!
- seabrookmx 3y agoCheap ($35 USD) E5-2650v2 reporting in. Runs all my home server junk (plex, syncthing, etc) and my dev environment (an LXD container that I use via VSCode Remote SSH) without issue.
- Tool_of_Society 3y agoI have recently turned to the dark side of cheap ebay Xeon CPUs :P That's a nice chip for a super cheap price man.
- Tool_of_Society 3y agoI multibox games so I have quite a few systems you would qualify as "old as dirt" My secondary system is a sff hp/compaq business machine with an i7-3770 and 16 gb ram SSD GT1030 w/gddr5. It's my go to computer for when I need to go somewhere for a while. IT's small easy to pack and handles 1080p games pretty damned well. I'm sure modern "triple A" games would be upset at the lack of vram but I don't really care. I don't find many modern games to be worth my time. I bought the base machine off ebay for $50 bit over 5 years ago. I at one point had a stack of five SFF HP machines for manual multiboxing in a MMORPG. One i5-2500 2x i5-3470 and 2x i5-3470s all connected to USB numkey pads for easy hotkey usage. The i7-3770 CPU I picked up off ebay for $20 couple years later. My third box (still multiboxing) is an old rosewill case that I put an ebay dell optiplex 7010 mobo in with an e3-1230 (xeon i7-3770 basically). 16 GB ram SSD GTX660. Got the motherboard and cpu off ebay for about $30 total. Benchmarks put the e3 cpu within 1% of my i7-3770 cpu. E3-1230 CPUs are going for a fraction of the cost of an i7 3770 these days. I had originally intended to get a new low end cpu/mobo for this system (I have ddr4 ram sitting around etc) but the prices were out of reach for my budget. The e3-1230 was $12 shipped so I'm thinking of buying another to put in my other HP/compaq SFF machine that has an i5-3470 in it. I call this one my fourth system. It has 16 gb ram with a ssd in it. The GPU is an hd7570 1gb card I bought in 2018 for around $12. Funny story I ended up buying six of those cards for my stack of SFF because some porch pirate stole one of the cards. I'm sure they were happy to get a card that was worth at most 10 dollars shipped lol. All of these systems play almost all my steam games at 1080p. They also play World of warcraft, world of warships, warthunder, and such at 1080p. One of my SFF machines ended up at my sister's as a box for her kids to play games on. Cheap durable and easy to clean. All those systems use $20 SP 512GB SSD drives bought off amazon. Unbelievably cheap price for a drive that has vastly better performance than spinner drives. IF you had told me in the early 2000s that I would be using OEM components to game with I would of laughed at you. Then again if you had told me the current state of mainstream gaming I wouldn't of believed you either..
- unethical_ban 3y agoWhat an incredibly detailed write-up!
- deleted 3y ago[deleted]
- cheschire 3y ago"Sandy Bridge CPUs still deliver enough performance to remain usable across a range of everyday tasks." Do you have to disable spectre / meltdown OS-level mitigations for this to be true? I was surprised to see how far back[0] the vulnerabilities go. 0: https://www.techarp.com/guides/complete-meltdown-spectre-cpu-list/6/ https://www.techarp.com/guides/complete-meltdown-spectre-cpu...
- deleted 3y ago[deleted]
- Astronaut3315 3y agoSandy Bridge was hit harder than newer generations by those mitigations. It was a factor in my decision to retire my i5-2500k 5 years ago.
- pantalaimon 3y agoOn a personal machine, it's perfectly reasonable to set mitigations=off - the only place where I run untrusted code is the browser, and browsers had mitigations very early on.
- sweetjuly 3y agoBrowser mitigations are about protecting other parts of the browser from JS. Attacks against the kernel are intentionally left out of scope of these mitigations on the assumption that kernel mitigations will handle both JS->kernel as well as any other user process->kernel.
- pantalaimon 3y agoThose cache attacks rely on accurate timing because the method of data exfiltration is faster access to array members that were cached in a speculative access. By fudging the time (JS doesn't need ns or even µs accuracy) those issues are pretty much solved.
- zgluck 3y agoI mostly remember that generation for the corresponding chipset's failing SATA ports :(.
- user6723 3y agoOvercoming the legacy front side bus architecture, quick path interconnect opened the door for the advancements of software defined networking and software defined storage.
- dallyo 3y agoI'm still using a i5 2500k in my desktop PC, and it's still performing adequately. 12 years old!
- everseeking 3y agoStill rocking my i7-950, air-cooled overclocked to almost 4 Ghz for the last 14 years without a single major hiccup. Bi-annual cleaning and a re-paste every 2-3 years has probably helped. It finally showed its age though about 2 years ago when some new games required new instruction sets and couldn't launch at all. A new build is finally in the works.
- mrcarruthers 3y agoMy i7 2700k is still my Plex server/sometimes gaming rig (mostly game on the switch nowadays). With a 6650xt I was playing Spiderman at 1440p pretty well. I'll update it someday but I honestly don't really have a need to.
- sznio 3y agoSame. I'm replacing it next week though. Uncertainty around Taiwan was the thing that finally pushed me to upgrade.
- I_am_uncreative 3y agoI remember getting the 2500k my senior year of high school, for Christmas 2011. I held onto that thing for six years. Crazy powerful chip.
- Dalewyn 3y agoI'm using an Alder Lake i7 12700K machine now as my daily driver since last year (2022), but before that I was still using my Sandy Bridge i7 2700K machine I put together in 2012. That's 10~11 years of active service, and I still use it once in a while as a sub machine with no really noticable deficiencies. That 2700K's still more than powerful enough for most things I can throw at it today. I also still have a home server running that's built around a Sandy Bridge i3 2100, too. That CPU's overkill, let alone anything newer, for a server that just handles backups and LAN file sharing. Sandy Bridge was, in my opinion, the turning point when CPU performance finally met and outpaced common user demands for processing power. In generations prior it was commonplace for CPUs (and thus entire machines) to be upgraded every few years, because performance always became insufficient, but since Sandy Bridge it became practical to just keep using it for the better part of a decade if not more.
- windowsrookie 3y agoI'd make the argument that Core 2 Duo was the first 10+ year capable chip. For the avaerage person, A Core 2 Duo system from 2007-2008 could easily be used up to 2018. They are now starting to slow down quite a bit on modern web pages, but certainly still usable. The biggest thing holding them back is video decoding. I have a couple C2D MacBooks and the GPU has no hardware GPU decoding. It's crazy to think 2018 was 5 years ago....
- SomeRndName11 3y agoYep, owned i5 3470 for several years, and it was very fast for me. Bought 12500 only because I needed AVX512 (and it is the best AVX512 around, with FP16).
- refracture 3y agoI setup an i7 3770k system in 2012; ran it as my primary machine all the way until a couple years ago when I moved to a 5800x. This is Ivy Bridge, not Sandy, but frankly apart from Intel cheeping out on the TIM by using paste instead of soldering it may as well be the same.. arguably worse since Sandy could generally be overclocked further. That 3770k system got turned into a Proxmox server; pfsense, TrueNAS Core, few other misc low demand VMs. Here's the rub: I recently swapped the 3770k for a 3770 because the k model does not support VT-d for some reason.. I had to use PCI-E passthrough in order to use TrueNAS reliably (NICs and an LSi HBA for the six SATA drives). Really the biggest limitation for me is core count and ram, I'm maxed at 32 gigs and ZFS loves ram. There's other quibbles like Asus not issuing an updated bios to implement Microcode updates on my P8Z77-V, but the Linux kernel has mostly mitigated it in software to the point that the remaining vulnerabilities are the kind I'm not concerned with. I'm hoping to build a replacement next year. I would like to talk about how great my 3770k was for lasting so long but really it's just because for gaming there was little incentive for a long time.
- whalesalad 3y agoWhat a coincidence. I too have a proxmox server running on my 3770k with an LSI HBA flashed to IT mode, on the same motherboard. Fortunately it works with Proxmox and that is where I am running/managing ZFS. I never attempted to run TrueNAS w/ pass-thru so didn't encounter that VT-d issue.
- refracture 3y agoA coincidence indeed. It has been a solid platform all these years. Now the question is do you also have it housed in a green Corsair Vengeance C70? I presume since you're running an LSI HBA on the same board you also had to tape over the SMBus pins as well. I had debated just running all of the HBA (IT mode as well though I didn't mention it before) connected drives direct on Proxmox with ZFS to side step the VT-d issue but I had some other use cases necessitating PCI-E passthrough that I didn't have a workaround for. The non-k 3770 was cheap enough that I was willing to go for it.
- Dwedit 3y agoA 2500K (from 2011) can still beat the pants of off cheap laptops today.
- windowsrookie 3y agoThat's true unless you have a Micro Center nearby. I picked up a new Asus laptop with an i5 1135g7 for $250 about 6 months ago. They are selling a new Lenovo with an i3 1115g4 for $200 currently.
- deleted 3y ago[deleted]
- cheschire 3y agoThis was shockingly true. I had originally written (and deleted) a reply that discounted what you said not realizing that UserBenchmark had flipped the CPUs I searched for. The 2500K does legitimately stomp cheap laptops. Cheap Laptop: https://www.walmart.com/ip/443153637 https://www.walmart.com/ip/443153637 N4020 vs 2500K: https://cpu.userbenchmark.com/Compare/Intel-Core-i5-2500K-vs-Intel-Celeron-N4020/619vsm1134763 https://cpu.userbenchmark.com/Compare/Intel-Core-i5-2500K-vs...
- leptons 3y agoYeah but you're comparing a 95 Watt 2500k Desktop CPU to a 6 Watt N4020 Celeron laptop CPU. It's really not a fair comparison. If you want to cite more recent cheap laptop CPUs against a 95 Watt desktop CPU, maybe something like Intel Core i5-8265U @ 1.60GHz would be a better example. It's 1.45x faster than the 2500k and consumes only 15 watts, in a $270 Dell laptop.
- cheschire 3y agoYou know, that's a great point. I was trying to stick to what I thought was the spirit of the comparison by just grabbing the cheapest laptop I could find, but $270 is well within the "cheap" range, and the instructions per watt are significantly higher on that 8265U.
- johnklos 3y agoI love the detail in these writeups! I've been curious about the long term changes in performance, both positive (from toolchain and optimizer improvements) and negative (from Spectre / Meltdown and friends). Chips and Cheese did a similar writeup about Sandy Bridge's AMD contemporary, Bulldozer. I have a Bulldozer, so I've done some testing with interesting results. I'd love to find someone who has a Core i7 2600(K) / 2700(K) to do the corresponding tests on Sandy Bridge. Anyone?
- tech_ken 3y agoI wish I understood this, but lack a lot of the background in CPU architecture beyond a very superficial understanding (ex. what is meant by "branch prediction"). Can anyone recommend me a good source to help me get up to speed on this?
- neilmovva 3y agoI like this review: https://www.lighterra.com/papers/modernmicroprocessors/ https://www.lighterra.com/papers/modernmicroprocessors/ A bit dated, but the major ideas used in current CPUs are all covered!
- tech_ken 3y agoThis looks perfect for my needs, thanks a bunch!
- mrguyorama 3y agoYou're asking for a course in computer architecture. Buy a textbook. I recommend "Computer Systems" by J. Stanley Warford. We used the fourth edition in our class and I found it very enjoyable. It will cover all the way up from "How do you represent data in binary" to "how do you create an arbitrary digital logic circuit from a spec alone" to "here's a toy computer to play with".
- tech_ken 3y agoI'm aware what I was asking for. I appreciate the reference, seems like a good fit for my needs, have a good one!
- CalChris 3y agoIf you have a slow instruction like a load from memory, you could try to execute following instructions that don’t depend on the load (out of order). But what do you do when you run into a conditional branch? Conditional branches are taken and go somewhere else or they are not taken and just go to the next instruction. Branch prediction (really conditional branch prediction which is a form of speculative execution, think Spectre) is making that guess. Getting it right makes the code fast. Getting it wrong costs about 10-15 clock cycles and some lost energy. You can and Intel does throw anything at it, neural networks based on the stack return addresses, recent branch history, … anything.
- musictubes 3y agoI have always wondered where the bridge and lake nomenclature came from at Intel and why they keep them.
- brucethemoose2 3y agoI would argue Haswell is the real "still works great today" threshold, with its AVX2 support. eDRAM Broadwell is even more modern. Its got truly beefy integrated graphics and a Ryzen X3D like cache, but it largely flew under the radar at the time, and Intel never made anything quite like it again.
- undersuit 3y agoDDR4 had the same bandwidth as eDRAM so Skylake revised the setup[1] to purely take advantage of the latency. DDR5 is faster still. [1] https://en.wikichip.org/wiki/intel/microarchitectures/skylake_(client)#eDRAM_architectural_changes https://en.wikichip.org/wiki/intel/microarchitectures/skylak...
- terribleperson 3y agoI've been using a 5930k for... 8 years, maybe? It has certainly aged gracefully.