CSE 506: Opera.ng Systems
The Page Cache
Don Porter
1
The Page Cache Don Porter 1 CSE 506: Opera.ng Systems Logical - - PowerPoint PPT Presentation
CSE 506: Opera.ng Systems The Page Cache Don Porter 1 CSE 506: Opera.ng Systems Logical Diagram Binary Memory Threads Formats Allocators User System Calls Kernel Todays Lecture RCU File System Networking Sync (kernel level mem.
1
2
3
4
5
6
7
8
9
Hello!
Process A
Process B
Process C
10
11
Hello!
Process A Process B Process C
12
13
14
(a) radix tree of height 1 (b) radix tree of height 2 radix_tree_root height = 1 radix_tree_node rnode count = 2 slots[0] slots[4] index = 0 page ... index = 4
63
radix_tree_root height = 2 radix_tree_node rnode count = 2 ...
63
radix_tree_node count = 2 slots[0] slots[4] index = 0 ... index = 4
63
slots[0] radix_tree_node count = 1 slots[3] index = 131 ...
63
slots[2] page page page page
15
16
17
for higher lookup cost
18
19
20
Hello!
Process A Process B Process C
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Figure 15-2. A buffer page including four buffers and their buffer heads
Page descriptor b_data private b_this_page Buffer Buffer Buffer Buffer Page Buffer head Buffer head Buffer head Buffer head b_page
35
36
37