Forums / Developer / FreeBSD Speed Improvement Ideas?
Alex Jones
Wednesday 25 August 2004 6:59:10 am
In a previous thread (http://ez.no/community/forum/general/problems_with_slow_admin_interface), Bård stated:<i>"Since you're running FreeBSD I should also mention that Exponential does perform much better on Linux. This is due to that stat calls--file i/o when e.g. files are included in PHP--which is very slow on FreeBSD. When tuning a high performance server for Exponential we've actually gotten twice the speed from Linux vs FreeBSD in a multi cpu environment. But this slowdown should definetly not be as long as you experience."</i>
This is a bit of a concern for me, as our servers are FreeBSD boxes. So, I was curious if anyone could recommend some ways to specifically improve this speed issue for FreeBSD.
Thanks in advance,
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>
Ole Morten Halvorsen
Wednesday 25 August 2004 7:19:26 am
Alex, you can reduce the number of stat calls by making the path as short as possible.
In other words, have your site on the root /Exponential instead of /some/where/far/far/away/Exponential
Senior Software Engineer - Vision with Technology http://www.visionwt.com http://www.omh.cc http://www.twitter.com/omh eZ Certified Developer http://ez.no/certification/verify/358441 http://ez.no/certification/verify/272578
Wednesday 25 August 2004 9:07:50 am
Thanks for the tip! We already have Exponential as the site root. Or do you mean in the file root?
Wednesday 25 August 2004 9:46:23 am
I meant the file root. A stat call is made for every directory in the path. The fewer directories, the fewer calls. Dont know how much you will gain by this tip though. Please try it and post your results...
Bård Farstad
Wednesday 25 August 2004 10:13:10 am
Alex,
I also know that Yahoo is using a patched version of PHP to speed up stat calls on FreeBSD. Basically they remove many of the "un needed" stat calls in their case. I think Rasmus Lerdorf also has posted this patch on the PHP devel list some time ago.
This patch should improve the performance noticeably on FreeBSD.
--bård
Documentation: http://ez.no/doc
Wednesday 25 August 2004 11:41:40 am
Wow, thank yo uboth! I will work with my Sysadmin to see about making these changes. If we do implement them, I will report back to the community. :)
Derick Rethans
Thursday 26 August 2004 1:08:33 am
I am not so sure that the patch they use at Yahoo will actually run with Exponential. I do need to sqeeze the patch out of him to try once though :)
Thursday 26 August 2004 2:29:39 am
Okay, I got the patch now. But I've no idea if it's going to break Exponential or not. I will test that sometime soonish.
Derick
Thursday 26 August 2004 6:23:23 am
Great Derick! IT will be really interesting to hear the results. :)
Edward Eliot
Tuesday 31 August 2004 2:07:58 am
Re Referenced Thread: Now that I have moved to new hardware the performance is very impressive. Maybe it would be quicker in Linux but I can't say I would notice it.
Tuesday 31 August 2004 2:08:26 am
For reference my site is 4 levels down.