Skip to content

Commit bfcbb96

Browse files
committed
up
1 parent 32a825b commit bfcbb96

3 files changed

Lines changed: 27 additions & 36 deletions

File tree

_CONTENT/eng/data/dist.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,29 +49,35 @@ rebalancing is expensive
4949
service discovery, request routing
5050
```
5151

52-
5352
## consistency
5453
linearizable: single copy illusion, single leader + election consensus + sync replication
54+
5555
causal: vector clocks + dependency tracking
56+
5657
eventual: async replication + conflict resolution
5758

5859
## consensus
5960
raft: majority ack, term number fencing
6061

61-
paxos
62-
pbft: o(n2)
63-
6462
## atomic commit
6563
2PC: ask all, commit if they all ack, like marriage, coordinator spof
6664
practical: 2pc + raft for coordinator failover
67-
k
65+
6866
## time and order
6967
NTP, GPS
7068

7169
lamport clock: single counter per process, can only tell if A happens-before B
70+
7271
vector clocks: list of counters per process, can detect concurrency, detects conflicts
72+
7373
version vector: each replica tracks versions of replicated data objects
7474

75+
```
76+
lamport int
77+
vector []int
78+
versions map[object]version
79+
```
80+
7581
## availability
7682
heartbeat pings with timeout, adapt to network conditions
7783
lease with ttl

_CONTENT/eng/os/proc.md

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
---
22
---
3-
## address space
43
```
5-
code <- PC program counter or IP instruction pointer
4+
address space
5+
code <- IP or PC
6+
instruction pointer or program counter
7+
data
8+
heap
9+
malloc
10+
stack <- SP
11+
params
12+
return address
13+
local vars
14+
open files
615
7-
data
8-
9-
stack <- SP
10-
return address
11-
open files
12-
params
13-
local vars
14-
15-
heap
16-
new()
17-
malloc()
18-
```
19-
20-
time sharing, save/load registers to switch ctx
21-
scheduler: policy vs mechanism
22-
23-
```
2416
fork()
2517
exec()
2618
wait()
@@ -36,9 +28,7 @@ pthread
3628
cond
3729
wait
3830
signal
39-
```
4031
41-
```
4232
IPC
4333
shared memory
4434
threads
@@ -53,12 +43,10 @@ signals
5343
SIGINT
5444
SIGTERM
5545
SIGHUP
56-
```
5746
58-
## virt
59-
```
60-
host os, qemu, kvm
61-
vm, guest os, containerd, runc
62-
kubelet, kube-proxy, coredns
63-
pod, container
47+
virt
48+
host os, qemu, kvm
49+
vm, guest os, containerd, runc
50+
kubelet, kube-proxy, coredns
51+
pod, container, process
6452
```

_CONTENT/eng/os/system.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ systemd
2727
syslogd
2828
journald
2929
30-
```
3130
32-
## users
33-
```
3431
user types
3532
root
3633
service accounts

0 commit comments

Comments
 (0)