Quote:
Originally Posted by White
If I would make /var/www/tmp folder in RAM, would it be any faster ?
|
Maybe; maybe not. You have not characterized what the script is doing.
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.