DBPIA-NURIMEDIA

Similar documents
6.24-9년 6월

DBPIA-NURIMEDIA

PowerPoint Presentation

Oracle Database 10g: Self-Managing Database DB TSC

결과보고서

Oracle9i Real Application Clusters

°í¼®ÁÖ Ãâ·Â

05( ) CPLV12-04.hwp

MS-SQL SERVER 대비 기능

10 이지훈KICS hwp

DBPIA-NURIMEDIA

High Resolution Disparity Map Generation Using TOF Depth Camera In this paper, we propose a high-resolution disparity map generation method using a lo

Analysis of objective and error source of ski technical championship Jin Su Seok 1, Seoung ki Kang 1 *, Jae Hyung Lee 1, & Won Il Son 2 1 yong in Univ

03-서연옥.hwp

[ReadyToCameral]RUF¹öÆÛ(CSTA02-29).hwp

À±½Â¿í Ãâ·Â

(JBE Vol. 21, No. 1, January 2016) (Regular Paper) 21 1, (JBE Vol. 21, No. 1, January 2016) ISSN 228

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE. vol. 29, no. 10, Oct ,,. 0.5 %.., cm mm FR4 (ε r =4.4)

歯1.PDF

<30362E20C6EDC1FD2DB0EDBFB5B4EBB4D420BCF6C1A42E687770>

(72) 발명자 이동희 서울 동작구 여의대방로44길 10, 101동 802호 (대 방동, 대림아파트) 노삼혁 서울 중구 정동길 21-31, B동 404호 (정동, 정동상 림원) 이 발명을 지원한 국가연구개발사업 과제고유번호 부처명 교육과학기술부

???춍??숏

PowerPoint Presentation

인문사회과학기술융합학회

07.045~051(D04_신상욱).fm

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Nov.; 26(11),

<353420B1C7B9CCB6F52DC1F5B0ADC7F6BDC7C0BB20C0CCBFEBC7D120BEC6B5BFB1B3C0B0C7C1B7CEB1D7B7A52E687770>

DBPIA-NURIMEDIA

디지털포렌식학회 논문양식

???? 1

목 차

DBPIA-NURIMEDIA

untitled

<333820B1E8C8AFBFEB2D5A B8A620C0CCBFEBC7D120BDC7BFDC20C0A7C4A1C3DFC1A42E687770>

<30372E20B1E8B5B5C7F6B4D42E687770>

Æ÷Àå82š

<35335FBCDBC7D1C1A42DB8E2B8AEBDBAC5CDC0C720C0FCB1E2C0FB20C6AFBCBA20BAD0BCAE2E687770>

정보기술응용학회 발표

ORANGE FOR ORACLE V4.0 INSTALLATION GUIDE (Online Upgrade) ORANGE CONFIGURATION ADMIN O

PowerPoint Presentation

8-VSB (Vestigial Sideband Modulation)., (Carrier Phase Offset, CPO) (Timing Frequency Offset),. VSB, 8-PAM(pulse amplitude modulation,, ) DC 1.25V, [2

±èÇö¿í Ãâ·Â

<B8F1C2F72E687770>

< FC1A4BAB8B9FDC7D D325FC3D6C1BEBABB2E687770>

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Feb.; 29(2), IS

PowerPoint 프레젠테이션

DBPIA-NURIMEDIA

À¯Çõ Ãâ·Â

62

Backup Exec

<31362DB1E8C7FDBFF82DC0FABFB9BBEA20B5B6B8B3BFB5C8ADC0C720B1B8C0FC20B8B6C4C9C6C32E687770>

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE. vol. 29, no. 6, Jun Rate). STAP(Space-Time Adaptive Processing)., -

The Self-Managing Database : Automatic Health Monitoring and Alerting

Microsoft Word - KSR2012A021.doc

example code are examined in this stage The low pressure pressurizer reactor trip module of the Plant Protection System was programmed as subject for

1217 WebTrafMon II

Journal of Educational Innovation Research 2019, Vol. 29, No. 1, pp DOI: An Exploratory Stud

출원국 권 리 구 분 상 태 권리번호 KR 특허 등록

solution map_....

<31325FB1E8B0E6BCBA2E687770>

14.531~539(08-037).fm

DBPIA-NURIMEDIA

Microsoft PowerPoint - o8.pptx

External Sorting

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Jun.; 27(6),

歯3-한국.PDF

본문

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Dec.; 27(12),

Lumbar spine

보안공학연구회

<3136C1FD31C8A35FC3D6BCBAC8A3BFDC5F706466BAAFC8AFBFE4C3BB2E687770>

Journal of Educational Innovation Research 2018, Vol. 28, No. 4, pp DOI: * A S

05 목차(페이지 1,2).hwp

09권오설_ok.hwp

DBPIA-NURIMEDIA

3. 클라우드 컴퓨팅 상호 운용성 기반의 서비스 평가 방법론 개발.hwp

Æ÷Àå½Ã¼³94š

ÀÌÀç¿ë Ãâ·Â

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Jul.; 27(7),

82-01.fm

#Ȳ¿ë¼®

DBPIA-NURIMEDIA

?

878 Yu Kim, Dongjae Kim 지막 용량수준까지도 멈춤 규칙이 만족되지 않아 시행이 종료되지 않는 경우에는 MTD의 추정이 불가 능하다는 단점이 있다. 최근 이 SM방법의 단점을 보완하기 위해 O Quigley 등 (1990)이 제안한 CRM(Continu

위해 사용된 기법에 대해 소개하고자 한다. 시각화와 자료구조를 동시에 활용하는 프로그램이 가지는 한계와 이를 극복하기 위한 시도들을 살펴봄으로서 소셜네트워크의 분석을 위한 접근 방안을 고찰해 보고자 한다. 2장에서는 실험에 사용된 인터넷 커뮤니티인 MLBPark 게시판

THE JOURNAL OF KOREAN INSTITUTE OF ELECTROMAGNETIC ENGINEERING AND SCIENCE Mar.; 30(3),


歯sql_tuning2


Journal of Educational Innovation Research 2017, Vol. 27, No. 4, pp DOI: A Study on the Opti

Simplify your Job Automatic Storage Management DB TSC

½Éº´È¿ Ãâ·Â

45-51 ¹Ú¼ø¸¸

ETL_project_best_practice1.ppt

07_Àü¼ºÅÂ_0922

정진명 남재원 떠오르고 있다. 배달앱서비스는 소비자가 배달 앱서비스를 이용하여 배달음식점을 찾고 음식 을 주문하며, 대금을 결제까지 할 수 있는 서비 스를 말한다. 배달앱서비스는 간편한 음식 주문 과 바로결제 서비스를 바탕으로 전 연령층에서 빠르게 보급되고 있는 반면,

12.077~081(A12_이종국).fm

Kor. J. Aesthet. Cosmetol., 라이프스타일은 개인 생활에 있어 심리적 문화적 사회적 모든 측면의 생활방식과 차이 전체를 말한다. 이러한 라이프스 타일은 사람의 내재된 가치관이나 욕구, 행동 변화를 파악하여 소비행동과 심리를 추측할 수 있고, 개인의

DBPIA-NURIMEDIA

1. 연구 개요 q 2013년 연구목표 제2-1과제명 건축물의 건강친화형 관리 및 구법 기술 연구목표 건강건축 수명예측 Lifecycle Health Assessment (LHA) 모델 개발 건축물의 비용 기반 분석기술(Cost-based Lifecycle Health

Transcription:

SQLite 이준희 *, 신민철 **, 장용일 ***, 박상현 **** LG. 요약 Abstract SQLite is a popular relational database management system(rdbms) mainly used in local application, embedded device, and smartphone. In order to preserve transactional atomicity and durability, SQLite uses recovery schemes that are based on physical logging. Physical logging generates large log file, because whole page is stored even if only a small portion of page is modified. Therefore, log maintenance cost of physical logging is expensive, and it causes delay in applications that use SQLite. In this paper, we propose a new recovery scheme for SQLite, Delta-WAL. Delta-WAL is a recovery scheme based on logical logging, and reduces log size by storing only operation code and input values. In experiment, Delta-WAL generated smaller log compared to existing recovery schemes, and also showed improved transaction throughput. Keywords SQLite, recovery scheme, logical logging, DBMS LG MC Chief Research Engineer ž Received: Oct. 28, 214, Revised: Nov. 17, 214, Accepted: Nov. 2, 214 ž Corresponding Author: Sanghyun Park Dept. of Computer Science, Yonsei University, 533-1, 3rd Engineering Building Sinchon-dong, Seodaemun-gu, Seoul-si, 69-756, Korea, Tel.: +82 2 2123-7757, Email: sanghyun@cs.yonsei.ac.kr

182 SQLite (DBMS, Database Management System). DBMS /. DBMS DBMS SQLite[1], MySQL[2], PostgreSQL[3], Oracle[4]. DBMS. DBMS. DBMS 1 ACID [5]. DBMS (,, ). DBMS (Atomicity). DBMS,. SQLite DBMS (Rollback Journal) Write-Ahead Logging(WAL). WAL. SQLite [6][7], SQLite. SQLite Delta-WAL( DWAL). DWAL,.. 2 DBMS SQLite. 3 SQLite DWAL 4 DWAL. 5 DWAL 6. DBMS. (Physical Logging). (Undo), (Redo). /. (Logical Logging)

..,. physiological logging. /. / /. SQLite D.Richard Hipp 2 8. SQLite ANSI-C.,.,,, [8]. SQLite 3.8.6. 2.2.1 SQLite SQLite [9][1] WAL., ( < >-journal ),.. WAL. WAL, WAL WAL( < >-WAL ). WAL. WAL (1) (WAL ) (2). WAL WAL WAL. WAL. WAL. 2.2.2 SQLite SQLite DBMS B-. SQLite 1. SQLite DBMS SQLite I/O. 1. 1byte [11].,,, sqlite_master.

184 SQLite Database Header (1 byte) Schema Table Page 2 Page 3 (sqlite_master) Page 1 (Header Page) B-Tree Pages Database Header Schema Table (sqlite_master) Header Page 11 Pgno 28 Pgno Non-leaf Node 11 Pgno 18 Pgno 28 Pgno 3 Pgno 35 Pgno 11 Record 16 Record 18 Record 24 Record Leaf Node 28 Record 29 Record Non-leaf Node Page Header ptr 1 ptr 2 ptr 3 ptr 4 ptr 5 Rightmost child s pgno Cell Pointer Array Leaf Node Page Header ptr 1 ptr 2 ptr 3 ptr 4 ptr 5 key5 pgno5 key4 pgno4 key3 pgno1 Rec 5 Rec 4 pgno3 key2 pgno2 key1 pgno1 Cell Rec 3 Rec 2 Rec 1 SQLite B- B- rowid (Attribute) B- (Key). B- B-. B- 2(a) B+ non-leaf leaf. 2(b) B-. slotted-page [12] (Cell). Non-leaf

. leaf. SQLite ( B- ), non-leaf ( row id). 2.2.3 SQLite Jeong [13] I/O trace 9% SQLite SQLite. Kang FTL X-FTL [14]. X-FTL SQLite I/O., X-FTL copy-on-write DWAL. SQLite. [15][16] SQ Lite,.. DWAL WAL,. DWAL. 3.1 DWAL. 3.2 3.3 3.4 3.5 DWAL. 3.6 DWAL SQLite. DWAL. 2 2.

186 SQLite 1) SQLite. 2) SQLite DWAL. DWAL (Cell_Insert, Cell_Drop), (Page_alloc, Page_empty, Page_erase, Page_ stressed), B- (Copy_Cells, Assemble_Page),,,. Page_ stressed SQLite (Buffer Management Policy). SQLite. SQLite SQLite Pager Stress.. 3.2. DWAL DWAL. 3. Opcode Page Version Number Page Number Cell index Data Opcode 2. Page Number, Cell index. Cell index Data Opcode. 2 Page_stressed. SQLite., Pager Stress. DWAL PagerStress Data. Page Version Number(PVN). PVN 1 PVN 1., PVN DWAL PVN 4. DWAL SQLite. slotted-page 4..,, (lower, upper),. (offset, length). Pointer n byte n.

Lower Page Header Pointer 1 (offset, length) Pointer 2 (offset, length) Pointer 3 (offset, length) Free Space Log Entry 3 Log Entry 2 Log Entry 1 Upper pointer. DWAL. 2. DBMS.. DWAL 1. DWAL ( 1 1). ( 2) ( < >-DWAL ) ( 3-5). os fsync ( 6). ( 7-8). DWAL.,. fsync, fsync. DWAL fsync. Fsync.

188 SQLite fsync. DWAL SQLite,. 2. DWAL (Backward Traversal) Page_stressed ( 2 1-2 ).. ( 3)., PVN PVN ( 4-5). PVN ( 6). (Forward Traversal), 2 SQLite ( 7-9). DWAL WAL. WAL WAL ANR (Application Not Responding). DWAL (fsync). ACID. DWAL..,,. DWAL,. Pager_stressed ( 2 1-3 ). Pager_stressed..

,.,.. 3.5 DWAL. 1). 4.1 Pager_stressed ( 2 1-3 ). 2). DWAL ( 3),.. SQLite.. DWAL.. DWAL SQLite, WAL. 3 TPC-C [17]. TPC-C TPC-C. DWAL,, 3. 1 1 1. 1 1. 3, 2, 2.

19 SQLite 5. WAL 3 DWAL.. WAL 2 DWAL. WAL DWAL.. SQLite B-. B- B-. SQL B-. WAL..... DWAL. WAL,. DWAL. 25 25 25 Elapsed Time(ms) 2 15 1 5 Elapsed time(ms) 2 15 1 5 Elapsed time(ms) 2 15 1 5 1 2 3 4 5 6 Number of index 1 2 3 4 5 6 Number of index 1 2 3 4 5 6 Number of index 8 7 21 18 7 6 Size of log file(bytes) 6 5 4 3 2 Size of log file(bytes) 15 12 9 6 Size of log file(bytes) 5 4 3 2 1 3 1 1 2 3 4 5 6 Number of index 1 2 3 4 5 6 Number of index 1 2 3 4 5 6 Number of index

DWAL (real workload). TPC-C 8 scale factor 1 35MB. TPC-C 5 (New Order, Payment, Delivery, Order Status, Stock Level) Order Status Stock Level.,. 4 1 6. 6 2 2 3 Overall. Transaction per Second(txn/s) 2 16 12 8 4 DELIVERY NEW_ORDER PAYMENT OVERALL Transaction TPC-C DWAL. DWAL 3 DELIVERY, NEW_ORDER 2 PAYMENT WAL. 2 5 ( 6 Overall) DWAL. DBMS SQLite DWAL. DWAL SQLite, WAL. DWAL TPC-C WAL. DWAL. DWAL. DWAL. SQLite. SQLite DWAL (UX). [1] SQLite, http://sqlite.org/ [2] MySQL, http://www.mysql.com/ [3] PostgreSQL, www.postgresql.org/ [4] Oracle Database, http://docs.oracle.com/cd/e11882_ 1/server.112/e25789/intro.htm [5] S. Abraham, K. Henry, and S. Sudarshan, "Database System Concepts 6th edition", McgrewHill, pp.

192 SQLite 628, 211. [6] H. Kim, N. Agrawal, and C. Ungureanu, "Revisiting storage for smartphones", In Proceedings of USENIX Conference on File and Storage Technologies, 212. [7] K. Lee and Y. Won, "Smart Layers and Dumb Result: IO Characterization of an Android-Based Smartphone", In Proceedings of ACM EMSOFT, pp. 23-32, 212. [8] Well-Known Users of SQLite, http://www.sqlite. org/famous.html [9] V. Prabhakaran, A. C. Arpaci-Dusseau, and R. H. Arpaci-Dusseau, "Analysis and Evolution of Journaling File Systems", In proceedings of USENIX Annual Technical Conference, pp. 15-12, 25. [1] D. Woodhouse, "JFFS : The Journalling Flash File System", In Proceedings of the Ottawa Linux Symposium, 21. [11] SQLite Database Header, http://www.sqlite.org/ fileformat2.html#database_header [12] S. Abraham, K. Henry, and S. Sudarshan, "Database System Concepts 6th edition", Mcgrew Hill, pp. 1147, 211. [13] S. Jeoung, K. Lee, S. Lee, S. Son, and Y. Won, "I/O Stack Optimization for Smartphones", 213 USENIX Annual Technical Conference, 213. [14] W. Kang, S. Lee, and B. Moon, "X-FTL: Transactional FTL for SQLite Databases", SIGMOD 13, 213. [15] S. Jeon, J. Bang, K. Byun, and S. Lee, "A recovery method of deleted record for SQLite database", Personal and Ubiquitous Computing, Vol. 16, Issue 6, pp. 77-715, Aug. 212. [16] Gyu-Won Lee, Seung-Jei Yang, Hyun-Uk Hwang, Kibom Kim, Taejoo Chang, and Ki-Wook Sohn, "A Recovery Scheme for the Deleted Overflow Data in SQLite Database", Journal of KIIT, Vol. 1, No. 11, pp. 143-153, Nov. 212. [17] Transaction Processing Performance Council, TPC BENCHMARK C Standard Specification Revision 5.11, 21. 이준희 (Joonhee Lee) 신민철 (Mincheol Shin) 장용일 (Yongil Jang) 박상현 (SangHyun Park)