Topic 1: Computer Organization; Operating Systems
- Ch. 1, 2.1-2.3, 2.12, 4.1, and 5.1-5.5 of CompOrg Book
- Ch. 2, 4.1-4.2, 6, 7, 13, 14.1, 18.1, 21, 22, 26, 36, 37, 39, and
40.1-40.2 of Comet Book
Arun Kumar
1
DSC 102 Systems for Scalable Analytics Arun Kumar Topic 1: - - PowerPoint PPT Presentation
DSC 102 Systems for Scalable Analytics Arun Kumar Topic 1: Computer Organization; Operating Systems Ch. 1, 2.1-2.3, 2.12, 4.1, and 5.1-5.5 of CompOrg Book Ch. 2, 4.1-4.2, 6, 7, 13, 14.1, 18.1, 21, 22, 26, 36, 37, 39, and 40.1-40.2 of Comet
1
2
3
4
https://www.webopedia.com/TERM/C/computer.html
5
6
Control Unit Arithmetic & Logic Unit Caches
Registers
7
8
9
10
11
12
13
14
15
16
17
18
19
23
i=1
20
21
https://docs.nvidia.com/deeplearning/sdk/mixed-precision-training/index.html
22
23
24
25
26
27
Control Unit Arithmetic & Logic Unit Caches
Registers
28
If interested in more details: https://www.youtube.com/watch?v=cNN_tTXABUA
29
30
105 – 106
A C C E S S C Y C L E S 107 – 108 100s
Cache
31
32
33
34
35
CU ALU Caches
Registers
tmp.csv tmp.py
36
37
38
If interested, some benchmark empirical comparisons: https://medium.com/datathings/benchmarking-blas-libraries-b57fb1c6dc7 https://github.com/andre-wojtowicz/blas-benchmarks https://eigen.tuxfamily.org/index.php?title=Benchmark
39
40
41
42
43
44
“System Call” APIs Process Management Main Memory Management Filesystems Device Drivers Networking Kernel Components
Functionality Virtualize processor; “Process” abstraction; Concurrency Virtualize Main Memory Virtualize disks; “File” abstraction; Persistence Talk to
devices Commun.
network Hardware device-specific programs Hardware
45
46
47
48
49
P1 Idle P2 P1 P2 …
50
51
52
P1 P2 P2 P2 P2 P3 10 20 30 40 50 60 70 80
Process Arrival Time Start Time Completion Time Response Time Turnaround Time P1 10 10 P2 10 50 10 50 P3 50 60 50 60 Avg: 20 40
53
P1 P3 P2 P2 P2 P2 10 20 30 40 50 60 70 80
Process Arrival Time Start Time Completion Time Response Time Turnaround Time P1 10 10 P2 20 60 20 60 P3 10 20 10 20 Avg: 10 30
(FIFO Avg: 20 and 40)
54
P2 P1 P2 P3 P2 P2 P2 10 20 25 35 45 55 60 70 80
Process Arrival Time Start Time Completion Time Response Time Turnaround Time P1 10 10 20 10 P2 60 60 P3 25 25 35 10 Avg: 26.7
(SJF Avg: 10 and 30)
55
Process Arrival Time Start Time Completion Time Response Time Turnaround Time P1 20 20 P2 5 60 5 60 P3 10 30 10 30 Avg: 5 36.7 (SJF Avg: 10 & 30; SCTF Avg: 0 & 26.7)
P1 P2 P3 P1 P2 P3 P2 P2 P2 P2 P2 P2 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75
56
57
58
CPU 1: P1 P1 P3 P3 P3 P3 P1 P1 P1 CPU 2: P2 P2 P2 P1 P1 P2 P2 P3 P3 10 20 30 40 50 60 70 80
59
60
61
62
63
64
65
66
67
68
69
70
71
If interested in reading more: https://towardsdatascience.com/preventing-the-death-of-the-dataframe-8bca1c0f83c8
72
73
74
75
76
77
105 – 106
A C C E S S C Y C L E S 107 – 108 100s
Cache
78
79
80
81
82
83
84
85
86
105 – 106
A C C E S S C Y C L E S 107 – 108 100s
Cache
87
88
89
90
91
92
93
94
95
96
97
105 – 106
A C C E S S C Y C L E S 107 – 108 100s
Cache
98
99
100