Fast file synching for applications in flash-based Android devices

Flash-storage-based Android devices have been a very popular design option for hand-held devices. Recent research pointed out that application-level data management in Android systems involves frequent file synching operations (i.e., fsync() calls). Because fsync() is a blocking call, applications could suffer from poor response if the fsync() implementation is inefficient. The existing methods of file synching in Android systems are not flash-aware, and they could either significantly increase the block-level write randomness or excessively increase the block write traffic. This work introduces an efficient design of fsync() called eager synching. Our basic idea is simple: write less, and write sequentially. When a file is being synched, eager synching first identifies the dirty data related to the file, and then write the dirty data to a sequential log space. This way, fsync() calls can be quickly serviced by a small amount of fast, sequential block writes on the flash storage. Our experimental results show that, under the workloads of typical Android applications, the average and max fsync() latencies were reduced by up to 72% and 91%, respectively, and the block-level write traffic was reduced by up to 35%.

[1]  Liang Shi,et al.  Cooperating Write Buffer Cache and Virtual Memory Management for Flash Memory Based Systems , 2011, 2011 17th IEEE Real-Time and Embedded Technology and Applications Symposium.

[2]  Youjip Won,et al.  I/O Stack Optimization for Smartphones , 2013, USENIX ATC.

[3]  Youjip Won,et al.  Smart layers and dumb result: IO characterization of an android-based smartphone , 2012, EMSOFT '12.

[4]  Tzi-cker Chiueh,et al.  Track-based disk logging , 2002, Proceedings International Conference on Dependable Systems and Networks.

[5]  Li-Pin Chang,et al.  Plugging versus logging: A new approach to write buffer management for solid-state disks , 2011, 2011 48th ACM/EDAC/IEEE Design Automation Conference (DAC).

[6]  Jianhua Li,et al.  ExLRU: A unified write buffer cache management for flash memory , 2011, 2011 Proceedings of the Ninth ACM International Conference on Embedded Software (EMSOFT).

[7]  Je-Min Kim,et al.  Advil: A Pain Reliever for the Storage Performance of Mobile Devices , 2012, 2012 IEEE 15th International Conference on Computational Science and Engineering.

[8]  Cristian Ungureanu,et al.  Revisiting storage for smartphones , 2012, TOS.