You can use this lesson in your class!
Lesson: Hardware 2: Measuring Size (~25-minutes)
Completed

Lesson: Hardware 2: Measuring Size (~25-minutes)

Introduction

Every year better phones, laptops, and desktops come out. Part of what makes them better is that they hold more data.
This lesson discusses the terminology used to describe storage capacity so that you determine what you need to store your particular data and avoid tricky issues related to buying more storage.

Watch this 4-minute video explaining bits and bytes

Computing Architecture Storage Performance 01: Bits and Bytes

Was this helpful?

(Voting helps us personalize your learning experience!)

Bits and Bytes

  • Computer data is stored as 1’s and 0’s.
  • The smallest piece of information = bit, one of 2 states (21): 1 (+) or 0 (-)
  • 2 bits can store one of 4 states (22): 00, 01, 10, or 11

8-bits in a Byte

As shown in the animated gif below: one byte has 8 bits. One byte can store 28 states (i.e., 256 different states).

Bits and bytes
image resource

Was this helpful?

(Voting helps us personalize your learning experience!)

Bits to Yottabytes

  • The lowercase b represents bits.
  • The capital B represents bytes.
  • The most common measurements you will see are megabytes, gigabytes, and terabytes.
    • You'll see petabytes or exabytes mentioned when people are discussing supercomputers.
    • As of 2022, you will rarely if ever hear the terms for the larger quantities.
  • Assuming the commonly used base-10 system, except for the number of bits in a byte, each measure is larger than the previous by a factor of 1000.
  • Download the storage size cheatsheet.
  • This 5-minute video walks you through the different terms. The prefixes (e.g., kilo, mega, giga, etc.) are also used to describe speed and throughput which you will encounter in subsequent lessons.
Computing Architecture Storage Performance 02: Bits to Yottabytes

Was this helpful?

(Voting helps us personalize your learning experience!)

Summary

To evaluate, purchase and understand computer systems, you must understand the terminology used to describe storage capacity.
-First, you are most likely to encounter the terms megabyte (an MP3 song is ~ 1MB per minute); gigabyte (Your smart phone storage is likely 32-256 GB); terabyte (your computer hard drive is probably 1-4 terabytes).
-Second, each level represents ~1000-fold increase (e.g., one gigabyte is 1000 megabytes). (but see the base-2 vs base-10 distinction described below).



Base-2 and Base-10

  • Unfortunately, there are two systems for calculating the meaning of terms like megabyte, gigabyte, and terabyte. What I use here, and what hard drive manufacturers report is in base-10: e.g., a megabyte is one million bytes.
  • However, your computer reports in base-2, e.g., a megabyte is one million 24 thousand bytes 1,024,000. This base-2 measure is sometimes called a mebibyte (but do not rely on that!).

The base-2 vs base-10 issue has resulted in confusion and lawsuits.
Obviously, the base-10 system is easier.

Caution!
If your computer reports a directory is one-terabyte, that is base-2 (1024 GB). If you buy a one-terabyte drive to back it up, that'll be measured in base-10 (1000 GB), which means the drive will be too small to hold all your data! OUCH!

Watch this 4-minute overview of storage capacity:

Computing Architecture Storage Performance 03: Overview of Storage

Was this helpful?

(Voting helps us personalize your learning experience!)

Stop and think about these concepts and terms

bits
Bytes (8 bits)
Megabytes (1000 Kilobytes)
Gigabytes (1000 Megabytes)
Terabytes (1000 Gigabytes)
Petabytes (1000 Terabytes)
Exabytes (1000 Petabytes)
base-2 vs base-10 (why does it matter?)


What's Next

There is more to computer performance than the size of the storage. In subsequent lessons, you'll learn about speed, throughput, and 32-bit vs 64-bit architectures.