《高级数据库系统》课程实验.docx
《《高级数据库系统》课程实验.docx》由会员分享,可在线阅读,更多相关《《高级数据库系统》课程实验.docx(16页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、高级数据库系统课程实验Storage and Buffer Manager实验报告指导教师:金培权姓 名:赵杭天学 号: SC电子邮件: 实验日期: 2019年1月1日C:UsersZhao-hangtianOneDrive - Mbu.DC ZZ DC DC DC DC DC DC DC wC ZZ C Z C , Z C Z 1Z Z 1Z* Storage and Buffer Manager by ZHT *人 1 1 人 s I w ala I sis ala 1 * ala via ala ala al* a la w 1 a 1 a I * a Is a I * al* a 1
2、1 via ml* I via al* 1 a * 1 ala 1 a 1 via I ala 1 * * 1 a 1 * 1 -Y- - y - | | -丫- - j - J _ - - J | | | - J - - - -丫 J J - J _ - j - I J - J - | _ y - | | - - J J - J J | WELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:1024BUFFER 10 PERFORMANCE TESTING!B
3、UFFER 10 TEST OK!Request:50000010:331004Hits:169565Hit ratio:33.912998%trace consuining time: 5. 855000 seconds请按任意键继续.进程内存(MB) 14邮专用汴14控制台输出信息包含缓冲区大小Buffer frame size、总请求量Request、IO 总发起量10、总命中数Hits、命中率Hit ratio、完成trace总消耗时间trace consuming timeo另外,本实验还通过Visual Studio的诊断工具记录了程序的内 存占用情况。可以看出,本实验编写程序没有
4、出现明显的内存泄漏。下面将更改BUFFSIZE并分别进行测试,最后汇总于表格1中,并结果进行 分析。设置BUFFSIZE=2048进行测试,结果如下图:C:UsersZhao-hangtianOneDrive - Mbuffer.-* Storage and Buffer Manager by ZHT *一- la I - 1- -A- -1-A* A -A- -A- A-A A A A A- -A-A-*-A-A A- A 一 j - - - - - - - - - - j - - - - - - - - - - - 1 - - - - - - - - - - - - - - j - - -
5、 - - - - - - - - - - - - - - - - - - - j - - -,-* Storage and Buffer Manager by ZHT *CWELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:4096BUFFER 10 PERFORMANCE TESTING!BUFFER 10 TEST OK!Request:50000010:246942Hits:255440Hit ratio:51.088001%trace consumin
6、g time : 4. 666000 seconds请按任意键继续.设置BUFFSIZE=8192进行测试,结果如下图:C:UsersZhao-hangtianOneDrive - Mbuffer.1 1 1 1 1 1入.人 .人 -一, 人.人 .人 一, 人 .人一,人人.人人人. .人人入.人 一,入人人人人A- - J * - j j - - j - - j - j J - - J - - j - - j j J - - J - J - j - - - j - J - - - j - j - j - - j * Storage and Buffer Manager by ZHT *W
7、ELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:8192BUFFER 10 PERFORMANCE TESTING!BUFFER 10 TEST OK!Request:50000010:196319Hits:308746Hit ratio:61. 749199%trace consuming time: 4. 038000 seconds请按任意键继续./进程内存(MB) 46飕专用广 46设置BUFFSIZE=16384进行测试,结果如下图:C:Users
8、Zhao-hangtianOneDrive - Mbuffe.- 1 - 1 - 1 - 1 1 - 1 o 1 1 1 I 1 1 1 0 1 1 1 1 1 1 - I 0 1 - 1 - 1 1 - 1 - 1 - 1 0 1 1 0 1 1 - 1 - 1 - 1 1 1 1 1 1 - 1 1 -I - - | -| - - J | - I - - | - - J - - J - - J - | - - I - - | - - J - | - J - - | - - | I - - j J | - 1 J - - | - J | - T - J J | -* Storage and
9、Buffer Manager by ZHT *d|c d|cd|c d|cd|c d|c d|c d|c d|c zfcWELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:16384BUFFER 10 PERFORMANCE TESTING!BUFFER 10 TEST OK!Request:50000010:141795Hits:369294Hit ratio:73.858803%trace consuming time: 3. 224000 seconds
10、请按任意键继续.进程内存(MB)82姆专用片设置BUFFSIZE=32768进行测试,结果如下图:C:UsersZhao-hangtianOneDrive - Mbu. X* Storage and Buffer Manager by ZHT *人 ala 1 m 1 w 1 1 1 0 i 1 1 1 1 1 1 1 W 1 X 1 1 1 1 w 1 w 1 1 i I 1 m 1 1 1 i 1 1 0 1 1 w 1 I 1 1 w 1 1 - T J -|- |- 1 T - - - - -T | - - - - J - - J - - - - J - J - - J - - | -
11、 - J - |- J - - | J - J | - - J - - |- | - - Y - - | -| J -|- J | - - J -| -WELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:32768BUFFER 10 PERFORMANCE TESTING!BUFFER 10 TEST OK!Request:50000010:93589Hits:432375Hit ratio:86. 474998%trace consuming time: 2
12、. 304000 seconds请按任意键继续.,进程内存(MB)快照 专用字节154 -e1540 J0设置BUFFSIZE=65536进行测试,结果如下图:C:UsersZhao-hangtianOneDrive - mail.ustc.edu. X* Storage and Buffer Manager by ZHT *-1 - 1 1 1 1 , .人 1 - , 1 1 A - 1 - 1 1 1 1 - 1 1 1 1 1 1 1 - 1 1 - 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 (-(-(-(-(-(-(-(-(-(-(-(-(-(-(-(-(-(-
13、(-(-(-(-(-(-(-(-(-(-| -(-(-(-(-(-(-(-(-(-(-(-(-WELCOME!Open data, dbf successfully!Open data-5w-50w-zipf. txt successfully!Buffer frame size:65536BUFFER 10 PERFORMANCE TESTING!BUFFER 10 TEST OK!Request:50000010:86906Hits:452977Hit ratio:90.595398%trace consuming time : 1.910000 seconds请按任意键继续.0/进程内存
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 高级数据库系统 高级 数据库 系统 课程 实验
限制150内