Journaling of journal is (almost) free

نویسندگان

  • Kai Shen
  • Stan Park
  • Meng Zhu
چکیده

Lightweight databases and key-value stores manage the consistency and reliability of their own data, often through rollback-recovery journaling or write-ahead logging. They further rely on file system journaling to protect the file system structure and metadata. Such journaling of journal appears to violate the classic end-to-end argument for optimal database design. In practice, we observe a significant cost (up to 73% slowdown) by adding the Ext4 file system journaling to the SQLite database on a Google Nexus 7 tablet running a Ubuntu Linux installation. The cost of file system journaling is up to 58% on a conventional machine with an Intel 311 SSD. In this paper, we argue that such cost is largely due to implementation limitations of the existing system. We apply two simple techniques—ensuring a single I/O operation on the synchronous commit path, and adaptively allowing each file to have a custom journaling mode (in particular, whether to journal the file data in addition to the metadata). Compared to SQLite without file system journaling, our enhanced journaling improves the performance or incurs minor (<6%) slowdown on all but one of our 24 test cases (with 14% slowdown in the exceptional case). On average, our enhanced journaling implementation improves the SQLite performance by 7%.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Autoethnography: reflective journaling and meditation to cope with life-threatening breast cancer.

Autoethnography is a qualitative research approach whereby the researcher shares personal stories that relate to the broader cultural context. Living through breast cancer showed me how reflective journaling and meditation can help one to cope with locally advanced breast cancer. The purpose of this autoethnography is to assist nurses in gaining a greater understanding of the primary cultural i...

متن کامل

WALDIO: Eliminating the Filesystem Journaling in Resolving the Journaling of Journal Anomaly

This work is dedicated to resolve the Journaling of Journal Anomaly in Android IO stack. We orchestrate SQLite and EXT4 filesystem so that SQLite’s file-backed journaling activity can dispense with the expensive filesystem intervention, the journaling, without compromising the file integrity under unexpected filesystem failure. In storing the logs, we exploit the direct IO to suppress the files...

متن کامل

Nursing Student Perceptions of Reflective Journaling: A Conjoint Value Analysis

This study used a statistical technique, conjoint value analysis, to determine student perceptions related to the importance of predetermined reflective journaling attributes. An expert Delphi panel determined these attributes and integrated them into a survey which presented students with multiple journaling experiences from which they had to choose. After obtaining IRB approval, a convenience...

متن کامل

I/O Stack Optimization for Smartphones

The Android I/O stack consists of elaborate and mature components (SQLite, the EXT4 filesystem, interruptdriven I/O, and NAND-based storage) whose integrated behavior is not well-orchestrated, which leaves a substantial room for an improvement. We overhauled the block I/O behavior of five filesystems (EXT4, XFS, BTRFS, NILFS, and F2FS) under each of the five different journaling modes of SQLite...

متن کامل

بررسی تاثیر ژورنالینگ بر اضطراب و استرس بیماران مبتلا به مولتیپل اسکلروزیس

  Introduction : Multiple Sclerosis (MS) is one of the most common chronic diseases of the Central Nervous System . Of it's significant features is that most patients are young adults and it's disabling nature. Psychiatric disorders such as anxiety and stress are seen in MS patients considerably. Journaling the nursing intervention and written emotional expression, is one of cost-effective self...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014