You are not logged in.
I used several filesystems and have found android emulator performance difference between filesystems.
my system is:
i5-8500
16G memory
pm981 ssd 256G
no swap.
all pakages are updated.
* the emulator is embedded in android studio.
* dirty page usage check command - "watch -d -n 1 grep -e Dirty: -e Writeback: /proc/meminfo"
Ext4:
It shows low dirty page usage, less than 1G.
the emulator runs smoothly and other applications (browser and text editor) also start fast during running the emulator.
- created with "mkfs.ext4 -m 0"
- fast_commit
- noatime
Xfs:
before 5.18 kernel it is almost same as ext4, showed low dirty page usage, but in 5.18 and 5.19, It shows high dirty page usage. (1G~2G, sometime over 2G)
the emulator run smoothly (but if you set low dirty_ratio or bytes, the emulator runs slowly.), but other applications start slow, even if you have enough ram.
-tested on both noatime and relatime.
Btrfs:
It shows low dirty page usage, but the emulator runs very slowly.
-tested on both compression(zstd) and no compression.
I'm not sure it is same on your system, but in my case, Ext4 is a proper filesystem for android emulator.
*If you do not have enouth ram, increase vm.dirty_ratio (+ vm.swappiness if you need ) to run android emulator smoothly.
edit : I have found a workaround for btrfs on web (https://www.reddit.com/r/btrfs/comments … partition/)
Last edited by nowy (2022-08-21 06:35:54)
Offline