Internal Buses, Explained | Introduction to Operating Systems

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

← 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 →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

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.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

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.

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?
A shared bus is one set of wires that every part uses in turn, while a point-to-point link joins exactly two ends. On a shared bus, the busiest part slows the others, and the bus can run no faster than its slowest user. Point-to-point links give each device its own lines, so several transfers happen at once, at the cost of more wires and chips.
How fast is a PCIe 3.0 x16 link?
A PCIe 3.0 x16 link carries almost 16,000 megabytes per second in each direction on paper. Each PCIe 3.0 lane moves about 985 megabytes per second one way, and the total is the per-lane rate times the number of lanes. Real transfers come out somewhat lower than these nominal figures, so treat them as a ceiling rather than an everyday speed.
How do you work out how many PCIe lanes a device needs?
Divide the device's speed by the per-lane rate of its PCIe generation, round up, then move to the next real link width. Widths come in x1, x2, x4, x8 and x16. A 3,000 megabyte per second device on PCIe 3.0 needs just over three lanes, so it uses an x4 link. A 5,000 megabyte per second card needs six lanes, which rounds up to x8.
Does putting a PCIe card in a bigger slot make it faster?
Not by itself, because a card uses only the lanes it was built for, and a device that cannot fill one lane gains nothing from more. A card can sit in a longer slot and work, using the lanes it needs. The real limit is how many lanes the slot is wired for, which can be fewer than its length suggests. A fast SSD built for four lanes runs slowly in a long slot that is wired for one.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

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

Introduction to Operating Systems
3 credits · NCCRS
Enroll →