降低安卓系統之讀寫干擾以快速啟動應用程式
Reducing I/O interference in Android Devices for Fast Application Launching
摘要
手機在過去幾年來非常迅速的在全世界普及。手機上的使用者體驗會受到使用者可感知之延遲影響。啟動應用程式是一個I/O密集的行為。而手機中有大量的背景I/O影響可以干擾應用程式啟動,產生使用者可感知之延遲。
在這個研究中,我們設計一個實驗在I/O堆疊中觀察前景與背景的I/O競爭,觀察結果顯示背景非同步寫入會對於啟動應用程式造成大量影響。在干擾下,啟動臉書的平均時間由4.3秒增加至7.5秒。這是由於背景非同步寫入阻塞底層裝置,使啟動的I/O滯留於上層。我們提出增加可插隊性的方法減少非同步寫入干擾。它可以降低30 %在干擾下啟動臉書的時間。
在這個研究中,我們設計一個實驗在I/O堆疊中觀察前景與背景的I/O競爭,觀察結果顯示背景非同步寫入會對於啟動應用程式造成大量影響。在干擾下,啟動臉書的平均時間由4.3秒增加至7.5秒。這是由於背景非同步寫入阻塞底層裝置,使啟動的I/O滯留於上層。我們提出增加可插隊性的方法減少非同步寫入干擾。它可以降低30 %在干擾下啟動臉書的時間。
Smartphones are highly successful in the past decade. The user experience on smartphone will be effect by the user-perceived latency. Launching an application is an I/O intensive behavior. There are various background I/O activities on smartphone, which could interfere the application launching and incur the user-perceived latency.
In this work, we conducted an experiment to observe the foreground and background I/O contention in the I/O stack, and found that the asynchronous writes will significant interfere the application launching. With interference, the average launch time of Facebook was increased from 4.3s to 7.5s. We found that the asynchronous I/O in the lower layers blocked the synchronous I/O in higher layers. We proposed a method to improve the preemptivity of asynchronous
writes. The experiment result show that our methods reduce the average Facebook launch time with interference by 30%.
In this work, we conducted an experiment to observe the foreground and background I/O contention in the I/O stack, and found that the asynchronous writes will significant interfere the application launching. With interference, the average launch time of Facebook was increased from 4.3s to 7.5s. We found that the asynchronous I/O in the lower layers blocked the synchronous I/O in higher layers. We proposed a method to improve the preemptivity of asynchronous
writes. The experiment result show that our methods reduce the average Facebook launch time with interference by 30%.