UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 5.8 Free with a free account
Internal Buses
Introduction to Operating Systems · Chapter 5: Peripheral Devices and I/O SystemsSection 5.8 · lesson 43 of 838 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Operating Systems.
Lesson complete
Earn the 3 college credits for Introduction to Operating Systems
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: Types of Storage Devices →← I/O PortsNext lesson: Types of Storage Devices →
A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →
In this lesson
How point-to-point links and PCIe lanes replaced the shared bus.
- Explain why the shared front-side bus became a bottleneck as processors sped up
- Describe how the memory controller, point-to-point links and the chipset divide traffic in modern designs
- Calculate PCIe bandwidth from lane count and generation, and pick the narrowest link a device needs
- Identify why a slot's wired lanes, not its length, set a card's speed
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,100 words). Read along, or search it.
Opening Scene
Many Parts Talking at Once
Sam, who runs a small online bakery, is playing a video game on the shop laptop after closing, while a download runs and music plays in the background. The graphics chip, the drive, the network chip, and the memory are all talking at once. Yet nothing seems to queue up. How? Inside the box, there isn't one road, but a whole road map: fast highways for the heavy traffic, and quiet side streets for the rest.
Background
The Front-Side Bus Bottleneck
In lesson 5.3, you met the system bus: a set of wires that every part shares, taking turns. A shared road is cheap, but there's a catch. When many parts share one road, the busiest one slows the others down. And the road can be no faster than the slowest part that must use it. Early PCs lived with that. The CPU talked to the rest of the machine over the front-side bus, to a helper chip called the northbridge, which handled memory and graphics. A second chip, the southbridge, handled the slower parts. As processors sped up, that single front-side bus became the bottleneck.
Modern Design
Memory Controller Moves Into the CPU
Designers fixed it in two steps. First, they moved the memory controller into the CPU itself, so memory talks to the CPU directly. Second, they replaced shared buses with fast point-to-point links: wires that join exactly two ends, and nobody else. The graphics card and a fast SSD each get their own. In many modern designs, the northbridge's jobs moved into the CPU, and a single chipset remains for the slower parts: USB ports, SATA drives, audio, and network chips.
Why It Matters
The Chipset Shapes Ports and Lanes
Why does the chipset matter to an operating system? When a driver talks to a device, the request travels through it. The chipset decides which devices exist, which ports are available, and how many lanes the CPU has left for add-in cards. When Ivy, who looks after the computers at a school, shops for a new motherboard for the lab, the chipset tells her how many USB ports and drive connections she can have.
Definition
PCI Express Is Built From Lanes
The main fast link today is PCI Express, or PCIe. Graphics cards, fast SSDs, and network cards use it. It's serial, like the links in lesson 5.7, and it's built from lanes. One lane is two pairs of wires: one pair to send, and one pair to receive. So traffic flows both ways at once. A device can use one lane, written x1, or four, or sixteen. There are also x2 and x8. More lanes means more traffic at once, like opening more lanes on a highway. A small sound or network card is happy with x1. A fast SSD often uses x4. And a graphics card usually takes x16.
Speed Rule
Lane Count Times Per-Lane Rate
Speed depends on two things: how many lanes, and which generation of PCIe. Each new generation roughly doubled the rate per lane. Per lane, in one direction, the nominal rates are: version 1.0, two hundred fifty megabytes per second. 2.0, five hundred. And 3.0, about nine hundred eighty-five. 4.0 gives about nineteen hundred seventy, and 5.0 about thirty-nine hundred forty. Now look at PCIe 3.0 by lane count. An x4 link is exactly four times an x1 link. And x16 is exactly sixteen times: almost sixteen thousand megabytes per second. That's why lane count is a headline number when you buy parts. These figures are nominal, the top on paper, so real transfers come out lower.
Worked Example
Sizing a Link From Device Speed
You can read it the other way, too. If you know a device's speed, divide by the per-lane rate, and round up. Take a device that moves three thousand megabytes per second. It needs three thousand divided by about nine hundred eighty-five. That's just over three, so it needs four PCIe 3.0 lanes. And link widths come in x1, x2, x4, x8, and x16. So that card would use an x4 link.
Quick Check
Picking a Link for a Capture Card
Quick check. A video capture card can move five thousand megabytes per second. The motherboard has PCIe 3.0 slots. What's the narrowest link that's enough: x4, x16, or x8? Pause, and work it out. Eight lanes. Five thousand divided by about nine hundred eighty-five is just over five, so the card needs at least six lanes. There's no x6 link, so it rounds up to the next real width: x8. x4 is the tempting pick, because five sounds close to four. But four lanes carry only about thirty-nine hundred megabytes per second, short of five thousand. And x16 works, but it's wider than needed.
Common Mistake
A Long Slot May Have Few Lanes
Here's a trap. A PCIe card can sit in a longer slot than it needs, and it works, using fewer lanes. But a card can't use more lanes than the slot actually connects. Sam bought a fast SSD card for the bakery's server, but it ran no faster than the old drive. Ivy opened the manual. This slot is wired for only one lane, she said, even though it's long. Your SSD is built for four. They moved it to the x4 slot, and the speed jumped. So check how many lanes a slot is wired for, not just how long it looks.
Big Picture
Why Private Links Beat a Shared Bus
Step back, and you can see why private links beat a shared bus. On a shared bus, there's one talker at a time. More devices means more waiting. With point-to-point links, each device has its own lines, so several conversations happen at once. It costs more wires and chips, but nobody waits for anybody. Private links also run very fast, because the path is short, with only two ends. It's the same lesson as serial against parallel: fewer things to line up, more speed.
Quick Check
A Sound Card in an x16 Slot
Quick check. A sound card needs about ten megabytes per second. Ivy moves it from an x1 slot into a spare x16 slot. What happens to its speed? Pause, and decide. About the same. The card only needs ten megabytes per second, far below what even one lane carries. The lane count is only the width of the road. Sixteen times faster is the common mistake. More lanes don't help a device that can't fill one. And an old PCIe generation gives each lane less than a new one, so lanes alone never tell the whole story. It won't stop working, either: a card can sit in a longer slot, and simply use fewer lanes.
Key Takeaways
Buses, Chipsets and PCIe Lanes
To recap. A shared bus makes everyone take turns. Point-to-point links give each device its own lines. The memory controller moved into the CPU, and the chipset connects the slower parts. PCIe is built from lanes, and its speed is the lane count times the per-lane rate of its generation. And a slot's length isn't its wiring, so check the lanes.
About Introduction to Operating Systems at UPI Study
Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: Linux vs Operating Systems
Why take it here
Why students take Introduction to Operating Systems with UPI Study
Where the credit goes
Universities that work with NCCRS
Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Internal Buses
What is the difference between a shared bus and a point-to-point link?
How fast is a PCIe 3.0 x16 link?
How do you work out how many PCIe lanes a device needs?
Does putting a PCIe card in a bigger slot make it faster?
About the Introduction to Operating Systems course
How many college credits is Introduction to Operating Systems?
How much does Introduction to Operating Systems cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Operating Systems take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Introduction to Operating Systems.
83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
Updated
3 credits · NCCRSEnroll →