Archive for the ‘db’ Category
FreeBSD MySQL MyISAM multi-CPU concurrency performance
Recently we had a performance issue with multiple plain concurrent requests on a MyISAM table – the process list reported that all selects get stuck for very long time while Sending Data. After many tests we discovered that:
- The problem only occurs when running on multiple CPUs;
- The problem only occurs when running on FreeBSD OS.
After searching over the Internet we found, that this class of problems is being reported since antique versions of FreeBSD and, despite the claims it’s fixed with each version, it persists even in fresh 8.0.
So the decision was to install Linux on all the DB servers.
There is an alternative option though – it’s possible on FreeBSD to install MySQL of any version with WITH_LINUXTHREADS=yes parameter and it will be benefited from the Linux thread model.