-
Notifications
You must be signed in to change notification settings - Fork 3
/
testLog3
826 lines (737 loc) · 30.3 KB
/
testLog3
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
SeaBIOS (version 1.13.0-1ubuntu1.1)
iPXE (http://ipxe.org) 00:03.0 CA00 PCI2.10 PnP PMM+1FF8CA10+1FECCA10 CA00
Booting from Hard Disk...
xv6...
DEBUG MODE : ON
OPTIMIZATION MODE : OFF
Page Replacement Algorithm : FIFO
Entry USERINIT
Entry ALLOCPROC [ 1 ]
Inside allocproc : 1
Inside inituvm ::: PPN 57277 ---- VPN 0
cpu0: starting 0
sb: size 1000 nblocks 941 ninodes 200 nlog 30 logstart 2 inodestart 32 bmap start 58
////////////////// EXEC [ 1 ] //////////////////
path is /init , pgdir is 8dffe000
::: Allocuvm :::: From 8dfbb000 , Now 8dffe000
Total page number needed (now): 1
Inside allocuvm : 1 ::: PPN 57210 ---- VPN 0
<<< allocating page in phyiscal memory >>>
Inside loaduvm : 1
Inside exec (BEFORE 2 page allocuvm): 1
::: Allocuvm :::: From 8dfbb000 , Now 8dffe000
Total page number needed (now): 3
Inside allocuvm : 1 ::: PPN 57208 ---- VPN 1
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 1 ::: PPN 57207 ---- VPN 2
<<< allocating page in phyiscal memory >>>
Inside exec (AFTER 2 page allocuvm): 1
Exiting EXEC : 1 , pgdir is 8dfbb000
inside freevm : 1
Inside deallocuvm : 1 ::: PPN 57277 ----- VPN 0
trying to remove pid 1 ... pgdir 8dffe000 vpn 0
>>init: starting sh
////////////////// FORK [ 1 ] //////////////////
pgdir 8dfbb000
Entry ALLOCPROC [ 2 ]
Inside allocproc : 2
::: copyuvm :::: From 8dfbb000 , Now 8dfbb000
Inside copyuvm : 1 ::: PPN 57277 ---- VPN 0
Inside copyuvm : 1 ::: PPN 57205 ---- VPN 1
Inside copyuvm : 1 ::: PPN 57204 ---- VPN 2
Inside fork :: new pgdir of forked process : 8dfbe000
Inside fork [ 1 ] --> [ 2 ]
Inside wait : 1
////////////////// EXEC [ 2 ] //////////////////
path is sh , pgdir is 8dfbe000
::: Allocuvm :::: From 8df73000 , Now 8dfbe000
Total page number needed (now): 2
Inside allocuvm : 2 ::: PPN 57138 ---- VPN 0
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 2 ::: PPN 57136 ---- VPN 1
<<< allocating page in phyiscal memory >>>
Inside loaduvm : 2
Inside exec (BEFORE 2 page allocuvm): 2
::: Allocuvm :::: From 8df73000 , Now 8dfbe000
Total page number needed (now): 4
Inside allocuvm : 2 ::: PPN 57135 ---- VPN 2
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 2 ::: PPN 57134 ---- VPN 3
<<< allocating page in phyiscal memory >>>
Inside exec (AFTER 2 page allocuvm): 2
Exiting EXEC : 2 , pgdir is 8df73000
inside freevm : 2
Inside deallocuvm : 2 ::: PPN 57277 ----- VPN 0
trying to remove pid 2 ... pgdir 8dfbe000 vpn 0
mark removed
Inside deallocuvm : 2 ::: PPN 57205 ----- VPN 1
trying to remove pid 2 ... pgdir 8dfbe000 vpn 1
mark removed
Inside deallocuvm : 2 ::: PPN 57204 ----- VPN 2
trying to remove pid 2 ... pgdir 8dfbe000 vpn 2
mark removed
$ demoTest
////////////////// FORK [ 2 ] //////////////////
pgdir 8df73000
Entry ALLOCPROC [ 3 ]
Inside allocproc : 3
[SWAP FILE] creating swap file ...
::: copyuvm :::: From 8df73000 , Now 8df73000
Inside copyuvm : 2 ::: PPN 57204 ---- VPN 0
Inside copyuvm : 2 ::: PPN 57277 ---- VPN 1
Inside copyuvm : 2 ::: PPN 57133 ---- VPN 2
Inside copyuvm : 2 ::: PPN 57132 ---- VPN 3
Inside fork :: new pgdir of forked process : 8dfbc000
Inside fork [ 2 ] --> [ 3 ]
Inside wait : 2
/////////////////////////////////////////////////////////
////////////////// PROC DUMP //////////////////////
/////////////////////////////////////////////////////////
<<< 1 >>> sleep init 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8dfbb000
pdir PTE 0, 57209:
memory location of page table = df79000
ptbl PTE 0, 57210, df7a000
ptbl PTE 2, 57207, df77000
Page mappings:
0 -------> 57210
2 -------> 57207
<<< 2 >>> sleep sh 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8df73000
pdir PTE 0, 57137:
memory location of page table = df31000
ptbl PTE 0, 57138, df32000
ptbl PTE 1, 57136, df30000
ptbl PTE 3, 57134, df2e000
Page mappings:
0 -------> 57138
1 -------> 57136
3 -------> 57134
<<< 3 >>> run sh
Page tables:
Memory Location of Page Directory = 8dfbc000
pdir PTE 0, 57205:
memory location of page table = df75000
ptbl PTE 0, 57204, df74000
ptbl PTE 1, 57277, dfbd000
ptbl PTE 3, 57132, df2c000
Page mappings:
0 -------> 57204
1 -------> 57277
3 -------> 57132
pgdir 8dfbc000
number of page faults 0
<< RAM >> ...
Physical page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0 , age ffffff00 INUSE
Physical page id 4 : VPN 1 , pgdir 8dfbc000 , timer 0 , age ffffff80 INUSE
Physical page id 5 : VPN 2 , pgdir 8dfbc000 , timer 0 , age 0 INUSE
Physical page id 6 : VPN 3 , pgdir 8dfbc000 , timer 0 , age ffffffc0 INUSE
Physical page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
<< DISK >> ...
Disk page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 4 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 5 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 6 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0
////////////////// GROWPROC [ 3 ] //////////////////
::: Allocuvm :::: From 8dfbc000 , Now 8dfbc000
Total page number needed (now): 12
Inside allocuvm : 3 ::: PPN 57131 ---- VPN 4
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57130 ---- VPN 5
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57129 ---- VPN 6
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57128 ---- VPN 7
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57127 ---- VPN 8
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57126 ---- VPN 9
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57125 ---- VPN 10
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57124 ---- VPN 11
<<< allocating page in phyiscal memory >>>
/////////////////////////////////////////////////////////
////////////////// PROC DUMP //////////////////////
/////////////////////////////////////////////////////////
<<< 1 >>> sleep init 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8dfbb000
pdir PTE 0, 57209:
memory location of page table = df79000
ptbl PTE 0, 57210, df7a000
ptbl PTE 2, 57207, df77000
Page mappings:
0 -------> 57210
2 -------> 57207
<<< 2 >>> sleep sh 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8df73000
pdir PTE 0, 57137:
memory location of page table = df31000
ptbl PTE 0, 57138, df32000
ptbl PTE 1, 57136, df30000
ptbl PTE 3, 57134, df2e000
Page mappings:
0 -------> 57138
1 -------> 57136
3 -------> 57134
<<< 3 >>> run sh
Page tables:
Memory Location of Page Directory = 8dfbc000
pdir PTE 0, 57205:
memory location of page table = df75000
ptbl PTE 0, 57204, df74000
ptbl PTE 1, 57277, dfbd000
ptbl PTE 3, 57132, df2c000
ptbl PTE 4, 57131, df2b000
ptbl PTE 5, 57130, df2a000
ptbl PTE 6, 57129, df29000
ptbl PTE 7, 57128, df28000
ptbl PTE 8, 57127, df27000
ptbl PTE 9, 57126, df26000
ptbl PTE 10, 57125, df25000
ptbl PTE 11, 57124, df24000
Page mappings:
0 -------> 57204
1 -------> 57277
3 -------> 57132
4 -------> 57131
5 -------> 57130
6 -------> 57129
7 -------> 57128
8 -------> 57127
9 -------> 57126
10 -------> 57125
11 -------> 57124
pgdir 8dfbc000
number of page faults 0
<< RAM >> ...
Physical page id 0 : VPN 4 , pgdir 8dfbc000 , timer 7 , age 0 INUSE
Physical page id 1 : VPN 5 , pgdir 8dfbc000 , timer 8 , age 0 INUSE
Physical page id 2 : VPN 6 , pgdir 8dfbc000 , timer 9 , age 0 INUSE
Physical page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0 , age ffffffff INUSE
Physical page id 4 : VPN 1 , pgdir 8dfbc000 , timer 0 , age ffffffff INUSE
Physical page id 5 : VPN 2 , pgdir 8dfbc000 , timer 0 , age 0 INUSE
Physical page id 6 : VPN 3 , pgdir 8dfbc000 , timer 0 , age ffffffff INUSE
Physical page id 7 : VPN 7 , pgdir 8dfbc000 , timer 10 , age 0 INUSE
Physical page id 8 : VPN 8 , pgdir 8dfbc000 , timer 11 , age 0 INUSE
Physical page id 9 : VPN 9 , pgdir 8dfbc000 , timer 12 , age 0 INUSE
Physical page id 10 : VPN 10 , pgdir 8dfbc000 , timer 13 , age 0 INUSE
Physical page id 11 : VPN 11 , pgdir 8dfbc000 , timer 14 , age 0 INUSE
Physical page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
Physical page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0 , age 0
<< DISK >> ...
Disk page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 4 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 5 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 6 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0
inside morecore, after sbrk
////////////////// EXEC [ 3 ] //////////////////
path is demoTest , pgdir is 8dfbc000
::: Allocuvm :::: From 8df23000 , Now 8dfbc000
Total page number needed (now): 2
Inside allocuvm : 3 ::: PPN 57058 ---- VPN 0
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57056 ---- VPN 1
<<< allocating page in phyiscal memory >>>
Inside loaduvm : 3
Inside exec (BEFORE 2 page allocuvm): 3
::: Allocuvm :::: From 8df23000 , Now 8dfbc000
Total page number needed (now): 4
Inside allocuvm : 3 ::: PPN 57055 ---- VPN 2
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57054 ---- VPN 3
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 3
<<< updating meta data >>>
Inside exec (AFTER 2 page allocuvm): 3
Exiting EXEC : 3 , pgdir is 8df23000
redundant swap remove
inside freevm : 3
Inside deallocuvm : 3 ::: PPN 57277 ----- VPN 1
trying to remove pid 3 ... pgdir 8dfbc000 vpn 1
mark removed
Inside deallocuvm : 3 ::: PPN 57133 ----- VPN 2
trying to remove pid 3 ... pgdir 8dfbc000 vpn 2
mark removed
Inside deallocuvm : 3 ::: PPN 57132 ----- VPN 3
trying to remove pid 3 ... pgdir 8dfbc000 vpn 3
mark removed
Inside deallocuvm : 3 ::: PPN 57131 ----- VPN 4
trying to remove pid 3 ... pgdir 8dfbc000 vpn 4
mark removed
Inside deallocuvm : 3 ::: PPN 57130 ----- VPN 5
trying to remove pid 3 ... pgdir 8dfbc000 vpn 5
mark removed
Inside deallocuvm : 3 ::: PPN 57129 ----- VPN 6
trying to remove pid 3 ... pgdir 8dfbc000 vpn 6
mark removed
Inside deallocuvm : 3 ::: PPN 57128 ----- VPN 7
trying to remove pid 3 ... pgdir 8dfbc000 vpn 7
mark removed
Inside deallocuvm : 3 ::: PPN 57127 ----- VPN 8
trying to remove pid 3 ... pgdir 8dfbc000 vpn 8
mark removed
Inside deallocuvm : 3 ::: PPN 57126 ----- VPN 9
trying to remove pid 3 ... pgdir 8dfbc000 vpn 9
mark removed
Inside deallocuvm : 3 ::: PPN 57125 ----- VPN 10
trying to remove pid 3 ... pgdir 8dfbc000 vpn 10
mark removed
Inside deallocuvm : 3 ::: PPN 57124 ----- VPN 11
trying to remove pid 3 ... pgdir 8dfbc000 vpn 11
mark removed
//////////////////////////////////////
//////////// Test Case 0 /////////////
//////////////////////////////////////
/////////////////////////////////////////////////////////
////////////////// PROC DUMP //////////////////////
/////////////////////////////////////////////////////////
<<< 1 >>> sleep init 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8dfbb000
pdir PTE 0, 57209:
memory location of page table = df79000
ptbl PTE 0, 57210, df7a000
ptbl PTE 2, 57207, df77000
Page mappings:
0 -------> 57210
2 -------> 57207
<<< 2 >>> sleep sh 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8df73000
pdir PTE 0, 57137:
memory location of page table = df31000
ptbl PTE 0, 57138, df32000
ptbl PTE 1, 57136, df30000
ptbl PTE 3, 57134, df2e000
Page mappings:
0 -------> 57138
1 -------> 57136
3 -------> 57134
<<< 3 >>> run demoTest
Page tables:
Memory Location of Page Directory = 8df23000
pdir PTE 0, 57057:
memory location of page table = dee1000
ptbl PTE 0, 57058, dee2000
ptbl PTE 1, 57056, dee0000
ptbl PTE 3, 57054, dede000
Page mappings:
0 -------> 57058
1 -------> 57056
3 -------> 57054
pgdir 8df23000
number of page faults 1
<< RAM >> ...
Physical page id 0 : VPN 0 , pgdir 0 , timer 7 , age ffffffff
Physical page id 1 : VPN 0 , pgdir 0 , timer 8 , age 0
Physical page id 2 : VPN 0 , pgdir 0 , timer 9 , age 0
Physical page id 3 : VPN 3 , pgdir 8df23000 , timer 18 , age ffffffff INUSE
Physical page id 4 : VPN 0 , pgdir 0 , timer 0 , age ffffffff
Physical page id 5 : VPN 0 , pgdir 0 , timer 0 , age 0
Physical page id 6 : VPN 0 , pgdir 0 , timer 0 , age ffffffff
Physical page id 7 : VPN 0 , pgdir 0 , timer 10 , age 0
Physical page id 8 : VPN 0 , pgdir 0 , timer 11 , age 0
Physical page id 9 : VPN 0 , pgdir 0 , timer 12 , age 0
Physical page id 10 : VPN 0 , pgdir 0 , timer 13 , age 0
Physical page id 11 : VPN 0 , pgdir 0 , timer 14 , age ffffffff
Physical page id 12 : VPN 0 , pgdir 8df23000 , timer 15 , age ffffffff INUSE
Physical page id 13 : VPN 1 , pgdir 8df23000 , timer 16 , age ffffffe0 INUSE
Physical page id 14 : VPN 2 , pgdir 8df23000 , timer 17 , age 0 INUSE
<< DISK >> ...
Disk page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0 INUSE
Disk page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 4 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 5 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 6 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0
////////////////// GROWPROC [ 3 ] //////////////////
::: Allocuvm :::: From 8df23000 , Now 8df23000
Total page number needed (now): 22
Inside allocuvm : 3 ::: PPN 57276 ---- VPN 4
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57206 ---- VPN 5
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57279 ---- VPN 6
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57280 ---- VPN 7
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57281 ---- VPN 8
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57282 ---- VPN 9
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57283 ---- VPN 10
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57284 ---- VPN 11
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57285 ---- VPN 12
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57286 ---- VPN 13
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57287 ---- VPN 14
<<< allocating page in phyiscal memory >>>
Inside allocuvm : 3 ::: PPN 57288 ---- VPN 15
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57289 ---- VPN 16
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57290 ---- VPN 17
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57291 ---- VPN 18
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57292 ---- VPN 19
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57293 ---- VPN 20
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
Inside allocuvm : 3 ::: PPN 57294 ---- VPN 21
<<< reallocating page from phyiscal memory to disk >>>
page to be freed id : 12
/////////////////////////////////////////////////////////
////////////////// PROC DUMP //////////////////////
/////////////////////////////////////////////////////////
<<< 1 >>> sleep init 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8dfbb000
pdir PTE 0, 57209:
memory location of page table = df79000
ptbl PTE 0, 57210, df7a000
ptbl PTE 2, 57207, df77000
Page mappings:
0 -------> 57210
2 -------> 57207
<<< 2 >>> sleep sh 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8df73000
pdir PTE 0, 57137:
memory location of page table = df31000
ptbl PTE 0, 57138, df32000
ptbl PTE 1, 57136, df30000
ptbl PTE 3, 57134, df2e000
Page mappings:
0 -------> 57138
1 -------> 57136
3 -------> 57134
<<< 3 >>> run demoTest
Page tables:
Memory Location of Page Directory = 8df23000
pdir PTE 0, 57057:
memory location of page table = dee1000
ptbl PTE 0, 57058, dee2000
ptbl PTE 1, 57056, dee0000
ptbl PTE 3, 57054, dede000
ptbl PTE 4, 57276, dfbc000
ptbl PTE 5, 57206, df76000
ptbl PTE 6, 57279, dfbf000
ptbl PTE 7, 57280, dfc0000
ptbl PTE 8, 57281, dfc1000
ptbl PTE 9, 57282, dfc2000
ptbl PTE 10, 57283, dfc3000
ptbl PTE 11, 57284, dfc4000
ptbl PTE 12, 57285, dfc5000
ptbl PTE 13, 57286, dfc6000
ptbl PTE 14, 57287, dfc7000
ptbl PTE 15, 57288, dfc8000
ptbl PTE 16, 57289, dfc9000
ptbl PTE 17, 57290, dfca000
ptbl PTE 18, 57291, dfcb000
ptbl PTE 19, 57292, dfcc000
ptbl PTE 20, 57293, dfcd000
ptbl PTE 21, 57294, dfce000
Page mappings:
0 -------> 57058
1 -------> 57056
3 -------> 57054
4 -------> 57276
5 -------> 57206
6 -------> 57279
7 -------> 57280
8 -------> 57281
9 -------> 57282
10 -------> 57283
11 -------> 57284
12 -------> 57285
13 -------> 57286
14 -------> 57287
15 -------> 57288
16 -------> 57289
17 -------> 57290
18 -------> 57291
19 -------> 57292
20 -------> 57293
21 -------> 57294
pgdir 8df23000
number of page faults 8
<< RAM >> ...
Physical page id 0 : VPN 4 , pgdir 8df23000 , timer 19 , age 0 INUSE
Physical page id 1 : VPN 5 , pgdir 8df23000 , timer 20 , age 0 INUSE
Physical page id 2 : VPN 6 , pgdir 8df23000 , timer 21 , age 0 INUSE
Physical page id 3 : VPN 3 , pgdir 8df23000 , timer 18 , age ffffffff INUSE
Physical page id 4 : VPN 7 , pgdir 8df23000 , timer 22 , age 0 INUSE
Physical page id 5 : VPN 8 , pgdir 8df23000 , timer 23 , age 0 INUSE
Physical page id 6 : VPN 9 , pgdir 8df23000 , timer 24 , age 0 INUSE
Physical page id 7 : VPN 10 , pgdir 8df23000 , timer 25 , age 0 INUSE
Physical page id 8 : VPN 11 , pgdir 8df23000 , timer 26 , age 0 INUSE
Physical page id 9 : VPN 12 , pgdir 8df23000 , timer 27 , age 0 INUSE
Physical page id 10 : VPN 13 , pgdir 8df23000 , timer 28 , age 0 INUSE
Physical page id 11 : VPN 14 , pgdir 8df23000 , timer 29 , age 0 INUSE
Physical page id 12 : VPN 0 , pgdir 8df23000 , timer 15 , age ffffffff INUSE
Physical page id 13 : VPN 1 , pgdir 8df23000 , timer 16 , age ffffffff INUSE
Physical page id 14 : VPN 2 , pgdir 8df23000 , timer 17 , age 0 INUSE
<< DISK >> ...
Disk page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0 INUSE
Disk page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 4 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 5 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 6 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0
inside morecore, after sbrk
Numpage = 17
Accessing page 0
Accessing page 1
Accessing page 2
Accessing page 3
Accessing page 4
Accessing page 5
Accessing page 6
Accessing page 7
Accessing page 8
Accessing page 9
Accessing page 10
Accessing page 11
Accessing page 12
Accessing page 13
Accessing page 14
Accessing page 15
Accessing page 16
Accessing page 0
Accessing page 1
Accessing page 2
Accessing page 3
Accessing page 4
Accessing page 5
Accessing page 6
Accessing page 7
Accessing page 8
Accessing page 9
Accessing page 10
Accessing page 11
Accessing page 12
Accessing page 13
Accessing page 14
Accessing page 15
Accessing page 16
SANITY CHECK 0 PASEED
Entry EXIT [ 3 ]
[SWAP FILE] removing swap file ...
/////////////////////////////////////////////////////////
////////////////// PROC DUMP //////////////////////
/////////////////////////////////////////////////////////
<<< 1 >>> sleep init 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8dfbb000
pdir PTE 0, 57209:
memory location of page table = df79000
ptbl PTE 0, 57210, df7a000
ptbl PTE 2, 57207, df77000
Page mappings:
0 -------> 57210
2 -------> 57207
<<< 2 >>> sleep sh 801044f7 801045bd 8010553d 801066f1 8010638e
Page tables:
Memory Location of Page Directory = 8df73000
pdir PTE 0, 57137:
memory location of page table = df31000
ptbl PTE 0, 57138, df32000
ptbl PTE 1, 57136, df30000
ptbl PTE 3, 57134, df2e000
Page mappings:
0 -------> 57138
1 -------> 57136
3 -------> 57134
<<< 3 >>> run demoTest
Page tables:
Memory Location of Page Directory = 8df23000
pdir PTE 0, 57057:
memory location of page table = dee1000
ptbl PTE 0, 57058, dee2000
ptbl PTE 1, 57056, dee0000
ptbl PTE 3, 57054, dede000
ptbl PTE 4, 57276, dfbc000
ptbl PTE 5, 57206, df76000
ptbl PTE 6, 57279, dfbf000
ptbl PTE 7, 57280, dfc0000
ptbl PTE 8, 57281, dfc1000
ptbl PTE 9, 57282, dfc2000
ptbl PTE 10, 57283, dfc3000
ptbl PTE 11, 57284, dfc4000
ptbl PTE 12, 57285, dfc5000
ptbl PTE 13, 57286, dfc6000
ptbl PTE 14, 57287, dfc7000
ptbl PTE 15, 57288, dfc8000
ptbl PTE 16, 57289, dfc9000
ptbl PTE 17, 57290, dfca000
ptbl PTE 18, 57291, dfcb000
ptbl PTE 19, 57292, dfcc000
ptbl PTE 20, 57293, dfcd000
ptbl PTE 21, 57294, dfce000
Page mappings:
0 -------> 57058
1 -------> 57056
3 -------> 57054
4 -------> 57276
5 -------> 57206
6 -------> 57279
7 -------> 57280
8 -------> 57281
9 -------> 57282
10 -------> 57283
11 -------> 57284
12 -------> 57285
13 -------> 57286
14 -------> 57287
15 -------> 57288
16 -------> 57289
17 -------> 57290
18 -------> 57291
19 -------> 57292
20 -------> 57293
21 -------> 57294
pgdir 8df23000
number of page faults 8
<< RAM >> ...
Physical page id 0 : VPN 4 , pgdir 8df23000 , timer 19 , age ffffffff
Physical page id 1 : VPN 5 , pgdir 8df23000 , timer 20 , age ffffffff
Physical page id 2 : VPN 6 , pgdir 8df23000 , timer 21 , age ffffffff
Physical page id 3 : VPN 3 , pgdir 8df23000 , timer 18 , age ffffffff
Physical page id 4 : VPN 7 , pgdir 8df23000 , timer 22 , age ffffffff
Physical page id 5 : VPN 8 , pgdir 8df23000 , timer 23 , age ffffffff
Physical page id 6 : VPN 9 , pgdir 8df23000 , timer 24 , age ffffffff
Physical page id 7 : VPN 10 , pgdir 8df23000 , timer 25 , age ffffffff
Physical page id 8 : VPN 11 , pgdir 8df23000 , timer 26 , age ffffffff
Physical page id 9 : VPN 12 , pgdir 8df23000 , timer 27 , age ffffffff
Physical page id 10 : VPN 13 , pgdir 8df23000 , timer 28 , age ffffffff
Physical page id 11 : VPN 14 , pgdir 8df23000 , timer 29 , age ffffffff
Physical page id 12 : VPN 0 , pgdir 8df23000 , timer 15 , age ffffffff
Physical page id 13 : VPN 1 , pgdir 8df23000 , timer 16 , age ffffffff
Physical page id 14 : VPN 2 , pgdir 8df23000 , timer 17 , age 0
<< DISK >> ...
Disk page id 0 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 1 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 2 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 3 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 4 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 5 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 6 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 7 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 8 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 9 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 10 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 11 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 12 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 13 : VPN 0 , pgdir 8dfbc000 , timer 0
Disk page id 14 : VPN 0 , pgdir 8dfbc000 , timer 0
inside freevm : 2
Inside deallocuvm : 2 ::: PPN 57058 ----- VPN 0
trying to remove pid 2 ... pgdir 8df23000 vpn 0
Inside deallocuvm : 2 ::: PPN 57056 ----- VPN 1
trying to remove pid 2 ... pgdir 8df23000 vpn 1
Inside deallocuvm : 2 ::: PPN 57055 ----- VPN 2
trying to remove pid 2 ... pgdir 8df23000 vpn 2
Inside deallocuvm : 2 ::: PPN 57054 ----- VPN 3
trying to remove pid 2 ... pgdir 8df23000 vpn 3
Inside deallocuvm : 2 ::: PPN 57276 ----- VPN 4
trying to remove pid 2 ... pgdir 8df23000 vpn 4
Inside deallocuvm : 2 ::: PPN 57206 ----- VPN 5
trying to remove pid 2 ... pgdir 8df23000 vpn 5
Inside deallocuvm : 2 ::: PPN 57279 ----- VPN 6
trying to remove pid 2 ... pgdir 8df23000 vpn 6
Inside deallocuvm : 2 ::: PPN 57280 ----- VPN 7
trying to remove pid 2 ... pgdir 8df23000 vpn 7
Inside deallocuvm : 2 ::: PPN 57281 ----- VPN 8
trying to remove pid 2 ... pgdir 8df23000 vpn 8
Inside deallocuvm : 2 ::: PPN 57282 ----- VPN 9
trying to remove pid 2 ... pgdir 8df23000 vpn 9
Inside deallocuvm : 2 ::: PPN 57283 ----- VPN 10
trying to remove pid 2 ... pgdir 8df23000 vpn 10
Inside deallocuvm : 2 ::: PPN 57284 ----- VPN 11
trying to remove pid 2 ... pgdir 8df23000 vpn 11
Inside deallocuvm : 2 ::: PPN 57285 ----- VPN 12
trying to remove pid 2 ... pgdir 8df23000 vpn 12
Inside deallocuvm : 2 ::: PPN 57286 ----- VPN 13
trying to remove pid 2 ... pgdir 8df23000 vpn 13
Inside deallocuvm : 2 ::: PPN 57287 ----- VPN 14
trying to remove pid 2 ... pgdir 8df23000 vpn 14
Inside deallocuvm : 2 ::: PPN 57288 ----- VPN 15
trying to remove pid 2 ... pgdir 8df23000 vpn 15
Inside deallocuvm : 2 ::: PPN 57289 ----- VPN 16
trying to remove pid 2 ... pgdir 8df23000 vpn 16
Inside deallocuvm : 2 ::: PPN 57290 ----- VPN 17
trying to remove pid 2 ... pgdir 8df23000 vpn 17
Inside deallocuvm : 2 ::: PPN 57291 ----- VPN 18
trying to remove pid 2 ... pgdir 8df23000 vpn 18
Inside deallocuvm : 2 ::: PPN 57292 ----- VPN 19
trying to remove pid 2 ... pgdir 8df23000 vpn 19
Inside deallocuvm : 2 ::: PPN 57293 ----- VPN 20
trying to remove pid 2 ... pgdir 8df23000 vpn 20
Inside deallocuvm : 2 ::: PPN 57294 ----- VPN 21
trying to remove pid 2 ... pgdir 8df23000 vpn 21