[HTC One SV] jeffhutch.412:
phone must be rooted.

these are fairly safe modifications :D

1- download this apk

2- install it, open, and click enable sysctl.... then check with the verify button.

3- in your new init.d folder (/system/etc/init.d), create a new file named 03sysctl, set perm 0777 (rwxrwxrwx)

4- in that file write "#!/system/bin/sh"

"sysctl -p"

5- in your /system/etc folder, create a new file named sysctl.conf, set perm 0664 (rw-r--r--)

6- now you have two paths you can take-

1- download romtoolbox, and in the performance/kernel tweaks tab, you can have access to all your new settings!

2- in your sysctl.conf file paste:

vm.min_free_kbytes=11264

vm.oom_kill_allocating_task=1

vm.panic_on_oom=0

vm.dirty_background_ratio=15

vm.dirty_ratio=10

vm.vfs_cache_pressure=10

vm.overcommit_memory=1

vm.min_free_order_shift=4

vm.laptop_mode=0

vm.block_dump=0

vm.oom_dump_tasks=1

vm.swappiness=20

vm.drop_caches=3

vm.dirty_writeback_centisecs=2000

vm.dirty_expire_centisecs=1000

kernel.panic=5

kernel.panic_on_oops=0

kernel.msgmni=2048

kernel.msgmax=65536

kernel.random.read_wakeup_threshold=128

kernel.random.write_wakeup_threshold=256

kernel.hung_task_timeout_secs=30

kernel.sched_latency_ns=18000000

kernel.sched_min_granularity_ns=1500000

kernel.sched_wakeup_granularity_ns=3000000

kernel.sched_compat_yield=1

kernel.sched_shares_ratelimit=256000

kernel.sched_child_runs_first=0

kernel.threads-max=557056

fs.lease-break-time=10

fs.file-max=524288

fs.inotify.max_queued_events=32000

fs.inotify.max_user_instances=256

fs.inotify.max_user_watches=10240

net.core.wmem_max=1048576

net.core.rmem_max=1048576

net.core.rmem_default=262144

net.core.wmem_default=262144

net.core.optmem_max=20480

net.unix.max_dgram_qlen=50

net.ipv4.tcp_moderate_rcvbuf=1

net.ipv4.route.flush=1

net.ipv4.udp_rmem_min=6144

net.ipv4.udp_wmem_min=6144

net.ipv4.tcp_rfc1337=1

net.ipv4.ip_no_pmtu_disc=0

net.ipv4.tcp_ecn=0

net.ipv4.tcp_rmem='6144 87380 1048576'

net.ipv4.tcp_wmem='6144 87380 1048576'

net.ipv4.tcp_timestamps=0

net.ipv4.tcp_sack=1

net.ipv4.tcp_fack=1

net.ipv4.tcp_window_scaling=1

net.ipv4.tcp_tw_recycle=1

net.ipv4.tcp_tw_reuse=1

net.ipv4.tcp_congestion_control=cubic

net.ipv4.tcp_syncookies=1

net.ipv4.tcp_synack_retries=2

net.ipv4.tcp_syn_retries=2

net.ipv4.tcp_max_syn_backlog=1024

net.ipv4.tcp_max_tw_buckets=16384

net.ipv4.icmp_echo_ignore_all=1

net.ipv4.icmp_echo_ignore_broadcasts=1

net.ipv4.icmp_ignore_bogus_error_responses=1

net.ipv4.tcp_no_metrics_save=1

net.ipv4.tcp_fin_timeout=15

net.ipv4.tcp_keepalive_intvl=30

net.ipv4.tcp_keepalive_probes=5

net.ipv4.tcp_keepalive_time=1800

net.ipv4.ip_forward=0

net.ipv4.conf.all.send_redirects=0

net.ipv4.conf.default.send_redirects=0

net.ipv4.conf.all.rp_filter=1

net.ipv4.conf.default.rp_filter=1

net.ipv4.conf.all.accept_source_route=0

net.ipv4.conf.default.accept_source_route=0

net.ipv4.conf.all.accept_redirects=0

net.ipv4.conf.default.accept_redirects=0

net.ipv4.conf.all.secure_redirects=0

net.ipv4.conf.default.secure_redirects=0

7- you can check the success of all your hard work by opening terminal emulator, and

type "sysctl -p" (to show the latest values you have changed) and "sysctl -a" (to show EVERYTHING

that you can edit!)

8- WITH SYSCTL -A.. you will see ALOT of values that you will not see in rom toolbox. to edit any of these-

(long press to copy, exit terminal, open file manager, navigate to /etc/sysctl.conf, and paste. change the

value to whatever you want.

9- open term and "su" "sysctl -p" to see your new values.

all the net settings are experimental, they seem to make a difference to me

change values to whatevery you like- experiment.. :good:

let me know what you think or if you have some settings that work good :victory:

thanks-

imoseyon for having oodles of noodles of information on every aspect of sysctl there could be

ryuinferno for the simple yet awEEsoMe init.d apk