Closed rcoenen closed 5 years ago
UPDATE: working now There seems to be a solution posted here:
http://larstechnica.com/2017/06/docker-for-mac-fix-for-max-files-transparent-hugepages-warnings
Initially as per instructions in link above I added the extra lines to docker-compose.yml
however this yielded a new problem:
$ docker-compose up
Recreating gekko_redis_1 ... done
Recreating gekko_gekko_1 ... done
Attaching to gekko_redis_1, gekko_gekko_1
redis_1 | 1:C 28 Mar 2019 22:32:43.302 # Fatal error, can't open config file '/usr/local/etc/redis/redis.conf'
gekko_redis_1 exited with code 1
Then I removed these lines again and tried the hack as also described in the url above:
docker run --rm --privileged -ti alpine /bin/sh -c "echo never > /sys/kernel/mm/transparent_hugepage/enabled && echo never > /sys/kernel/mm/transparent_hugepage/defrag"
Now it is working without getting the Transparent Huge Pages (THP) warning message.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me.
Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
I'm submitting a ... [x ] bug report [ ] question about the decisions made in the repository
Action taken (what you did) installed git master V0.6.8 Gekko on Docker as per instructions
Expected result (what you hoped would happen) work without errors
Actual result (unexpected outcome)
redis_1 | 1:M 28 Mar 2019 02:22:20.487 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)