Hi,
Has I've said the swapping is not very high. The thing is that I haven't had a machine like this for a long time and think it's funny to try to get the most out of it. I'm learning a lot!
I had already went through the how-to, and also had removed all the unneeded services. Installing lighttpd is a good idea, I'll try that in the future.
Now, my experience.
Even though I've been warned, I bravely ventured into the flash swap drive thing affair! I've managed to get a 1GB flash drive and did the following:
Warning this procedure gives you, at least a forced reboot
- Changed the partition type of /dev/sda1 to 82 using fdisk;
- Made a swap partition on it: mkswap /dev/sda1
- Activated this swap: swapon /dev/sda1
- Deactivated the original swap: swapoff /dev/hda2
So far so good. Next, to have the system to start using the swap I've issued this command from another machine:
Code: Select all
$ time ab -n 20 -c 15 http://www.bombolom.com/weblog
It swapped alright:
Code: Select all
$ vmstat 5
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
14 4 102084 4940 276 4776 335 750 590 760 2805 109 66 34 0 0
15 14 105824 1136 356 4572 1515 814 1808 817 5366 211 60 39 0 1
13 10 105064 5600 428 5584 1181 617 1713 626 4772 246 53 30 0 17
And then the machine stopped responding! No ping nothing! Even ssh was rude to me:
Code: Select all
$ ssh helder@192.168.10.25
You don't exist, go away!
I laughed with that message.
The same test using the normal swap partition went alright.
The post mortem revealed nothing, I went through syslog, kern.log, etc...
/var/log/messages had:
Code: Select all
Jun 19 21:24:02 macavity kernel: Adding 983272k swap on /dev/sda1. Priority:-4 extents:1 across:983272k
Jun 19 21:30:25 macavity shutdown[14619]: shutting down for system reboot
Jun 19 21:31:47 macavity syslogd 1.4.1#17: restart.
At least it made a propper shutdown.
I've been looking hard at the vmstat output and bubba only trashes a bit when doing spam analysis spamd uses ~30% of the memory, but is very reasonable (~8 second per message).
OH well, it was only one idea!
Thanks,
Helder