FreeBSD Speed Improvement Ideas?

Author Message

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 eZ publish 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 eZ publish 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 /ezpublish instead of /some/where/far/far/away/ezpublish

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

Alex Jones

Wednesday 25 August 2004 9:07:50 am

Thanks for the tip! We already have eZ publish as the site root. Or do you mean in the file root?

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 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...

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

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

Alex Jones

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. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 eZ publish. I do need to sqeeze the patch out of him to try once though :)

Derick Rethans

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 eZ publish or not. I will test that sometime soonish.

Derick

Alex Jones

Thursday 26 August 2004 6:23:23 am

Great Derick! IT will be really interesting to hear the results. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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.

Edward Eliot

Tuesday 31 August 2004 2:08:26 am

For reference my site is 4 levels down.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.