Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a normal hardware, I just installed Ubuntu 11.04 anew. But something's completely wrong. PHPunit tests are REALLY slow.

I have no idea what's wrong. With ext3 all was normal.


share|improve this question

closed as not a real question by Tom O'Connor, Andrew M., Ward, Khaled, Wesley Apr 18 '12 at 5:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You re-installed the entire operating system and you think the filesystem choice is the problem? Why do you think this? Could anything else be different? – Ladadadada Apr 16 '12 at 15:00
Have you looked at dmesg or done some disk/smart tests to see if the disk is OK? – Tim Apr 16 '12 at 15:07
By normal do you mean non-virtualized? – HTTP500 Apr 16 '12 at 15:13
What is the load and memory usage of the system? How big is your database? Have you tried running the queries directly against MYSQL? What about using an EXPLAIN on one of the aforementioned queries? Assuming its the file system is jumping the gun in a big way. – Andrew M. Apr 16 '12 at 17:02
How would the hard drive seller know if the disk is OK now? – ceejayoz Apr 16 '12 at 18:27
up vote 7 down vote accepted

It looks like setting barrier=0 as a mount option will help with performance.

See MySQL bug #46959.

Test in a Staging environment first!

Hope this helps.

share|improve this answer
thank you! After restart it's working! – valk Apr 16 '12 at 20:55
just for a record - i've noticed that the bug #46959 is two or three years old, but still reproduces on the new Ubuntu. – valk Apr 16 '12 at 21:02
also, found this. "barriers are disabled by default because they have a serious impact on performance" - in my case they were ENABLED, and serious impact in my case was DISASTROUS :) – valk Apr 16 '12 at 21:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.