Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added GuoYijin/BOA
Binary file not shown.
Binary file added GuoYijin/DHT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions GuoYijin/GuoYijin-W12.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Distributed Shared Memory

-Q: addressing (寻址问题)

-Case: DHT (哈希查找)

### Addressing

#### Message

- Packet

- Document

Linda (Tuple)

JINI (Java Space) - 基于内容的寻址

- “file”(page)

#### SHM

- “file”(page)
- Directory (Translation)

<img src="DHT.png" />
71 changes: 71 additions & 0 deletions GuoYijin/GuoYijin-W4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
3/9

# Memory Management

**Contents**

- swap
- Overlay replacement

**Implementation**

- Phy Mem Mgnt

- Buddy System (Unix)
- address_space (Linux)

- Virtual Mem Mgnt

- vm_area_struct (Process)

- vm_struct



过一遍ppt

<img src="no_memory_abstraction" style="zoom:50%;" />



#### Swap

物理内存无法同时容纳多个程序的运行

swap in, swap out

#### Overlay

程序员自发进行的事

<img src="overlay.png" style="zoom:33%;" />

#### Replacement

**page replacement algorithm**

Optimal algorithm(最优算法;知道未来;只是理想概念)

Not recently used algorithm (两个无序集合)

First-in, first-out (FIFO) algorithn

Second-chance algorithm

Clock algorithm (Corbato@MIT)

Least recently used (LRU) algorithm (有序队列)

Working set algorithm

WSClock algorithm



<img src="NRU" style="zoom:50%;" >

<img src="second_chance" style="zoom:50%;" >

<img src="clock" style="zoom: 33%;" >

<img src="LRU" style="zoom: 33%;" >
17 changes: 17 additions & 0 deletions GuoYijin/GuoYijin-W8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
4/6

# Security

<img src="BOA" style="zoom: 33%;" >

canary-

return to libc

<img src="stack_canaries" style="zoom: 50%;" >

<img src="code_reuse_attacks" style="zoom: 25%;" >

<img src="format_string_attacks" style="zoom: 25%;" >

<img src="cmd_injec_attacks" style="zoom: 25%;" >
Binary file added GuoYijin/LRU
Binary file not shown.
Binary file added GuoYijin/NRU
Binary file not shown.
Binary file added GuoYijin/Overlay.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GuoYijin/Stack_Canaries
Binary file not shown.
Binary file added GuoYijin/clock
Binary file not shown.
Binary file added GuoYijin/cmd_injec_attacks
Binary file not shown.
Binary file added GuoYijin/code_reuse_attacks
Binary file not shown.
Binary file added GuoYijin/format_string_attacks
Binary file not shown.
Binary file added GuoYijin/no_memory_abstraction
Binary file not shown.
Binary file added GuoYijin/second_chance
Binary file not shown.