View Single Post
  #18  
Old 25th August 2009, 03:52
MrM MrM is offline
Member
 
Join Date: Oct 2008
Location: Ljubljana, Slovenia
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bajodel View Post
Just try it .. but '0' is better in my opinion.
OK, I've changed it to 0.

EDIT: Should the swap usage decrease without rebooting the server? Or will it only stop growing (in case this setting helps)?

Quote:
Originally Posted by bajodel View Post
I've re-read the entire post ..your distro is ubuntu (server) and the default is the same ad debian (60) .. which is quite good, but i've also experienced more swap than what i was used to on my (debian) test server with ISPConfig on-board
The default was indeed 60.

I think the problem here isn't so much that swap is being used, the more serious problem is that it keeps growing. This is what I really don't understand.

Quote:
Originally Posted by bajodel View Post
I've also experienced bad performances related to clamav scanning .. in particular if you have gunzipped attachmentes (cpio is the hungry app).
Since this is basically not a mail server (it only has postfix installed for the websites to use it), I have disabled clamav, spamassassin, pop3 and imap. Especially clamav was indeed a huge memory hog, which was the primary reason I disabled it.

Quote:
Originally Posted by bajodel View Post
Try to understand which app is swapped:
# top
then press: SHIFT-O
then press: P <enter>

you can see sorted apps for swap usage .. copy & paste here.
Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  SWAP COMMAND
 5761 www-data  20   0  278m 8516 1488 S  0.0  1.7   0:00.41 270m apache2
 5652 www-data  20   0  279m 8728 1544 S  0.0  1.7   0:00.39 270m apache2
 5731 www-data  20   0  279m 8716 1536 S  0.0  1.7   0:00.37 270m apache2
 4456 www-data  20   0  279m 8732 1544 S  0.0  1.7   0:00.52 270m apache2
 6223 www-data  20   0  278m 8536 1496 S  0.0  1.7   0:00.33 270m apache2
 6347 www-data  20   0  278m 8576 1488 S  0.0  1.7   0:00.36 270m apache2
 6229 www-data  20   0  278m 8332 1488 S  0.3  1.7   0:00.32 270m apache2
 6225 www-data  20   0  278m 8408 1516 S  0.0  1.7   0:00.32 270m apache2
 5780 www-data  20   0  278m 8520 1532 S  0.0  1.7   0:00.40 270m apache2
 1867 www-data  20   0  278m 8496 1548 S  0.0  1.7   0:00.36 270m apache2
16034 root      20   0  278m  14m 8700 S  0.0  3.1   0:15.43 263m apache2
 2447 root      20   0  259m  37m 1140 S  0.0  7.6  35:49.74 221m console-kit-dae
10960 mysql     20   0  237m  45m 3788 S  0.7  9.4  84:01.18 191m mysqld
25706 www-data  20   0  162m 5816  468 S  0.0  1.2   0:00.01 156m apache2
26718 postfix   20   0  106m 5188 3840 S  0.0  1.0   0:00.01 101m smtpd
12292 root      20   0 76688 1012  788 S  0.0  0.2   0:06.99  73m sshd
23820 root      20   0 76688 1012  788 S  0.0  0.2   0:06.95  73m sshd
25557 root      20   0 76688 3444 2696 R  0.0  0.7   0:00.10  71m sshd
 2294 root      20   0 56428  332  328 S  0.0  0.1   0:00.05  54m saslauthd
 2295 root      20   0 56428  332  328 S  0.0  0.1   0:00.04  54m saslauthd
 2299 root      20   0 56428  332  328 S  0.0  0.1   0:00.02  54m saslauthd
 2301 root      20   0 56428  332  328 S  0.0  0.1   0:00.02  54m saslauthd
 2302 root      20   0 56428  332  328 S  0.0  0.1   0:00.03  54m saslauthd
 2905 root      20   0 55100 3336 1016 S  0.0  0.7   0:44.08  50m fail2ban-server
 8520 postfix   20   0 52220 1668 1020 S  0.0  0.3   0:00.03  49m qmgr
 1861 root      20   0 48940  396  284 S  0.0  0.1   0:00.23  47m sshd
 8894 postfix   20   0 41612 2156 1248 S  0.0  0.4   0:00.04  38m tlsmgr
 2759 root      20   0 40552 2156  644 S  0.0  0.4   0:17.27  37m munin-node
 2819 postfix   20   0 39104 2132 1680 S  0.0  0.4   0:00.00  36m pickup
26734 postfix   20   0 39104 2136 1684 S  0.0  0.4   0:00.01  36m showq
 2230 root      20   0 37048  724  472 S  0.0  0.1   0:11.92  35m master
30926 root      20   0 31796  384  316 S  0.0  0.1   0:01.50  30m pure-ftpd-mysql
 2157 nobody    20   0 26192  308  200 S  0.0  0.1   0:00.36  25m mydns
 2158 nobody    20   0 27756 2256  520 S  0.0  0.5   0:19.08  24m mydns
 1842 messageb  20   0 22596  836  420 S  0.0  0.2   0:49.90  21m dbus-daemon
14166 ntp       20   0 21384 1188  776 S  0.0  0.2   0:00.11  19m ntpd
 2403 root      20   0 19972  536  384 S  0.0  0.1   0:11.72  18m cron
12350 root      20   0 19056  304  300 S  0.0  0.1   0:00.04  18m bash
I don't think I quite understand the swap column here. What does 270m mean? 270MB? Surely not?!

Last edited by MrM; 25th August 2009 at 04:16.
Reply With Quote