Computer Hardware Flashcards

1
Q

CPUs and device _______ are connected through a common bus to a _______ memory

A

controllers, shared

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a uniprocessor?

A

one processor with a single core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

High _____ is important for a uniprocessor

A

frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Pre early 2000’s, ______ doubled in processors every 18 months

A

frequency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Post 2005, ______ ____ doubled in processors every 18 months

A

core count

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a multicore processor?

A

one processor with multiple cores

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A multicore processor contains both shared and core-private ______

A

caches

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

________ allows a core to execute more than one thread

A

hyper-threading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Multiple threads on one core still share caches, ______, etc

A

registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Extra threads from hyper threading show up to the OS as additional _____ or ___

A

cores, CPUs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mainstream servers using a multisocket motherboard usually have - sockets

A

2, 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does NUMA stand for?

A

Non-Uniform Memory Access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a NUMA node?

A

A processor and its local memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Accessing _____ memory is faster than _____ memory in other NUMA nodes. This is known as the NUMA effect.

A

local, remote

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

An _________ is a communication medium that connect processors to processors or processors to memory in NUMA nodes

A

Interconnect

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does numactl do?

A

Control NUMA policy for processes or shared memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does htop do?

A

Interactive process viewer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is Moore’s law?

A

the principle that the speed and capability of computers can be expected to double every two years, as a result of increases in the number of transistors a microchip can contain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Parallelism is offered by ______ ______ and ________

A

Hyper threading, Multi-core and multi-socket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What are the seven layers in the memory/storage hierarchy. (smallest to biggest)

A

Registers, L1, L2, L3, Main memory, Persistent memory, Flash/disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The lower levels of the storage hierarchy contains the ______ of higher levels

A

contents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

____, __, __, __ are examples of volatile SRAM

A

Registers, L1, L2, L3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Volatile DRAM is ______ memory

A

main

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

The _______ ______ points to the next instruction to execute

A

program counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Instructions and data moved between cache and memory in ______ ____ units

A

cache line

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Describe the fetch, decode, execute cycle in a CPU

A
  • Fetch next instruction: Instruction contains op-code and possibly data
  • Decode op-code
  • Execute op-code (using data if necessary)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Opcode instruction can include accessing data and moving between memory and _______

A

registers

28
Q

______ are 100x faster than main memory

A

registers

29
Q

What is the processor-memory gap?

A

CPU must bring data from memory to caches to registers

30
Q

L1 and L2 caches are typically _______

A

core-local

31
Q

___ cache is typically shared among all cores

A

L3

32
Q

There are many more cache lines of memory than there are ____in the cache

A

slots

33
Q

Cache lines are manage by a mapping function and _______ algorithm

A

replacement

34
Q

What does DRAM stand for?

A

dynamic random access memory

35
Q

What does it mean for memory to be volatile?

A

contents lost when power is out

36
Q

____ is used to hold basic information like the BIOS

A

ROM

37
Q

What is the basic building black of NAND flash memory?

A

floating gate transistors

38
Q

In NAND flash memory, the cells are organized in _____ and _____

A

blocks, pages

39
Q

In NAND flash memory, data can be written/read at the ____ level, while modifications must erase the _____

A

page, block

40
Q

What is a disadvantage of NAND flash memory?

A

Cell wears out (dies) after a certain number of erases

41
Q

How many threshold voltages does a multi-level cell for flash memory have?

A

3

42
Q

SSDs imitate the same interface as _____

A

disks

43
Q

The _____ ______ ______ (FTL) Maps flash blocks/pages to hard disk sectors using a mapping table

A

flash translation layer

44
Q

The _____ inside SSDs caches data, the FTl mapping table, and sometimes the battery

A

RAM

45
Q

Persistent memory is also known as _____ ______ ______ (NVM), ________ _____ ____ (NVRAM), or _______ ______ _____ (SCM)

A

Non-volatile memory, non-volatile RAM, storage class memory

46
Q

Persistent memory as ____________ like DRAM and _________ like flash memory

A

byte-addressable, persistent

47
Q

Persistent memory types include NVDIMM-_ (which is fast, small, and expensive), NVDIMM-_ (which is slow, large, cheap), and _______DC DIMM (which is balanced)

A

N, F, Optane

48
Q

What does df do?

A

storage usage stats

49
Q

what does mount do?

A

Mount existing file systems for access, or show

currently mounted file systems

50
Q

What does iostat do?

A

Show storage I/O speeds

51
Q

what does free do?

A

Show memory usage

52
Q

Each device has its own _____

A

controller

53
Q

Each device is managed by a device _______

A

driver

54
Q

What does a device driver do?

A
  • Software to use the controller
  • Provides a uniform interface to the device for OS
  • Specific to hardware and the OS using the device
55
Q

Describe the process for reading a character from the keyboard

A

•CPU tells the keyboard controller “I need to read”
•By loading registers in the device, using device driver
•Keyboard controller knows “I got a read request”
•By examining the registers
•Keyboard receives a character and stores it in
local buffer. Now the keyboard controller needs to let the CPU know that the operation is finished
•This is done using interrupts

56
Q

An ______ is a single sent by hardware devices to the CPU

A

interrupt

57
Q

An ______ _______ ______ (ISR) (AKA interrupt handlers) stops the CPU from its current work to handle an interrupt

A

Interrupt service routine

58
Q

After a CPU executes the ISR, it resumes its _______ job

A

previous

59
Q

What is an Interrupt Vector?

A

A table indexed by device number whose entries contains address to the corresponding ISR

60
Q

An I/O interrupt is sent when…

A

the read or write operation is completed or ended in an error

61
Q

An timer expiry interrupt is sent when…

A

A regularly scheduled task beings or a task has exceeded its allocated time

62
Q

An program generated interrupt is sent when…

A

an instruction causes a hardware error condition (ex divide by 0)

63
Q

An Hardware failure interrupt is sent when…

A

hardware fails (ex parity error)

64
Q

_____ _______ for interrupts is when the CPU waits for an I/O operation to finish before executing other jobs

A

Busy waiting

65
Q

What is direct memory access for interrupts?

A

When a device transfers data from its local buffer directly into main memory.