I still don't know - is this a bug or just a tweak required.<br />
<br />
I just moved my server to CentOS 7.1 from CentOS 6.6<br />
Provider of dedicated server - Server4you.com<br />
It was 100% pure installation of CentOS 7, not upgrading from CentOS 6.<br />
Both CentOS 6.6 and 7.1 with standard config, no any "server tweaks" used.<br />
Kernel 3.10, Mysql 5.5 (MariaDB 5.5), PHP 5.4 - everything from default official CentOS 7 repo.<br />
Default settings for MySQL and PHP.<br />
<br />
Same server, same environment and same configuration for everything like was on CentOS 6.<br />
<br />
But same PHP script (running from shell) processes same text data and inserts to MySQL about 2.5 times slower.<br />
CentOS 6 was about 1100-1200 inserts/sec<br />
CentOS 7 now about 400-500 inserts/sec.<br />
<br />
Let me underline again - EVERYTHING IS SAME, even text data to process are SAME - only CentOS 7.1 instead of CentOS 6.6<br />
Apache has no a relation to that because I run script from shell like<br />
php -q /var/www/html/data/process.php<br />
<br />
Please, may be there is a tweak or setting on CentOS 7.1 what affects a "speed of parsing data by PHP and inserting to MySQL" ?<br />
<br />
I'm ready to try any ideas and report accordingly.<br />
<br />
Thanks in advance,<br />
Regards<br />
Serge
↧