-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
620 lines (479 loc) · 25.5 KB
/
index.html
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
<!DOCTYPE html>
<!--[if lte IE 8 ]>
<html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<!--
*************** * * *
8 * * *
8 * * *
8 ** *
8 * * *
8 * * *
8 * * *
8 * * *********** -----Theme By Kieran(http://go.kieran.top)
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<!--<![endif]-->
<head>
<title>Comethru</title>
<!-- Meta data -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Comethru">
<meta name="author" content="DaiWei Jia">
<meta name="description" content="" />
<meta name="keywords" content="" />
<!-- Favicon, (keep icon in root folder) -->
<link rel="Shortcut Icon" href="/img/favicon.ico" type="image/ico">
<link rel="alternate" href="/atom.xml" title="Comethru" type="application/atom+xml">
<link rel="stylesheet" href="/css/all.css" media="screen" type="text/css">
<link rel="stylesheet" href="/highlightjs/vs.css" type="text/css">
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="/css/ie8.css" />
<![endif]-->
<!-- jQuery | Load our jQuery, with an alternative source fallback to a local version if request is unavailable -->
<script src="/js/jquery-1.11.1.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.11.1.min.js"><\/script>')</script>
<!-- Load these in the <head> for quicker IE8+ load times -->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<script src="/js/respond.min.js"></script>
<![endif]-->
<style>.col-md-8.col-md-offset-2.opening-statement img{display:none;}</style>
</head>
<!--
<body class="home-template">
-->
<body id="index" class="lightnav animsition">
<!-- ============================ Off-canvas navigation =========================== -->
<div class="sb-slidebar sb-right sb-style-overlay sb-momentum-scrolling">
<div class="sb-close" aria-label="Close Menu" aria-hidden="true">
<img src="/img/close.png" alt="Close"/>
</div>
<!-- Lists in Slidebars -->
<ul class="sb-menu">
<li><a href="/" class="animsition-link" title="Home">Home</a></li>
<li><a href="/archives" class="animsition-link" title="archive">archives</a></li>
<!-- Dropdown Menu -->
<li>
<a class="sb-toggle-submenu">Works<span class="sb-caret"></span></a>
<ul class="sb-submenu">
<li><a href="/" target="_BLANK" class="animsition-link">AAA</a></li>
<li><a href="/atom.xml" target="_BLANK" class="animsition-link">BBB</a></li>
</ul>
</li>
<li>
<a class="sb-toggle-submenu">Links<span class="sb-caret"></span></a>
<ul class="sb-submenu">
<li><a target="_blank" rel="noopener" href="http://go.kieran.top/" class="animsition-link">Kieran</a></li>
<li><a target="_blank" rel="noopener" href="http://domain.com/" class="animsition-link">Name</a></li>
</ul>
</li>
</ul>
<!-- Lists in Slidebars -->
<ul class="sb-menu secondary">
<li><a href="/about.html" class="animsition-link" title="about">About</a></li>
<li><a href="/atom.xml" class="animsition-link" title="rss">RSS</a></li>
</ul>
</div>
<!-- ============================ END Off-canvas navigation =========================== -->
<!-- ============================ #sb-site Main Page Wrapper =========================== -->
<div id="sb-site">
<!-- #sb-site - All page content should be contained within this id, except the off-canvas navigation itself -->
<!-- ============================ Header & Logo bar =========================== -->
<div id="navigation" class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<!-- Nav logo -->
<div class="logo">
<a href="/" title="Logo" class="animsition-link">
<img src="/img/logo.png" alt="Logo" width="35px;"/>
</a>
</div>
<!-- // Nav logo -->
<!-- Info-bar -->
<nav>
<ul class="nav">
<li><a href="/" class="animsition-link">Comethru</a></li>
<li class="nolink"><span>Always </span>Creative.</li>
<li><a href="https://github.com/" title="Github" target="_blank"><i class="icon-github"></i></a></li>
<li><a href="https://twitter.com/" title="Twitter" target="_blank"><i class="icon-twitter"></i></a></li>
<li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i class="icon-facebook"></i></a></li>
<li><a href="https://google.com/" title="Google-Plus" target="_blank"><i class="icon-google-plus"></i></a></li>
<li><a href="http://weibo.com/" title="Sina-Weibo" target="_blank"><i class="icon-sina-weibo"></i></a></li>
<li class="nolink"><span>Welcome!</span></li>
</ul>
</nav>
<!--// Info-bar -->
</div>
<!-- // .container -->
<div class="learnmore sb-toggle-right">More</div>
<button type="button" class="navbar-toggle menu-icon sb-toggle-right" title="More">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar before"></span>
<span class="icon-bar main"></span>
<span class="icon-bar after"></span>
</button>
</div>
<!-- // .navbar-inner -->
</div>
<!-- ============================ Header & Logo bar =========================== -->
<!-- ============================ Hero Image =========================== -->
<section id="hero" class="scrollme">
<div class="container-fluid element-img" style="background: url(/img/bg_img.jpg) no-repeat center center fixed;background-size: cover">
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2 vertical-align cover boost text-center">
<div class="center-me animateme" data-when="exit" data-from="0" data-to="0.6" data-opacity="0" data-translatey="100">
<div>
<h2>WELCOME.</h2>
<p></p>
<h2></h2>
<p></p>
</div>
</div>
</div>
<!-- // .col-md-12 -->
</div>
<div class="herofade beige-dk"></div>
</div>
</section>
<!-- Height spacing helper -->
<div class="heightblock"></div>
<!-- // End height spacing helper -->
<!-- ============================ END Hero Image =========================== -->
<!-- ============================ Content =========================== -->
<section id="intro">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/cmu15445-lab3/">cmu15445 project#3 - Query Execution</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T08:18:46.350Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
Project #3: Query Execution这部分实验要求为DBMS添加对查询执行的支持,根据给定的查询计划执行对应的查询操作
实验地址:https://15445.courses.cs.cmu.edu/fall2021/project3/
Task #1: Executors实验使用的处理模型是Iterator Model(也称Pipeline Model),查询计划中的每个操作符都提供了一个Next函数接口供上层操作符调用
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/cmu15445-lab3/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/cmu15445-lab4/">cmu15445 project#4 - Concurrency Control</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T08:18:46.350Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
Project #4: Concurrency Control这部分实验要求在DBMS中实现锁管理器LockManager以支持查询的并发执行,LockManager以元组作为数据共享的基本单位,事务对元组进行读写操作时需要根据隔离级别从LockManager处获取对应元组的共享锁或排他锁
实验地址:https://15445.courses.cs.cmu.edu/fall2021/project4/
Task #1: Lock Man
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/cmu15445-lab4/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/cmu15445-lab1/">cmu15445 project#1 - Buffer Pool</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T08:18:46.345Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
Project #1: Buffer Pool这部分实验要求在存储管理器中实现一个buffer pool,用于在内存和磁盘间换入换出页面,从而允许DBMS提供给数据库远大于实际容量的内存空间。这里将磁盘中的块称作页面page,将内存中的块称作帧frame,buffer pool的换入换出操作对DBMS是透明的,DBMS向buffer pool请求指定page_id的页面,但并不知道页面是已缓存在内存中还是需要从磁盘读入
实验地址:htt
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/cmu15445-lab1/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/cmu15445-lab2/">cmu15445 project#2 - Extendable Hash Index</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T08:18:46.345Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
Project #2: Extend-able Hash Index这部分实验要求为DBMS实现一个基于磁盘的可扩展哈希表,用于快速检索数据(个人理解是支持点查询)
实验地址:https://15445.courses.cs.cmu.edu/fall2021/project2/
Task #1: Page Layouts依赖于Project1的实现,哈希表需要通过DBMS的BufferPoolManager访问,即所有数据信息都必须保存
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/cmu15445-lab2/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/cmu15445-lab0/">cmu15445 project#0 - C++ Primer</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T08:18:46.332Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
Project #0: C++ Primer这部分实验要求补充Matrix、RowMatrix和RowMaxtrixOperations三个类中对应函数的代码,RowMatrix类继承自Matrix类,表示一个二维矩阵;RowMatrixOperation类提供RowMatrix对象的矩阵加法和乘法运算
实验地址:https://15445.courses.cs.cmu.edu/fall2021/project0/
Matrix:
拷贝
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/cmu15445-lab0/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/mit6.s081-lab10/">mit6.s081 lab10 - mmap</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T07:51:27.921Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
lab mmap这部分实验要求实现mmap和munmap系统调用,将完整或部分文件映射到内存空间中,从而通过内存地址相关指令来操纵文件,相较于read/write系统调用省去了在用户空间和内核空间来回切换的开销;并支持在移除映射时将脏数据写回磁盘
mmap函数定义如下,表示从文件描述符fd的addr+offset位置开始映射length字节到虚拟地址addr,并设置相应的访问权限和写回策略
1void *mmap(void *addr,
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/mit6.s081-lab10/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/mit6.s081-lab3/">mit6.s081 lab3 - pgtbl</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T07:51:27.921Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
lab pgtbl这部分实验主要关注页表page table,每个进程都有自己的页表,satp寄存器用于保存当前进程页表的物理地址,页表主要用于将虚拟地址转换为物理地址(实际上是MMU得到要转换的虚拟地址,通过CPU获取页表地址,查询页表得到对应的物理地址)
如果是一个虚拟地址对应页表中的一个表单项,那么64位的系统原则上会有2的64次方个地址,这会使得页表占用很大一部分内存并且难以管理,因此通常是以页面为单位,每个页面对应一个页表表项
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/mit6.s081-lab3/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/mit6.s081-lab7/">mit6.s081 lab7 - networking</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T07:51:27.921Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
lab networking这部分实验内容主要是实现网卡(E1000)驱动程序,完成数据包的发送和接收
E1000手册:8254x Family of Gigabit Ethernet Controllers Software Developer’s Manual (mit.edu)
一些相近的主机之间通过局域网相连,局域网能够容纳的主机数量是有限的,因此大型网络通常由多个独立的局域网组成,局域网之间通过路由器连接,路由器将来自一个局域
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/mit6.s081-lab7/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/mit6.s081-lab8/">mit6.s081 lab8 - lock</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T07:51:27.921Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
lab lock这部分实验要求对xv6内存分配器和块缓存进行锁优化,以提高在多核机器上的并行性
什么时候需要加锁?
一个简单而保守的回答是:如果两个进程访问了同一个数据结构,并涉及对这个数据结构的修改操作,那么就需要对这个数据结构加锁
加锁的两种实现方式:
使用coarse-grain lock,也就是全局锁,在访问某个数据结构的时候,对所有相关数据结构上锁,从而操作系统只能线性运行,失去了并发执行的能力
拆分锁,将其与数据结构和进程
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/mit6.s081-lab8/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2 opening-statement">
<div class="col-md-4">
<h3><a href="/2022/09/09/mit6.s081-lab4/">mit6.s081 lab4 - traps</a></h3>
<span>
<span class="post-meta">
<time datetime="2022-09-09T07:51:27.910Z" itemprop="datePublished">
2022-09-09
</time>
</span>
</span>
</div>
<div class="col-md-8">
<p>
lab trapslab4分为三个部分,第一部分是一些寄存器相关的基础问题,第二部分需要了解stack的相关用法实现backtrace,第三部分是通过time interrupt中断处理实现定期调用的功能,在这之前需要对xv6中的寄存器和栈stack有一定的了解
寄存器:
下图是xv6中的32个寄存器,汇编代码是在寄存器上执行而不是在内存中执行,因为寄存器是数据读取和运算的最快方式,在汇编代码中通过load指令将数据存放在寄存器中(这里
</p>
<p class="pull-right readMore">
<a href="/2022/09/09/mit6.s081-lab4/">Read More...</a>
</p>
</div>
<div class="clearfix"></div>
<hr class="nogutter">
</div>
</div>
<nav class="pagination" role="pagination">
<a class="pull-right" href="/page/2/">Older Posts →</a>
</nav>
</div>
</section>
<section id="statement">
<div class="container text-center wow fadeInUp" data-wow-delay="0.5s">
<div class="row">
<p></p>
</div>
</div>
</section>
<!-- ============================ END Content =========================== -->
<!-- ============================ Footer =========================== -->
<footer>
<div class="container">
<div class="copy">
<p>
© 2014<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, Content By DaiWei Jia. All Rights Reserved.
</p>
<p>Theme By <a target="_blank" rel="noopener" href="//go.kieran.top" style="color: #767D84">Kieran</a></p>
</div>
<div class="social">
<ul>
<li><a href="https://github.com/" title="Github" target="_blank"><i class="icon-github"></i></a> </li>
<li><a href="https://twitter.com/" title="Twitter" target="_blank"><i class="icon-twitter"></i></a> </li>
<li><a href="https://www.facebook.com/" title="Facebook" target="_blank"><i class="icon-facebook"></i></a> </li>
<li><a href="https://google.com/" title="Google-Plus" target="_blank"><i class="icon-google-plus"></i></a> </li>
<li><a href="http://weibo.com/" title="Sina-Weibo" target="_blank"><i class="icon-sina-weibo"></i></a> </li>
</ul>
</div>
<div class="clearfix"> </div>
</div>
</footer>
<!-- ============================ END Footer =========================== -->
<!-- Load our scripts -->
<!-- Resizable 'on-demand' full-height hero -->
<script type="text/javascript">
var resizeHero = function () {
var hero = $(".cover,.heightblock"),
window1 = $(window);
hero.css({
"height": window1.height()
});
};
resizeHero();
$(window).resize(function () {
resizeHero();
});
</script>
<script src="/js/plugins.min.js"></script><!-- Bootstrap core and concatenated plugins always load here -->
<script src="/js/scripts.js"></script><!-- Theme scripts -->
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$('#intro').find('img').each(function(){
var alt = this.alt;
if (alt){
$(this).after('<span class="caption" style="display:none">' + alt + '</span>');
}
$(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox" rel="gallery" />');
});
(function($){
$('.fancybox').fancybox();
})(jQuery);
</script>
</body>
</html>