Settings

Theme

MySQL-Manage Memory Usage Efficiently

shurutech.com

30 points by sjtly16 2 years ago · 11 comments

Reader

sgarland 2 years 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.

Because of this and other complications / desired optimizations, I wrote a script [0] to calculate the necessary parameters, given either a desired percentage of system RAM, or an absolute size.

[0]: https://gist.github.com/stephanGarland/cd6a5c667e8406cf9cfb6...

  • sjtly16OP 2 years ago

    Re: Calculates various parameters for the InnoDB buffer pool based on a simple input

    Thanks for mentioning it, I will go through it.

nightshift1 2 years ago

I am not a dba but I have successfully tuned a couple of mysql/mariadb servers in the past with the help of Mysqltuner

https://github.com/major/MySQLTuner-perl

gmuslera 2 years 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.

makmanalp 2 years ago

SUM_TIMER_WAIT from performance_schema.events_stages_summary_global_by_event_name does not track memory allocations - it's a counter for time spent on that query stage.

bpbp-mango 2 years ago

Does anyone know if MySQL is now in maintenance mode?

spratap0309 2 years ago

loved the insights on mySql memory management, your practical tips are super helpful and easy to understand. Trying these out. Thanks for sharing!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection