Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7de52d7 authored by Daeho Jeong's avatar Daeho Jeong Committed by Jaegeuk Kim
Browse files

init.rc: set f2fs seq_file_ra_mul to 128



Based on experiments, we fount out 128 (128 x global readahead window
size = 16mb) is the optimal multiple to boost up read speeds for the
sequentially accessed files with POSIX_FADV_SEQUENTIAL.

Bug: 195311558
Test: check the /sys/fs/f2fs/<userdata partition>/seq_file_ra_mul value
Merged-In: I7563ad6e47b9ab76ae7fe36978d0e5970a7490e8
Change-Id: I7563ad6e47b9ab76ae7fe36978d0e5970a7490e8
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
parent 1a626643
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1142,7 +1142,7 @@ on boot
    write /dev/sys/fs/by-name/userdata/iostat_enable 1
    write /dev/sys/fs/by-name/userdata/iostat_enable 1


    # set readahead multiplier for POSIX_FADV_SEQUENTIAL files
    # set readahead multiplier for POSIX_FADV_SEQUENTIAL files
    write /dev/sys/fs/by-name/userdata/seq_file_ra_mul 16
    write /dev/sys/fs/by-name/userdata/seq_file_ra_mul 128


    # limit discard size to 128MB in order to avoid long IO latency
    # limit discard size to 128MB in order to avoid long IO latency
    # for filesystem tuning first (dm or sda)
    # for filesystem tuning first (dm or sda)