Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.8.3
-
None
Description
I don't remember having this issue with 10.5, as although it was using a good amount of swap memory, I never had to do an emergency database restart because of it.
Since a few days ago, I had been receiving alerts about too much swap being used on the server, and it's been getting worse. I had to restart MariaDB yesterday, because it was getting full.
Before the restart, this was the usage:
Resident RAM:
mariadbd – 89387556 (85.25 GB)
Swap:
mariadbd – 26975616 (25.73 GB)
And by the way, my server's sysctl has this config:
vm.swappiness=1
(which means to only use Swap if absolutely necessary; while =0 would disable it)
My innodb_buffer_pool_size is 80G.
Are you aware of any reason so much Swap would be used by MariaDB?
There was plenty of resident free RAM that could be used instead.
I understand that some Swap can be used, but I don't understand why so much Swap, instead of resident RAM.
Since the restart yesterday, it's already using 2GB swap, and increasing.
Thank you.
Cheers!
Yeah, based on this link (from one of my previous replies) - https://access.redhat.com/solutions/6785021
They say that the "right/best" thing to do is to start using "CgroupV2".
Just later, in the second link I had sent, they mention about the new sysctl option.
But yeah, I agree that this is a bug/issue with RedHat, and not MariaDB, so I'm happy with you not having to document anything, as it is an OS issue, and quite specific.
Eventually they should make "CgroupV2" the default thing on new versions of RHEL, so...
Thanks!