CloudAcademia
EN

Cloud Computing · Module 01 · How Computers Work

Lab: Reading Your Own Computer's Specs

Lab30 minFoundationsMarkdown

Showing raw Markdown: the renderer could not load.

## Goal
Find the processor, cores, memory, storage and operating system of your own computer, then compare them with an invented cloud server offer and watch memory use change while you open apps.

## Objectives
- Find the processor, number of cores, RAM, storage and operating system of your own computer.
- Say what each number means (GHz, cores, GB) and which part of the computer it describes.
- Compare your computer with a cloud server offer written as "2 vCPU, 4 GB RAM, 50 GB disk".
- See that memory use goes up when you open apps and down when you close them.

## Prerequisites
- Any computer running Windows, macOS or Linux. A phone or tablet also works for a rough version of the steps, but menu names differ.
- Paper or a text file to write your answers.
- The [How Computers Work lesson](lesson.md) of this module.
- Linux only: a terminal. You run four short commands that only read information; they change nothing.

> [!WARNING]
> Every step only **looks** at your computer: nothing is installed, changed or deleted. The cloud offer "Small-2" is **invented** for this lab; it is not a real product or price. Menu names change between versions of Windows and macOS; if yours differ a little, look for the same words.

## Architecture
<figure class="diagram" style="--dg-w: 1000px"><svg xmlns="http://www.w3.org/2000/svg" class="dg" viewBox="0 0 1000 360" width="1000" height="360" role="img" aria-labelledby="computer-lab-architecture-title computer-lab-architecture-desc" font-family="Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif" xml:lang="en">
<title id="computer-lab-architecture-title">Lab scenario: read your computer&#x27;s specs and compare them with a cloud server offer</title>
<desc id="computer-lab-architecture-desc">On the left, your computer with four things to find: processor and cores, memory (RAM), storage and operating system, found in steps 1 to 3 (processor in step 1, memory in step 2, storage and operating system in step 3); memory is also watched in step 5. An arrow labelled step 4, compare, leads to an invented cloud server offer called Small-2 with 2 vCPU, 4 GB of RAM, a 50 GB disk and Ubuntu Linux.</desc>
<rect class="dg-bg" x="0.5" y="0.5" width="999" height="359" rx="16" fill="#ffffff" stroke="#e3e3dd"/>
<g class="dg-l1"><rect class="dg-tint" x="20" y="20" width="520" height="320" rx="16" fill="#f0f6f9" stroke="#9ac3d9" stroke-width="1.2" stroke-dasharray="6 5"/>
<g class="dg-icon" transform="translate(36 33) scale(0.7500)" fill="none" stroke="#0369a1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16"/></g>
<text x="62" y="47" font-size="13" class="dg-ink" fill="#0369a1" font-weight="700">Your computer</text></g>
<g class="dg-l7"><rect class="dg-tint" x="640" y="20" width="340" height="320" rx="16" fill="#f6f2fd" stroke="#c5a9f0" stroke-width="1.2" stroke-dasharray="6 5"/>
<g class="dg-icon" transform="translate(656 33) scale(0.7500)" fill="none" stroke="#6d28d9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/></g>
<text x="682" y="47" font-size="13" class="dg-ink" fill="#6d28d9" font-weight="700">An invented cloud offer</text></g>
<rect class="dg-card" x="40" y="60" width="480" height="58" rx="12" fill="#ffffff" stroke="#cfcfc8"/>
<g class="dg-l4"><g class="dg-icon" transform="translate(56 76) scale(1.2500)" fill="none" stroke="#c2410c" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect width="16" height="16" x="4" y="4" rx="2"/><rect width="6" height="6" x="9" y="9" rx="1"/><path d="M15 2v2"/><path d="M15 20v2"/><path d="M2 15h2"/><path d="M2 9h2"/><path d="M20 15h2"/><path d="M20 9h2"/><path d="M9 2v2"/><path d="M9 20v2"/></g></g>
<g class="dg-l4"><text x="98" y="97" font-size="14" class="dg-ink" fill="#c2410c" font-weight="700">Processor and cores</text></g>
<text x="500" y="94" font-size="12" class="dg-muted" fill="#5c5c68" font-weight="500" text-anchor="end">Step 1</text>
<rect class="dg-card" x="40" y="126" width="480" height="58" rx="12" fill="#ffffff" stroke="#cfcfc8"/>
<g class="dg-l1"><g class="dg-icon" transform="translate(56 142) scale(1.2500)" fill="none" stroke="#0369a1" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 19v-3"/><path d="M10 19v-3"/><path d="M14 19v-3"/><path d="M18 19v-3"/><path d="M8 11V9"/><path d="M16 11V9"/><path d="M12 11V9"/><path d="M2 15h20"/><path d="M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z"/></g></g>
<g class="dg-l1"><text x="98" y="163" font-size="14" class="dg-ink" fill="#0369a1" font-weight="700">Memory (RAM)</text></g>
<text x="500" y="160" font-size="12" class="dg-muted" fill="#5c5c68" font-weight="500" text-anchor="end">Steps 2 and 5</text>
<rect class="dg-card" x="40" y="192" width="480" height="58" rx="12" fill="#ffffff" stroke="#cfcfc8"/>
<g class="dg-l2"><g class="dg-icon" transform="translate(56 208) scale(1.2500)" fill="none" stroke="#15803d" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><line x1="22" x2="2" y1="12" y2="12"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/><line x1="6" x2="6.01" y1="16" y2="16"/><line x1="10" x2="10.01" y1="16" y2="16"/></g></g>
<g class="dg-l2"><text x="98" y="229" font-size="14" class="dg-ink" fill="#15803d" font-weight="700">Storage</text></g>
<text x="500" y="226" font-size="12" class="dg-muted" fill="#5c5c68" font-weight="500" text-anchor="end">Step 3</text>
<rect class="dg-card" x="40" y="258" width="480" height="58" rx="12" fill="#ffffff" stroke="#cfcfc8"/>
<g class="dg-l7"><g class="dg-icon" transform="translate(56 274) scale(1.2500)" fill="none" stroke="#6d28d9" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16"/></g></g>
<g class="dg-l7"><text x="98" y="295" font-size="14" class="dg-ink" fill="#6d28d9" font-weight="700">Operating system</text></g>
<text x="500" y="292" font-size="12" class="dg-muted" fill="#5c5c68" font-weight="500" text-anchor="end">Step 3</text>
<rect class="dg-card" x="660" y="70" width="300" height="200" rx="12" fill="#ffffff" stroke="#cfcfc8"/>
<g class="dg-l7"><g class="dg-icon" transform="translate(676 86) scale(1.2500)" fill="none" stroke="#6d28d9" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="8" x="2" y="2" rx="2"/><rect width="20" height="8" x="2" y="14" rx="2"/><path d="M6 6h.01"/><path d="M6 18h.01"/></g></g>
<g class="dg-l7"><text x="718" y="107" font-size="15" class="dg-ink" fill="#6d28d9" font-weight="700">Server &quot;Small-2&quot;</text></g>
<text x="678" y="138" font-size="12.5" class="dg-text" fill="#17171c" font-weight="500" font-family="JetBrains Mono, ui-monospace, Menlo, Consolas, monospace">2 vCPU</text>
<text x="678" y="158" font-size="12.5" class="dg-text" fill="#17171c" font-weight="500" font-family="JetBrains Mono, ui-monospace, Menlo, Consolas, monospace">4 GB RAM</text>
<text x="678" y="178" font-size="12.5" class="dg-text" fill="#17171c" font-weight="500" font-family="JetBrains Mono, ui-monospace, Menlo, Consolas, monospace">50 GB disk</text>
<text x="678" y="198" font-size="12.5" class="dg-text" fill="#17171c" font-weight="500" font-family="JetBrains Mono, ui-monospace, Menlo, Consolas, monospace">Ubuntu Linux</text>
<g class="dg-l1"><path class="dg-stroke" d="M542 180H632" stroke="#0369a1" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></g>
<g class="dg-l1"><path class="dg-stroke" d="M627 174l8 6-8 6" stroke="#0369a1" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></g>
<g class="dg-l1"><rect class="dg-bg-plain" x="558.68" y="144" width="56.64" height="24" rx="12" fill="#ffffff"/><text x="587" y="160.5" font-size="11.5" class="dg-ink" fill="#0369a1" font-weight="600" text-anchor="middle">Step 4</text></g>
</svg></figure>

*Figure 1. You read four facts from your computer, then compare them with the invented offer.*

Copy this table onto your paper and fill it in as you go.

| | Your computer | "Small-2" offer |
|---|---|---|
| Processor (name) | | not shown |
| Cores | | 2 vCPU |
| RAM | | 4 GB |
| Storage | | 50 GB |
| Operating system | | Ubuntu Linux |

## Steps

### Step 1 — Find your processor and its cores (6 min)
The processor is the cook. You want its name and how many cores it has.

**Windows**
1. Open **Settings > System > About**. Under **Device specifications**, the line **Processor** gives its name and speed in GHz.
2. Press **Ctrl + Shift + Esc** to open **Task Manager** (click **More details** if you see a small window), then open the **Performance** tab and click **CPU**. Bottom right: **Cores** and **Logical processors**.

**macOS**
1. Click the Apple menu, then **About This Mac**. The line **Chip** (Apple silicon) or **Processor** (Intel Macs) gives the name.
2. Click the Apple menu while holding the **Option** key, choose **System Information**, then **Hardware** in the left list. Look for **Total Number of Cores**.

**Linux** — copy this into a terminal and press Enter:

```bash
lscpu | grep -E 'Model name|^CPU\(s\):|Thread|Core|Socket'
```

Example output (yours will differ):

```text
CPU(s):                                  16
Model name:                              AMD Ryzen 7 5800X 8-Core Processor
Thread(s) per core:                      2
Core(s) per socket:                      8
Socket(s):                               1
```

What the command and each line mean:
- `lscpu` lists information about the processor. The `|` passes its output to `grep`, which keeps only the lines containing the words in quotes.
- `Model name` is the name of the processor.
- `Core(s) per socket` times `Socket(s)` is the number of **cores**: here 8 × 1 = 8. A socket is the place on the board where one processor sits; home computers have one.
- `Thread(s) per core` is how many "logical processors" each core offers (2 here, see the lesson's NOTE on hyper-threading).
- `CPU(s)` is the number of logical processors: 8 cores × 2 = 16.

Write down the processor name and the number of cores.

<details>
<summary>Check your reading</summary>

- On Windows, **Cores** is the real number of cores and **Logical processors** is the same number or twice as much. On Linux, `Core(s) per socket` is the cores and `CPU(s)` the logical processors.
- On a Mac with Apple silicon, the number of cores is shown as one total (for example 8 cores); the chip's cores are not hyper-threaded.
- The GHz figure (for example "3.60 GHz") is the clock speed: how many billions of steps one core takes per second. Phones and some laptops slow it down to save battery, so the number you see can be a "base" value.
- A modern laptop typically has between 4 and 16 cores.

</details>

### Step 2 — Find how much memory (RAM) you have (5 min)
Memory is the worktop. The number is in GB.

**Windows:** in **Settings > System > About**, read **Installed RAM**. In Task Manager, **Performance > Memory** shows the total at the top right and, below, how much is **In use** and **Available**.

**macOS:** **About This Mac** shows **Memory** (for example "16 GB").

**Linux:**

```bash
free -h
```

Example output (yours will differ):

```text
               total        used        free      shared  buff/cache   available
Mem:            31Gi       9.8Gi       1.2Gi       521Mi        21Gi        21Gi
Swap:           15Gi       468Ki        15Gi
```

What it means:
- `free` shows memory use; `-h` means "human-readable", so sizes appear in `Gi` (gibibytes, about the same as GB; see the lesson's NOTE) instead of raw numbers.
- On the `Mem:` line, `total` is the amount of RAM installed: here about 31 GB (a "32 GB" computer shows a little less).
- `used` is what apps are using right now, and `available` is what apps could still use.
- `buff/cache` is memory the system uses to remember recently read files so they open faster; it is released when an app needs the space.
- `Swap` is a piece of the storage the system can use as slow, emergency memory. Ignore it for now.

Write down the total RAM.

<details>
<summary>Check your reading</summary>

- Which number is the size of the worktop? The **total** (or Installed RAM, or Memory).
- Which number changes the most from minute to minute? `used`, or **In use**.
- Typical values today: 8 GB (basic), 16 GB (comfortable), 32 GB or more (heavy work such as video editing).

</details>

### Step 3 — Find your storage and operating system (6 min)
Storage is the pantry; the operating system is the manager.

**Windows:** **Settings > System > Storage** shows how much of your main drive is used. In Task Manager, **Performance > Disk** shows the drive's size and whether it is **SSD** or **HDD**. The operating system is under **Settings > System > About**, in **Windows specifications**: **Edition** and **Version**.

**macOS:** **About This Mac** shows the macOS name and version, and under **More Info...** (or **System Settings > General > Storage**) the size of the drive. The type is in **System Information > Storage**: most Macs sold in recent years have SSD storage.

**Linux:**

```bash
df -h ~
grep -E '^(NAME|VERSION)=' /etc/os-release
```

Example output (yours will differ):

```text
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3  930G  615G  312G  67% /home
NAME="Bazzite"
VERSION="44.20260919.0 (Kinoite)"
```

What it means:
- `df` shows disk space; `-h` makes sizes readable; `~` means "my home folder", where your files are, so the line describes the drive that holds them.
- `Size` is the capacity of the pantry (930 GB here), `Used` how much is full and `Avail` how much is left.
- The first `Filesystem` name is a technical name of the drive; you can ignore it. The `Mounted on` column is the place where the drive appears in the folder tree and can differ on your computer.
- The second command reads the file that names the operating system. `NAME` is the system (Linux has many "distributions", such as Ubuntu, Fedora or Debian) and `VERSION` its version.

Write down the storage size, how much is free and the operating system with its version.

<details>
<summary>Check your reading</summary>

- A drive sold as "1 TB" shows about 930 GB, as in the example: the lesson's unit NOTE explains why.
- If you are low on free space (less than 10-15%), the computer may feel slow and updates can fail.
- Windows, macOS and Linux are operating systems; "Bazzite", "Ubuntu" and "Fedora" are Linux distributions, i.e. different packages of the Linux system.

</details>

### Step 4 — Compare with a cloud server offer (5 min)
A company offers this server (invented): **Small-2, 2 vCPU, 4 GB RAM, 50 GB disk, Ubuntu Linux**. Fill in the right column of your table, then answer:

1. Which has more cores or vCPUs: your computer or Small-2?
2. Which has more RAM?
3. Which has more storage?
4. Is Small-2 a *powerful* computer? What would you use it for?
5. Which part of the offer isn't a number, and which part of the computer does it describe?

<details>
<summary>Show the answers</summary>

1. Almost certainly your computer. A typical laptop has 4 to 16 cores; Small-2 has 2 vCPU (virtual processors).
2. Probably your computer (8 to 32 GB against 4 GB).
3. Probably your computer: 256 GB or more against 50 GB.
4. It is a small computer: enough for a small website, a little database or learning, not for video editing or big games. Cloud providers offer many sizes, from this small to very large, and you pick the one that fits.
5. "Ubuntu Linux" is the operating system. A cloud server also needs one, exactly like your computer.

Your answers can differ if your computer is old or very small (for example a basic tablet). That is fine: the point is to compare the same four numbers.

</details>

### Step 5 — Watch memory use change (8 min)
Memory holds what is open. Let's see it move.

1. Open the memory display:
   - **Windows:** Task Manager > **Performance > Memory**. Read **In use**.
   - **macOS:** open **Activity Monitor** (press Cmd + Space, type its name, press Enter) and click the **Memory** tab. At the bottom, read **Memory Used**.
   - **Linux:** run `free -h` and read `used` on the `Mem:` line.
2. Write down the number now. Close every app you don't need first.
3. Open a web browser and load three or four pages, one with a video. Read the number again (on Linux run `free -h` again).
4. Open one more app, for example a photo viewer or a text editor. Read it again.
5. Close the browser and that app. Wait a few seconds and read it a last time.

<details>
<summary>What you should see</summary>

| Moment | Typical result |
|---|---|
| Before | Some GB already in use: the operating system and background apps |
| After the browser | Higher; browsers use a lot of memory, especially with many pages or video |
| After one more app | Slightly higher again |
| After closing | Lower again, though not always all the way back: the system keeps some things in memory to open them faster next time |

This is the worktop filling and clearing. When it is nearly full, the computer slows down because the system must use storage as a slow substitute (the `Swap` line). More RAM means more things open at once without slowing down.

</details>

## Verification
You are done when your table has all five rows filled in for your computer and you can answer these without looking:
- Which number is the size of the worktop and which the size of the pantry?
- What did the memory number do when you opened and closed apps?

## Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| You can't find the menu item | Your system version uses another name | Search the Settings or System Information window for "About", "Processor", "Memory" or "Storage" |
| Task Manager shows a tiny window | It opened in simple view | Click **More details** |
| `lscpu` or `free` says "command not found" | Unusual or minimal Linux installation | Run `cat /proc/cpuinfo` and `cat /proc/meminfo` instead (long, technical output); or use your desktop's "About" or "System" settings |
| Phone or tablet | Different menus | Settings > About phone (Android) or Settings > General > About (iOS): look for storage and model; memory is not always shown |
| Memory use doesn't go down after closing | The system keeps things in memory for speed | Normal; wait a minute, or restart to see a clean start |

## Challenge (optional)
Look up the price of a computer or phone you like and write its specs in the same form as the cloud offer: "X cores, Y GB RAM, Z GB storage". Is it more or less than Small-2? Then think about why a company would rent a server instead of buying a laptop.

## Cleanup
Nothing to clean up: this lab only reads information. You can close Task Manager, Activity Monitor or the terminal.

## What you learned
- Your computer's processor, cores, RAM, storage and operating system can be found in a few clicks or four read-only commands.
- Cores, GB of RAM and GB of storage describe the cook, the worktop and the pantry.
- A cloud offer lists the same parts, in the same units.
- Memory use rises when you open apps and falls when you close them.