TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

MySQL-Manage Memory Usage Efficiently

30 pointsby sjtly16about 1 year ago

6 comments

sgarlandabout 1 year ago
Re: online buffer pool resizing, it’s important to note that you can only resize in multiples of innodb_buffer_pool_chunk_size, and the resulting size must be a multiple of innodb_buffer_pool_chunk_size * innodb_buffer_pool_instances.<p>Because of this and other complications &#x2F; desired optimizations, I wrote a script [0] to calculate the necessary parameters, given either a desired percentage of system RAM, or an absolute size.<p>[0]: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;stephanGarland&#x2F;cd6a5c667e8406cf9cfb661a12399ddd" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;stephanGarland&#x2F;cd6a5c667e8406cf9cfb6...</a>
评论 #40084110 未加载
nightshift1about 1 year ago
I am not a dba but I have successfully tuned a couple of mysql&#x2F;mariadb servers in the past with the help of Mysqltuner<p><a href="https:&#x2F;&#x2F;github.com&#x2F;major&#x2F;MySQLTuner-perl">https:&#x2F;&#x2F;github.com&#x2F;major&#x2F;MySQLTuner-perl</a>
gmusleraabout 1 year ago
Having a running record on how those buffers and connections are used is always helpful. Percona’s PMM looks great in that sense. But in general tracking those metrics (and more) in your time series based monitoring, whatever solution it is has been pretty useful to me.
makmanalpabout 1 year ago
SUM_TIMER_WAIT from performance_schema.events_stages_summary_global_by_event_name does not track memory allocations - it&#x27;s a counter for time spent on that query stage.
bpbp-mangoabout 1 year ago
Does anyone know if MySQL is now in maintenance mode?
评论 #40007719 未加载
spratap0309about 1 year ago
loved the insights on mySql memory management, your practical tips are super helpful and easy to understand. Trying these out. Thanks for sharing!