|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
Faster PHP
Hi every one,
I have server working under OpenBSD, but php scripts work sloww. If I would make /var/www/tmp folder in RAM, would it be any faster ? Or is there any way to make it work faster ? |
|
|||
Quote:
I would first suggest becoming familiar with the output of top(1) to ascertain whether the application is unduly chewing up CPU or swap space. top(1) will provide an indication whether adding RAM will help alleviate congestion. In the same vane, study the output of swapctl(8) which will indicate how much the system is swapping out to swap space. Again, an inordinate amount indicates that the system is starved for RAM. Next, study the output of iostat(8) & fstat(1) to determine the script is I/O-bound & whether the files in question reside in /var/www/tmp. Looking at the output of df(1) may provide additional context. Effectively improving performance requires understanding multiple metrics. Without knowing more, moving /var/www/tmp to RAM may indeed make the situation worse. Last edited by ocicat; 17th August 2009 at 10:01 AM. |
|
|||
Quote:
Quote:
CPU is 2.8 Ghz, Intel Pentium 4, usually it's almost not loaded at all. |
|
||||
How to make PHP scripts run faster?
Use C or ASM to do the leg work (like all of it :P) beyond that, it's the same problem as always.... study, tune, tweak, test, ....
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
|||
Quote:
I have worked on my.cnf a bit, so I don't think it's that ... =\ |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: Lightest XFCE - Making XFCE lighter and faster | vermaden | Guides | 27 | 2nd September 2010 12:24 PM |