radusuciu / savesoundcloud

Web app for exporting information from soundcloud to csv
https://soundcloudcsv.com
14 stars 2 forks source link

Redis complaints #12

Closed radusuciu closed 4 years ago

radusuciu commented 4 years ago
# WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
# WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. 
radusuciu commented 4 years ago

Fixing on host:

For the first error, issue sudo sysctl vm.overcommit_memory=1 and add vm.overcommit_memory = 1 to /etc/sysctl.conf

And for the 2nd, THP error, took solution from: https://stackoverflow.com/questions/44800633/how-to-disable-transparent-huge-pages-thp-in-ubuntu-16-04lts

Edit /etc/rc.local and put following script before exit 0

if test -f /sys/kernel/mm/transparent_hugepage/enabled; then
   echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi

then (as root, sudo didn't work): echo never > /sys/kernel/mm/transparent_hugepage/enabled