I/O
1
I/O 1 last time (1) LRU approximations (part 1) second chance - - PowerPoint PPT Presentation
I/O 1 last time (1) LRU approximations (part 1) second chance ordered list of pages use page on list the longest if not referenced otherwise clear referenced bit, put back on list SEQ (active + inactive list, references on inactive move to
1
2
3
4
5
6
7
8
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
9
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
9
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
9
10
11
12
12
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
13
r = reading location, w = writing location
14
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
15
16
16
17
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
18
19
19
read/write/… system call or page cache miss/eviction…
(e.g. previous keypresses to keyboard)
20
21
22
22
22
22
22
23
24
24
24
25
26
26
26
27
28
29
30
(this example: 0x9000 (physical))
31
(this example: 0x9000 (physical))
31
(this example: 0x9000 (physical))
31
(this example: 0x9000 (physical))
31
(this example: 0x9000 (physical))
31
32
33
34
35
36
(fjgure adapted from Bloomfjeld’s CS 2150 slides)
37
38
39
40
41
42
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
block 0 block 1 block 2 block 3 block 0 block 1 block 2
43
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
block 0 block 1 block 2 block 3 block 0 block 1 block 2
43
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
block 0 block 1 block 2 block 3 block 0 block 1 block 2
43
44
45
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 10
dir pt 0 dir pt 1
index.html pt 0 index.html pt 1 index.html pt 2 index.html pt 3
(bytes 0-4095 of index.html) (bytes 4096-8191 of index.html) (bytes 8192-12287 of index.html) (bytes 12278-12792 of index.html) (unused bytes 12792-16384)
46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 10
dir pt 0 dir pt 1
index.html pt 0 index.html pt 1 index.html pt 2 index.html pt 3
(bytes 0-4095 of index.html) (bytes 4096-8191 of index.html) (bytes 8192-12287 of index.html) (bytes 12278-12792 of index.html) (unused bytes 12792-16384)
46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 10
dir pt 0 dir pt 1
index.html pt 0 index.html pt 1 index.html pt 2 index.html pt 3
(bytes 0-4095 of index.html) (bytes 4096-8191 of index.html) (bytes 8192-12287 of index.html) (bytes 12278-12792 of index.html) (unused bytes 12792-16384)
46
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 10
dir pt 0 dir pt 1
index.html pt 0 index.html pt 1 index.html pt 2 index.html pt 3
(bytes 0-4095 of index.html) (bytes 4096-8191 of index.html) (bytes 8192-12287 of index.html) (bytes 12278-12792 of index.html) (unused bytes 12792-16384)
46
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
(2010-03-29 04:05:03.56)
(2010-03-29)
(2010-03-22 12:23:12)
last write con’t
(0x156 bytes)
47
48
49
49
49
49
50
51
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
52
53
54
54
54
54
55
56
57
58
59