1

I configured the following parametersbut after restart the values return to the previews values.

How to configure them as permanent?

 echo 500 > /proc/sys/vm/dirty_expire_centisecs
 echo 3 >  /proc/sys/vm/dirty_background_ratio
 echo 100 > /proc/sys/vm/dirty_writeback_centisecs

by the way the parameters dont exist in this file

more /etc/sysctl.conf
# /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 5767168
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 4194304
net.core.wmem_default = 1048576
net.core.wmem_max = 4194304
net.ipv4.ip_local_port_r
  • 1
    then write into it. – Ipor Sircer Nov 2 '16 at 13:20
  • how ? please give an example? – yael Nov 2 '16 at 13:21
  • like - dirty_expire_centisecs = 500 ?? – yael Nov 2 '16 at 13:22
  • if I run the sysctl -a , I get more then 100 parameters but in sysctl.conf I have only ~20 ? – yael Nov 2 '16 at 13:24
  • sysctl -a gives you all the active kernel parameters, sysctl.conf are the ones you have customised in your environment. Mine got around ~60-70. vm.dirty_expire_centisecs = 1000 – Rui F Ribeiro Nov 2 '16 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.