Pada
Executive Member
Hi guys,
I'm having bit of an issue with my MySQL server being INCREDIBLY slow on my Ubuntu's software RAID 5!
I made the mistake of allocating all my space of my 4x 2TB's to software RAID 5 partitions and the overhead on it is insane!
Like instead of idling, I had a CPU load of 1.2 from like 01:00 - 14:00 when my PC should've idled.
I think it took like 2 minutes to import the Zabbix schema (1.7MB SQL file).
I have 8GB of RAM installed, so for the while being I've modified my startup scripts for MySQL to copy the database onto a RAM drive and then everything is lightening fast. Like this time it imported the Zabbix schema in under 2 seconds, if not less than 1s. This will work since my Zabbix DB is pretty small still, but as the days go by it will start using more and more space.
So I hope to set some kind of cache parameter in MySQL to not try and flush everything straight to the RAID 5 filesystem
If there are no decent way to cache MySQL, would there be a way of increasing the software RAID cache instead to reduce the small read/write cycles?
Lastly, would it be possible to install a hardware RAID card without having to start over with the whole RAID setup? I suppose it won't be possible.
I'm having bit of an issue with my MySQL server being INCREDIBLY slow on my Ubuntu's software RAID 5!
I made the mistake of allocating all my space of my 4x 2TB's to software RAID 5 partitions and the overhead on it is insane!
Like instead of idling, I had a CPU load of 1.2 from like 01:00 - 14:00 when my PC should've idled.
I think it took like 2 minutes to import the Zabbix schema (1.7MB SQL file).
I have 8GB of RAM installed, so for the while being I've modified my startup scripts for MySQL to copy the database onto a RAM drive and then everything is lightening fast. Like this time it imported the Zabbix schema in under 2 seconds, if not less than 1s. This will work since my Zabbix DB is pretty small still, but as the days go by it will start using more and more space.
So I hope to set some kind of cache parameter in MySQL to not try and flush everything straight to the RAID 5 filesystem
If there are no decent way to cache MySQL, would there be a way of increasing the software RAID cache instead to reduce the small read/write cycles?
Lastly, would it be possible to install a hardware RAID card without having to start over with the whole RAID setup? I suppose it won't be possible.
Last edited: