Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/3019612.3019739acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

Coarse-grained mtime update for better fsync() performance

Published: 03 April 2017 Publication History

Abstract

This work is dedicated to improve the performance of the fsync(), which is one of the most expensive system calls in UNIX operating systems. Due to the recent advancement of the Flash storage based storage device, the storage device can flush the data blocks in order of magnitudes faster than the legacy HDDs. Often, the rate of flushing the data blocks to the storage device prevails the rate of CPU updating the file system time. The amount of the dirty blocks created in the system depends on the timer interrupt interval of the kernel. Read and write operations update the atime and mtime metadata, respectively. These timestamps are useful; however, there is significant performance degradation due to frequent updates of the metadata. Now in the file system, atime has several options to mediate between usefulness and performance efficiency. Most of the Database Management Systems frequently perform fsync() to guarantee the consistency of user data. The synchronous writes involve journaling overhead of updating mtime metadata in EXT4 file system. However, the effect of frequent update of mtime on write intensive workload has been overlooked. We introduce coarse-grained mtime update scheme to increase the mtime/ctime timestamp update interval while maintaining the same level of resolution for kernel time interrupts. As a result, coarse-grained update interval scheme reduces the journaling overhead with the least effort. The experiment results show that the I/O performance of random workload on mobile and PC increased about 7+ and 107+ against the default mtime update interval, respectively. The result of insert operations on PERSIST mode of SQLite on mobile and PC shows 8.4+ and 45.1+ of I/O performance increase, respectively. On MySQL OLTP workload, the performance increased by 7.9+.

References

[1]
Ext4 Documentation, https://www.kernel.org/doc/Documentation/filesystems/ext4.txt.
[2]
Real time clock (rtc) drivers for linux.
[3]
L. Abeni, A. Goel, C. Krasic, J. Snow, and J. Walpole. A measurement-based analysis of the real-time performance of linux. In Proc. of the IEEE RTAS, San Jose, CA, USA, Sep 2002.
[4]
Y. Ahn and K. S. Chung. User-centric Power Management for Embedded CPUs using CPU Bandwidth Control. IEEE Transactions on Mobile Computing(TMC), PP(99):1--1, Oct 2015.
[5]
P. Alcorn. Samsung Releases New 12 Gb/s SAS, M.2, AIC And 2.5" NVMe SSDs: 1 Million IOPS, Up To 15.63 TB, 2013. http://www.tomsitpro.com/articles/samsungsm953-pm1725-pm1633-pm1633a,1-2805.html.
[6]
BELL LAB. Unix Programmer' Manual(1st ed). https://www.bell-labs.com/usr/dmr/www/pdfs/man22.pdf.
[7]
V. Chidambaram, T. S. Pillai, A. C. Arpaci-Dusseau, and R. H. Arpaci-Dusseau. Optimistic Crash Consistency. In Proc. of the ACM SOSP '13, Farmington, PA, USA, Nov 2013.
[8]
D. Cobb and A. Huffman. NVM express and the PCI express SSD Revolution. In Proc. of Intel Developer-Forum, San Francisco, CA, USA, 2012.
[9]
J. Corbet, lazytime. https://lwn.net/Articles/621046/.
[10]
J. Corbet. Once upon atime. https://lwn.net/Articles/244829/.
[11]
J. Cortbet. relatime. http://lwn.net/Articles/326471/.
[12]
D. DeWitt, R. Katz, F. Olken, L. Shapiro, M. Stonebraker, and D. Wood. Implementation Techniques for Main Memory Database Systems. In Proc. of the ACM SIGMOD '84, Boston, MA, USA, Jun 1984.
[13]
F. Doughs and J. Ousterhout. Log-structured file systems. In COMPCON Spring'89. Thirty-Fourth IEEE Computer Society International Conference: Intellectual Leverage, Digest of Papers., pages 124--129. IEEE, 1989.
[14]
Gartner. Smartphone sales surpassed one billion units in 2014. http://www.gartner.com/newsroom/id/2996817.
[15]
I. A. T. Hashem, I. Yaqoob, N. B. Anuar, S. Mokhtar, A. Gani, and S. U. Khan. The rise of "big data" on cloud computing: Review and open research issues. ELSEVIER Information Systems, 47:98 -- 115, 2015.
[16]
W. Jannen, J. Yuan, Y. Zhan, A. Akshintala, J. Esmet, Y. Jiao, A. Mittal, P. Pandey, P. Reddy, L. Walsh, et al. BetrFS: A right-optimized write-optimized file system. In Proc. of the USENIX FAST '15, Santa Clara, CA, USA, Feb. 2015.
[17]
S. Jeong, K. Lee, S. Lee, S. Son, and Y. Won. I/O Stack Optimization for Smartphones. In Proc. of the USENIX ATC '13, San Jose, CA, USA, Jun 2013.
[18]
kernel/Kconfig.hz v3.0 rc7. Timer frequency.
[19]
M. Kim and Y. Won. IO characteristics of modern smartphone platform: Android vs. Tizen. In Proc. of the IEEE IWCMC '15, Dubrovnik, Croatia, Aug 2015.
[20]
W.-H. Kim, B. Nam, D. Park, and Y. Won. Resolving journaling of journal anomaly in android I/O: multi-version B-tree with lazy split. In Proc. of the USENIX FAST '14, Santa Clara, CA, USA, Feb 2014.
[21]
A. Kopytov. SysBench manual, 2004. http://imysql.com/wp-content/uploads/2014/10/sysbench-manual.pdf.
[22]
C. Lee, D. Sim, J. Hwang, and S. Cho. F2FS: A new file system for flash storage. In Proc. of the USENIX FAST '15, Santa Clara, CA, USA, Feb. 2015.
[23]
K. Lee. Mobile Benchmark Tool (MOBIBENCH). https://github.com/ESOS-Lab/Mobibench.
[24]
K. Lee and Y. Won. Smart Layers and Dumb Result: IO Characterization of an Android-Based Smartphone. In Proc. of the ACM EMSOFT '12, Tampere, Finland, Oct 2012.
[25]
W. Lee, K. Lee, H. Son, W. Kim, B. Nam, and Y. Won. WALDIO: Eliminating the filesystem journaling in resolving the journaling of journal anomaly. In Proc. of the USENIX ATC '15, Santa Clara, CA, USA, July 2015.
[26]
A. W. Leung, S. Pasupathy, G. Goodson, and E. L. Miller. Measurement and analysis of large-scale network file system workloads. In Proc. of the USENIX ATC '08, Boston, MA, USA, June 2008.
[27]
E. Lim, S. Lee, and Y. Won. Androtrace: Framework for tracing and analyzing IOs on Android. In Proc. of the ACM INFLOW'15, Monterey, CA, USA, Oct 2015.
[28]
Y. Liu, H. Yang, R. P. Dick, H. Wang, and L. Shang. Thermal vs Energy Optimization for DVFS-Enabled Processors in Embedded Systems. In Proc. of the IEEE ISQED'07, Santa Clara, CA, USA, March 2007.
[29]
A. Mathur, M. Cao, S. Bhattacharya, A. Dilger, A. Tomas, and L. Vivier. The new ext4 filesystem: current status and future plans. In Proceedings of the Linux symposium, volume 2, pages 21--33. Citeseer, 2007.
[30]
T. P. Morgan. Flashtec NVRAM Does 15 Million IOPS At Sub-Microsecond Latency, 2014. http://www.enterprisetech.com/2014/08/06/flashtecnvram-15-million-iops-sub-microsecond-latency/.
[31]
A. MySQL. Mysql 5.1 reference manual. Sun Microsystems, 2007.
[32]
O. Rodeh, J. Bacik, and C. Mason. BTRFS: The Linux B-tree filesystem. ACM Transactions on Storage (TOS), 9(3):9, 2013.
[33]
M. Rosenblum and J. K. Ousterhout. The design and implementation of a log-structured file system. In ACM Transactions on Computer Systems (TOCS), volume 10, pages 26--52, 1992.
[34]
K. Shen, S. Park, and M. Zhu. Journaling of journal is (almost) free. In Proc. of the USENIX FAST '14 Santa Clara, CA, USA, Feb. 2014.
[35]
C. Shulyupin. The Tick Rate: HZ. http://www.makelinux.net/books/lkd2/ch101ev1sec2.
[36]
A. Sweeney, D. Doucette, W. Hu, C. Anderson, M. Nishimoto, and G. Peck. Scalability in the XFS file system. In Proc. of the USENIX ATC '96, San Diego, CA, USA, Jan. 1996.
[37]
B. Tallis. Intel Announces SSD DC P3608 Series, 2015. http://www.anandtech.com/show/9646/intelannounces-ssd-dc-p3608-series.
[38]
S. C. Tweedie. Journaling the linux ext2fs filesystem. In Proc. of The Fourth Annual Linux Expo, 1998.
[39]
W. Vogels. File system usage in Windows NT 4.0. SIGOPS Operating System Review, 33(5):93--109, Dec. 1999.

Cited By

View all
  • (2018)Analysis for the performance degradation of fsync() in F2FSProceedings of the 9th International Conference on E-Education, E-Business, E-Management and E-Learning10.1145/3183586.3183605(71-75)Online publication date: 11-Jan-2018
  • (2017)Guaranteeing the Metadata Update Atomicity in EXT4 File systemProceedings of the 8th Asia-Pacific Workshop on Systems10.1145/3124680.3124722(1-8)Online publication date: 2-Sep-2017

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
SAC '17: Proceedings of the Symposium on Applied Computing
April 2017
2004 pages
ISBN:9781450344869
DOI:10.1145/3019612
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 03 April 2017

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. fsync() performance
  2. journaling overhead
  3. mtime update
  4. timer interrupt

Qualifiers

  • Research-article

Funding Sources

  • IT R&D program MKE/KEIT
  • MSIP(Ministry of Science, ICT&Future Planning), Korea, under the ITRC(Information Technology Research Center) support program

Conference

SAC 2017
Sponsor:
SAC 2017: Symposium on Applied Computing
April 3 - 7, 2017
Marrakech, Morocco

Acceptance Rates

Overall Acceptance Rate 1,650 of 6,669 submissions, 25%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)11
  • Downloads (Last 6 weeks)3
Reflects downloads up to 10 Nov 2024

Other Metrics

Citations

Cited By

View all
  • (2018)Analysis for the performance degradation of fsync() in F2FSProceedings of the 9th International Conference on E-Education, E-Business, E-Management and E-Learning10.1145/3183586.3183605(71-75)Online publication date: 11-Jan-2018
  • (2017)Guaranteeing the Metadata Update Atomicity in EXT4 File systemProceedings of the 8th Asia-Pacific Workshop on Systems10.1145/3124680.3124722(1-8)Online publication date: 2-Sep-2017

View Options

Get Access

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media