Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Can 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.


With 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: