Share » Forums » Developer » FreeBSD Speed Improvement Ideas?

FreeBSD Speed Improvement Ideas?

FreeBSD Speed Improvement Ideas?

Wednesday 25 August 2004 6:59:10 am - 10 replies

Author Message

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu