Skip to content

Commit

Permalink
Remove discard command tuning
Browse files Browse the repository at this point in the history
Signed-off-by: Jaegeuk Kim <[email protected]>
Change-Id: If1d6b52aea4d8d2cfb3bdae94d7f00ac29e9c9a4
  • Loading branch information
Jaegeuk Kim committed Mar 16, 2022
1 parent 5f5f945 commit 2b779cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions init.hardware.rc
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,6 @@ on property:init.svc.vendor.charger=running
on property:sys.boot_completed=1
setprop vendor.setup.power 1

# Block layer tuning: discard chunk size up to 128MB
# Otherwise, contiguous discards can be merged
write /sys/block/sda/queue/discard_max_bytes 134217728

# Back to default VM settings
write /proc/sys/vm/dirty_expire_centisecs 3000
write /proc/sys/vm/dirty_background_ratio 10
Expand Down
4 changes: 0 additions & 4 deletions init.recovery.device.rc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ on init
write /sys/module/msm_poweroff/parameters/warm_reset 1
# Enable thermal mitigation
write /sys/devices/virtual/thermal/tz-by-name/backup-charge/mode enabled

# Block layer tuning: discard chunk size up to 128MB
# Otherwise, contiguous discards can be merged
write /sys/block/sda/queue/discard_max_bytes 134217728

0 comments on commit 2b779cc

Please sign in to comment.