4 ms·
This is what I do at $dayjob. We have been using tcmalloc for a while on our databases, as well as disabling the transparent huge pages and transparent huge pa
by stock_toaster 14y ago
This is what I do at $dayjob.
We have been using tcmalloc for a while on our databases, as well as disabling the transparent huge pages and transparent huge page defrag (centos6). It made a big difference for us.
- ck2 14y agoCan I ask you a dumb question: I think I just turned it on properly but I have no idea how to proactively confirm that mysql is actually using jemalloc, rather than just wait for better performance numbers? Because it's an external environment variable, it doesn't actually show inside any of mysql's settings. No startup errors or runtime problems is always nice but I really am curious to know for a fact it worked. Will probably have to ask this on stackexchange if you don't know.
- stock_toaster 14y agoWith tcmalloc I get a few messages in the log about a large allocation on startup, but you can probably find it with this. # as root or sudo pmap -x $(pidof mysqld)|grep malloc