From owner-freebsd-questions@FreeBSD.ORG Thu Mar 15 03:55:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 600B116A406 for ; Thu, 15 Mar 2007 03:55:26 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.249]) by mx1.freebsd.org (Postfix) with ESMTP id 1433013C45B for ; Thu, 15 Mar 2007 03:55:25 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so21938ana for ; Wed, 14 Mar 2007 20:55:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PVV+m8jAeU/O5EMR/VqPQ50f51YZ6uZ1V6ZqioARXIKlr3ok9gxsVAFlS6ki+/4GM14dM18OIe4rtTCZUS0gevmHMl4cZ3Ut0zsazutXv7qXg7IDFfaU6y66wjsv+FqNQWbDVO+9s3m5H7yvhZPSl+uEkwRlhVSM65NlW3GxBQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KyycpK9t18mgbQM7Naif76xksRgCsW0sKqa8m3cPWqD7y0I1pX5YGzd+VbuTBMScaWaxkYce4VAHdT+gKbg/MH5oK9a2i808pDw9hQSeUIJv1mMq0kSOjCJNnK0OJR3cEchsMJDjFrRFKtnUn22a0UfA/Aq+4AZNZYkt9okgADQ= Received: by 10.114.197.1 with SMTP id u1mr53210waf.1173930925007; Wed, 14 Mar 2007 20:55:25 -0700 (PDT) Received: by 10.114.148.18 with HTTP; Wed, 14 Mar 2007 20:55:24 -0700 (PDT) Message-ID: <499c70c0703142055x5a75ca67p2a87db4b773f2878@mail.gmail.com> Date: Thu, 15 Mar 2007 06:55:24 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "FreeBSD Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Memory leak and deep swap upon the restart? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2007 03:55:26 -0000 Hello, I have a webmail server, has apache 2.2.4, mysql 5.0.33, php 5.2.1, clamav, mailscanner ..etc. The weird issue it goes into deep swap when it starts or I restart it. *sigh* This happened since like 6 months I don't know why? it was okay before that. here is the top info last pid: 790; load averages: 0.00, 0.06, 0.05 up 0+00:06:50 03:51:28 69 processes: 1 running, 68 sleeping CPU states: 0.0% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.6% idle Mem: 323M Active, 91M Inact, 56M Wired, 27M Cache, 52M Buf, 988K Free Swap: 2048M Total, 104M Used, 1944M Free, 5% Inuse Here is the ps -aux output mail# ps -aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 98.7 0.0 0 8 ?? RL 3:45AM 5:55.48 [idle] root 0 0.0 0.0 0 0 ?? WLs 3:45AM 0:00.00 [swapper] root 1 0.0 0.0 820 140 ?? ILs 3:45AM 0:00.01 /sbin/init -- root 2 0.0 0.0 0 8 ?? DL 3:45AM 0:00.02 [g_event] root 3 0.0 0.0 0 8 ?? DL 3:45AM 0:00.22 [g_up] root 4 0.0 0.0 0 8 ?? DL 3:45AM 0:00.17 [g_down] root 5 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [thread taskq] root 6 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [kqueue taskq] root 7 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_0] root 8 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_1] root 9 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [acpi_task_2] root 11 0.0 0.0 0 8 ?? WL 3:45AM 0:00.87 [swi4: clock] root 12 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi3: vm] root 13 0.0 0.0 0 8 ?? WL 3:45AM 0:00.13 [swi1: net] root 14 0.0 0.0 0 8 ?? DL 3:45AM 0:00.06 [yarrow] root 15 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi6: Giant taskq] root 16 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi6: task queue] root 17 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [swi5: +] root 18 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq20: acpi0] root 19 0.0 0.0 0 8 ?? WL 3:45AM 0:00.19 [irq22: fxp0] root 20 0.0 0.0 0 8 ?? WL 3:45AM 0:00.11 [irq14: ata0] root 21 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq15: ata1] root 22 0.0 0.0 0 8 ?? WL 3:45AM 0:00.00 [irq1: atkbd0] root 23 0.0 0.0 0 8 ?? DL 3:45AM 0:01.00 [pagedaemon] root 24 0.0 0.0 0 8 ?? DL 3:45AM 0:00.78 [vmdaemon] root 25 0.0 0.0 0 8 ?? DL 3:45AM 0:00.31 [pagezero] root 26 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [bufdaemon] root 27 0.0 0.0 0 8 ?? DL 3:45AM 0:00.00 [vnlru] root 28 0.0 0.0 0 8 ?? DL 3:45AM 0:00.03 [syncer] root 29 0.0 0.0 0 8 ?? DL 3:45AM 0:00.01 [softdepflush] root 30 0.0 0.0 0 8 ?? DL 3:45AM 0:00.02 [schedcpu] root 92 0.0 0.0 1364 0 ?? IWs - 0:00.00 adjkerntz -i root 344 0.0 0.1 1496 440 ?? Ss 3:45AM 0:00.02 /usr/sbin/syslogd -ss -a /var/amavis/var/log vscan 449 0.0 0.7 45840 3520 ?? Ss 3:45AM 0:00.48 amavisd (master) (perl5.8.8) postgrey 468 0.0 0.0 8800 0 ?? IWs - 0:00.00 /usr/local/sbin/postgrey --pidfile=/var/run/postgrey.pid --inet=10 root 474 0.0 10.9 61788 56864 ?? Ss 3:45AM 0:02.95 /usr/local/bin/spamd -c -Q -d -r /var/run/spamd/spamd.pid (perl5.8 vscan 482 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 483 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 484 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 485 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 486 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 487 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 488 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) vscan 489 0.0 0.0 46472 0 ?? IW - 0:00.00 amavisd (virgin child) (perl5.8.8) root 633 0.0 0.1 2444 412 ?? Ss 3:45AM 0:00.01 /usr/local/libexec/postfix/master postfix 644 0.0 0.1 2476 416 ?? S 3:45AM 0:00.01 pickup -l -t fifo -u postfix 645 0.0 0.1 2524 480 ?? I 3:45AM 0:00.01 qmgr -l -t fifo -u root 646 0.0 0.7 61788 3428 ?? I 3:45AM 0:00.01 spamd child (perl5.8.8) root 647 0.0 0.3 61788 1424 ?? I 3:45AM 0:00.00 spamd child (perl5.8.8) postfix 649 0.0 0.2 18916 1180 ?? Is 3:45AM 0:00.01 MailScanner: master waiting for children, sleeping (perl5.8.8) postfix 650 0.0 0.5 79972 2464 ?? S 3:45AM 0:03.10 MailScanner: waiting for messages (perl5.8.8) nobody 658 0.0 0.3 4184 1484 ?? S 3:45AM 0:00.01 /usr/local/sbin/in.imapproxyd root 667 0.0 1.3 49788 6732 ?? Ss 3:45AM 0:00.18 /usr/local/sbin/httpd root 680 0.0 0.2 3328 1020 ?? Ss 3:45AM 0:00.00 /usr/sbin/sshd root 685 0.0 0.1 1500 584 ?? Is 3:45AM 0:00.00 /usr/sbin/cron -s root 703 0.0 0.1 4380 312 ?? Ss 3:45AM 0:00.01 /usr/local/sbin/spamass-milter -p /var/run/spamass.sock -f -b spam www 742 0.0 0.0 49864 0 ?? IW - 0:00.00 /usr/local/sbin/httpd www 763 0.0 1.3 50704 6980 ?? I 3:45AM 0:00.02 /usr/local/sbin/httpd www 765 0.0 2.0 52184 10140 ?? I 3:45AM 0:00.31 /usr/local/sbin/httpd www 766 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.01 /usr/local/sbin/httpd www 767 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.00 /usr/local/sbin/httpd www 768 0.0 0.7 49856 3476 ?? I 3:45AM 0:00.01 /usr/local/sbin/httpd www 769 0.0 2.1 50836 10788 ?? I 3:45AM 0:00.07 /usr/local/sbin/httpd www 770 0.0 2.3 50936 12172 ?? I 3:45AM 0:00.21 /usr/local/sbin/httpd www 771 0.0 0.0 49816 0 ?? IW - 0:00.00 /usr/local/sbin/httpd www 772 0.0 0.0 49816 0 ?? IW - 0:00.00 /usr/local/sbin/httpd www 773 0.0 0.0 49816 0 ?? IW - 0:00.00 /usr/local/sbin/httpd postfix 774 0.0 0.3 79972 1600 ?? S 3:45AM 0:03.05 MailScanner: waiting for messages (perl5.8.8) postfix 775 0.0 0.3 79972 1792 ?? S 3:45AM 0:03.05 MailScanner: waiting for messages (perl5.8.8) postfix 776 0.0 0.3 79972 1376 ?? S 3:45AM 0:03.05 MailScanner: waiting for messages (perl5.8.8) postfix 777 0.0 14.4 79972 74812 ?? S 3:45AM 0:03.15 MailScanner: waiting for messages (perl5.8.8) root 781 0.0 0.5 6076 2492 ?? Ss 3:51AM 0:00.03 sshd: arabian [priv] (sshd) arabian 783 0.0 0.5 6060 2568 ?? S 3:51AM 0:00.01 sshd: arabian@ttyp0 (sshd) root 734 0.0 0.0 1464 0 v0 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv0 root 735 0.0 0.0 1464 0 v1 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv1 root 736 0.0 0.0 1464 0 v2 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv2 root 737 0.0 0.0 1464 0 v3 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv3 root 738 0.0 0.0 1464 0 v4 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv4 root 739 0.0 0.0 1464 0 v5 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv5 root 740 0.0 0.0 1464 0 v6 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv6 root 741 0.0 0.0 1464 0 v7 IWs+ - 0:00.00 /usr/libexec/getty Pc ttyv7 mysql 494 0.0 0.0 1864 0 con- IW - 0:00.00 /bin/sh /usr/local/bin/mysqld_safe --defaults-extra-file=/var/db/m mysql 518 0.0 3.7 51508 19184 con- I 3:45AM 0:00.23 /usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysql/my.c arabian 784 0.0 0.6 4984 2936 p0 Ss 3:51AM 0:00.02 -tcsh (tcsh) root 786 0.0 0.3 1872 1304 p0 S 3:51AM 0:00.01 su root 787 0.0 0.6 4992 2916 p0 S 3:51AM 0:00.02 _su (tcsh) root 791 0.0 0.2 1608 900 p0 R+ 3:51AM 0:00.00 ps -aux Any hints? -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/