Between php5 and MySQL they eat memory and swap

Hi!

I have a debian lenny running on a little 512ram 64x personal system, everything was running smoothly until recently. I have a couple of blogs and some friends blogs running, DB are less than 20MB. And the mangos DB about 130MB.

Heres my performance:

Output from TOP command:
SWAP DATA COMMAND
233m 46m php5-cgi
199m 194m mysqld

#vmstat 5 2

procs -----------memory---------- —swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 360908 4408 2220 45256 4 3 31 17 89 182 0 0 96 3
0 0 360908 4416 2228 45204 9 0 9 10 556 824 0 0 99 0

I guess since today is sunday performance its ok, but I can get swap filled up to 70% and i/o waits up to 100% for 15 or more seconds.

Can I get a little help to get the swap use i/o waits down?

thanks!