Abstract:Android mobile phones generally use flash as a local storage medium, which leads to the use of EXT4 file system has the problem of loss of read and write performance, indirectly affecting the application experience. Based on the analysis of the causes of performance loss, this paper presents a method for optimizing the log function of EXT4 file system. First of all, EXT4 file system log function research, analysis of how to maintain journal data. By comparing the different characteristics of traditional disk and flash memory, we put forward the reasons for the performance loss problem and give the solution. This method takes EXT4 transaction status as a basis to actively delete useless log data, and reduces unnecessary data copy in flash device garbage collection process without destroying the original journal function. Through the comparative experiments show that this method can improve about 11.8% read and write performance of Ext4 file system in Android mobile phone.