In order to choose a good replacement policy to be implemented in Swapper, we simulated four different algorithms
based on the average measures taken from real mobile devices and wireless networks. The results obtained from the
simulations help us to decide which policy replacement algorithm to implement in our Swapper application. The main
task of a replacement algorithm is to decide which file will be
sent to the external storage server to release storage space
in the local memory. The following policies were evaluated:
LRU (Least Recently Used), LFU (Least Frequently Used),
LFS (Largest File Size), SFS (Smallest File Size). The average file size obtained from different mobile phones was
1.3MB. Most of the files were images and music. We made
tests trying to find an optimal block size for transmission
of file regardless of the wireless network. The better results were obtained with a block size of 1KB. Particularly in