1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optware PHP performance

Discussion in 'Tomato Firmware' started by velis, Apr 25, 2012.

  1. velis

    velis Serious Server Member

    Using Asus RT-N16 (480MHz Broadcom) Shibby 092 K26 USB AIO.
    I managed to get Joomla 2.5.4 installed and working just nicely. Still 90MB RAM left after both daemons.

    However, it takes the router 3 - 5 seconds to serve one page during which time the CPU is 100% utilized, mostly by php-fcgi (and a bit by mysql).
    What's interesting is that no matter the page complexity, it always takes about 3-5 seconds to serve it so I'm beginning to think it's either fastcgi or logging problem. I have no idea how to determine which is which though.

    Does anyone have any experience with this? I think a 500MHz CPU should be more than capable of serving Joomla with millisecond latencies, not multi second ones.
     
  2. shibby20

    shibby20 Network Guru Member

    lighttpd + fcgi or apache2 + php are you using?
     
  3. velis

    velis Serious Server Member

    I couldn't make apache work (it served a page forever with no logs to ever explain what was wrong), so I went for lighttpd + fcgi (fastcgi seemed faster than just cgi) :)

    So lighttpd + fcgi, yes
     
  4. lancethepants

    lancethepants Network Guru Member

    I just setup nginx + php + mysql + wordpress. Yeah, it's kinda pokey. Maybe some optimizing in php.ini or my.cnf would help things? I haven't yet looked into it.
     
  5. lancethepants

    lancethepants Network Guru Member

    So recently I started using entware over optware. It's a newer up-to-date optware.
    http://code.google.com/p/wl500g-repo/

    Anyway, they also have eaccelerator, a php caching accelerator. I loaded it using the scripts found here.
    http://www.prelovac.com/vladimir/wordpress-optimization-guide

    It's has become significantly faster. And I'm also running with ssl over ipv6 (tunneled). I'm sure you would see a drastic increase in speed in your setup. Can't say if optware has it, you could check, or try out entware.

    edit: I think optware does have it. Entware actually takes care of everything for you. You don't have play around with php.ini as previously mentioned.
     
  6. velis

    velis Serious Server Member

    If I understand correctly, you also have a RT-N16? What response times do you see for your wordpress (with or without eaccelerator)?
    I was hoping for something more - naturally I'll use eaccelerator, but I really find it strange that a .5GHz MIPSR2 would have such massive problems parsing a bit of PHP. I really need to figure out how that $_JProfiler works in Joomla so as to get some more info on speed.
    I will try out entware as well, I need to write me a guide for setup anyway - which I didn't do yet because of all the playing aroud trying to make things work, so a clean install is definitely pending for me before I even try to get serious about this :)
     
  7. lancethepants

    lancethepants Network Guru Member

    Yes, I also have an RT-N16. The difference between using eacclerator and not using it is pretty noticeable. I was just playing with it now a bit and can definitely see a difference. When it is running, it's feels almost as fast as other wordpress sites I have commercially hosted. I'm sure there's all sorts of other tweaks that could be done to make the difference imperceptible. There's tons of ram on these devices too, so I would go ahead and allocate a bunch more to it also. Unused memory is really just wasted memory, but the cpu probably would be the biggest clincher in this case. 500MHZ mips != 500MHZ x86, or probably even arm at that.
     
  8. velis

    velis Serious Server Member

    Thanks for the info. I haven't yet had time to play around with the eaccelerator, but I will in the following days, when I get back from vacation.
    And I know about the architectures + these chips using pretty slow RAM, but 500MHz is still 500MHz. That's all my comment was about.

    Edit: This was way easier than I expected. Had it set up in minutes. Yes, it really does show. Dropped request times to 1 - 2 seconds.
    It is still too laggy for my taste. I will look at some other CMSs to see how they fare.
     

Share This Page