免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: sangyu

[Mail] [急]我的邮件服务器的内存使用量达到了700MB [复制链接]

论坛徽章:
0
发表于 2004-04-11 22:57 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

我最近作了个smtp proxy,就是专门解决查毒部分吃内存的问题的。与阵列相比,实现相对简单一些。要想往大了扩的话,只需要再搬过一台机器就行了,别的不需要。现在正在测效能分析。你感兴趣的话试一下。我搞这个的目的是把grid computing的思想用在mail server上,但作成的这个架构还不成熟

论坛徽章:
0
发表于 2004-04-12 09:09 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

原帖由 "hefish" 发表:
BSD也不是完美的,BSD的内核对多线程支持就不如Linux,文件系统也不如linux。我发现linux上的xfs和reiserfs真是又快又稳。

楼主你的redhat内核多少的? 2.4.23以下的都要打补丁,打了么?

另外可以把你free,t..........


[root@dns2 bin]# uname -a
Linux dns2 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux
[root@dns2 bin]# free
             total       used       free     shared    buffers     cached
Mem:       1030304     943116      87188          0     114608     533436
-/+ buffers/cache:     295072     735232
Swap:      2096252       2968    2093284

[root@dns2 bin]# top

09:03:34  up 4 days, 18:20,  5 users,  load average: 0.01, 0.02, 0.00
85 processes: 83 sleeping, 1 running, 1 zombie, 0 stopped
CPU0 states:   0.0% user   1.3% system    0.0% nice   0.0% iowait  98.2% idle
CPU1 states:   3.1% user   0.0% system    0.0% nice   0.0% iowait  96.4% idle
CPU2 states:   1.0% user   0.1% system    0.0% nice   0.0% iowait  98.4% idle
CPU3 states:   0.0% user   0.2% system    0.0% nice   0.0% iowait  99.3% idle
Mem:  1030304k av,  943328k used,   86976k free,       0k shrd,  114608k buff
                    516632k actv,  138276k in_d,   99708k in_c
Swap: 2096252k av,    2968k used, 2093284k free                  533436k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
2879 root      15   0 22460  13M  1852 S     3.1  1.3   1:38   1 X
3023 root      16   0  5248 5244  4180 S     1.5  0.5   0:13   0 magicdev
3047 root      15   0 10456  10M  7484 S     1.1  1.0   0:28   2 gnome-system-mo
3037 root      15   0 12680  12M  7900 S     0.1  1.2   0:25   3 rhn-applet-gui
3485 root      15   0  1124 1124   852 R     0.1  0.1   0:00   3 top
    1 root      15   0   352  352   296 S     0.0  0.0   0:08   2 init
    2 root      RT   0     0    0     0 SW    0.0  0.0   0:00   0 migration/0
    3 root      RT   0     0    0     0 SW    0.0  0.0   0:00   1 migration/1
    4 root      RT   0     0    0     0 SW    0.0  0.0   0:00   2 migration/2
    5 root      RT   0     0    0     0 SW    0.0  0.0   0:00   3 migration/3
    6 root      15   0     0    0     0 SW    0.0  0.0   0:00   0 keventd
    7 root      34  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd_CPU0
    8 root      34  19     0    0     0 SWN   0.0  0.0   0:00   1 ksoftirqd_CPU1
    9 root      34  19     0    0     0 SWN   0.0  0.0   0:00   2 ksoftirqd_CPU2
   10 root      34  19     0    0     0 SWN   0.0  0.0   0:00   3 ksoftirqd_CPU3
   15 root      25   0     0    0     0 SW    0.0  0.0   0:00   0 bdflush

[root@dns2 bin]# ps aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1372  352 ?        S    Apr07   0:08 init
root         2  0.0  0.0     0    0 ?        SW   Apr07   0:00 [migration/0]
root         3  0.0  0.0     0    0 ?        SW   Apr07   0:00 [migration/1]
root         4  0.0  0.0     0    0 ?        SW   Apr07   0:00 [migration/2]
root         5  0.0  0.0     0    0 ?        SW   Apr07   0:00 [migration/3]
root         6  0.0  0.0     0    0 ?        SW   Apr07   0:00 [keventd]
root         7  0.0  0.0     0    0 ?        SWN  Apr07   0:00 [ksoftirqd_CPU0]
root         8  0.0  0.0     0    0 ?        SWN  Apr07   0:00 [ksoftirqd_CPU1]
root         9  0.0  0.0     0    0 ?        SWN  Apr07   0:00 [ksoftirqd_CPU2]
root        10  0.0  0.0     0    0 ?        SWN  Apr07   0:00 [ksoftirqd_CPU3]
root        15  0.0  0.0     0    0 ?        SW   Apr07   0:00 [bdflush]
root        11  0.0  0.0     0    0 ?        SW   Apr07   0:02 [kswapd]
root        12  0.0  0.0     0    0 ?        SW   Apr07   0:00 [kscand/DMA]
root        13  0.0  0.0     0    0 ?        SW   Apr07   5:41 [kscand/Normal]
root        14  0.0  0.0     0    0 ?        SW   Apr07   4:23 [kscand/HighMem]
root        16  0.0  0.0     0    0 ?        SW   Apr07   0:02 [kupdated]
root        17  0.0  0.0     0    0 ?        SW   Apr07   0:00 [mdrecoveryd]
root        23  0.0  0.0     0    0 ?        SW   Apr07   0:00 [qla2200_dpc0]
root        24  0.0  0.0     0    0 ?        SW   Apr07   0:00 [scsi_eh_0]
root        26  0.0  0.0     0    0 ?        SW   Apr07   0:00 [scsi_eh_1]
root        29  0.0  0.0     0    0 ?        SW   Apr07   0:23 [kjournald]
root        87  0.0  0.0     0    0 ?        SW   Apr07   0:00 [khubd]
root      1488  0.0  0.0  1440  340 ?        S    Apr07   0:06 syslogd -m 0
root      1492  0.0  0.0  1372  156 ?        S    Apr07   0:00 klogd -x
rpc       1502  0.0  0.0  1544  216 ?        S    Apr07   0:00 [portmap]
rpcuser   1521  0.0  0.0  1524    0 ?        SW   Apr07   0:00 [rpc.statd]
named     1618  0.0  0.5 59116 5552 ?        S    Apr07   4:44 [named]
root      1634  0.0  0.0  3504  540 ?        S    Apr07   0:01 /usr/sbin/sshd
root      1648  0.0  0.0  2024  484 ?        S    Apr07   0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
root      1661  0.0  0.0  4156    4 ?        S    Apr07   0:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
root      1686  0.0  0.0  1408   72 ?        S    Apr07   0:09 gpm -t ps/2 -m /dev/psaux
mysql     1699  0.0  0.1 15748 1896 ?        S    Apr07   0:05 [mysqld]
root      1714  0.0  0.0  1416  132 ?        S    Apr07   0:01 crond
qmails    1769  0.0  0.0  1392  148 ?        S    Apr07   0:02 [qmail-send]
root      1771  0.0  0.0  1416   92 ?        S    Apr07   0:00 /usr/local/bin/tcpserver -H -R -l 0 -t 1 -v -p -x /home/vpopmail/etc/
root      1772  0.0  0.0  1360  208 ?        S    Apr07   0:00 /var/qmail/bin/splogger smtpd 3
root      1774  0.0  0.0  1416  108 ?        S    Apr07   0:00 /usr/local/bin/tcpserver -H -R 0 pop3 /var/qmail/bin/qmail-popup gucn
qmaill    1775  0.0  0.0  1360  212 ?        S    Apr07   0:00 [splogger]
root      1776  0.0  0.0  1356  100 ?        S    Apr07   0:00 qmail-lspawn ./Maildir/
qmailr    1777  0.0  0.0  1352   96 ?        S    Apr07   0:00 [qmail-rspawn]
qmailq    1778  0.0  0.0  1348   88 ?        S    Apr07   0:00 [qmail-clean]
xfs       1814  0.0  0.3  5940 4052 ?        S    Apr07   0:00 [xfs]
daemon    1832  0.0  0.0  1408  176 ?        S    Apr07   0:00 [atd]
clamav    1842  0.0  0.0  1932  684 ?        S    Apr07   0:00 [freshclam]
vpopmail  1846  0.0  1.7 23792 18312 ?       S    Apr07   0:01 [spamd]
root      1847  0.0  0.0  2256  980 ?        S    Apr07   0:00 login -- root     
root      1848  0.0  0.0  1348   48 tty2     S    Apr07   0:00 /sbin/mingetty tty2
root      1849  0.0  0.0  1348   48 tty3     S    Apr07   0:00 /sbin/mingetty tty3
root      1850  0.0  0.0  1348   48 tty4     S    Apr07   0:00 /sbin/mingetty tty4
root      1851  0.0  0.0  1348   48 tty5     S    Apr07   0:00 /sbin/mingetty tty5
root      1852  0.0  0.0  1348   48 tty6     S    Apr07   0:00 /sbin/mingetty tty6
root      1854  0.0  0.0  2108  152 ?        S    Apr07   0:00 /bin/sh /command/svscanboot
root      1863  0.0  0.0  1384  104 ?        S    Apr07   0:06 svscan /service
root      1864  0.0  0.0  1340   40 ?        S    Apr07   0:00 readproctitle service errors: .......................................
root     13911  0.0  0.1  8896 2032 ?        S    Apr11   0:22 cupsd
root      2708  0.0  0.1  5596 1432 tty1     S    08:31   0:00 -bash
root      2851  0.0  0.3 15172 3220 ?        S    08:33   0:00 [gdm-binary]
root      2878  0.0  0.3 16196 3832 ?        S    08:33   0:00 [gdm-binary]
root      2879  5.3  1.3 23888 14008 ?       S    08:33   1:39 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
root      2925  0.0  0.8 29820 9272 ?        S    08:33   0:00 /usr/bin/gnome-session
root      2941  0.0  0.0     0    0 ?        Z    08:33   0:00 [Xsession <defunct>;]
root      2979  0.0  0.0  3132  972 ?        S    08:33   0:00 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
root      2988  0.0  0.4 19216 4212 ?        S    08:33   0:00 chinput
root      2991  0.0  0.7 12760 7576 ?        S    08:33   0:00 /usr/libexec/gconfd-2 11
root      2993  0.0  0.2  7456 2444 ?        S    08:33   0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=1
root      2995  0.0  0.5 18716 6056 ?        S    08:33   0:00 gnome-settings-daemon --oaf-activate-iid=OAFIID:GNOME_SettingsDaemon
root      3000  0.0  0.1  2604 1272 ?        S    08:33   0:00 [fam]
root      3015  0.0  0.7 24316 7716 ?        S    08:33   0:00 /usr/bin/metacity --sm-client-id=default1
root      3019  0.0  1.3 32196 13652 ?       S    08:33   0:01 gnome-panel --sm-client-id default2
root      3021  0.0  1.6 61444 16848 ?       S    08:33   0:01 nautilus --no-default-window --sm-client-id default3
root      3023  0.7  0.5 17756 5244 ?        S    08:33   0:13 magicdev --sm-client-id default4
root      3025  0.0  0.6 18172 6296 ?        S    08:33   0:00 eggcups --sm-client-id default6
root      3035  0.0  0.3 13120 3788 ?        S    08:33   0:00 pam-panel-icon --sm-client-id default0
root      3037  1.3  1.2 25860 12680 ?       S    08:33   0:25 /usr/bin/python /usr/bin/rhn-applet-gui --sm-client-id default5
root      3040  0.0  0.0  1408  480 ?        S    08:33   0:00 /sbin/pam_timestamp_check -d root
root      3045  0.0  0.6 18412 6644 ?        S    08:33   0:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME
root      3047  1.6  1.0 29380 10452 ?       S    08:33   0:29 gnome-system-monitor
root      3054  0.0  1.0 31348 11116 ?       S    08:34   0:01 gnome-terminal
root      3055  0.0  0.0  1844  564 ?        S    08:34   0:00 [gnome-pty-helpe]
root      3056  0.0  0.1  5592 1432 pts/0    S    08:34   0:00 bash
root      3421  0.0  0.1  6764 1696 ?        S    09:01   0:00 /usr/sbin/sshd
root      3423  0.0  0.1  5584 1424 pts/1    S    09:01   0:00 -bash
root      3482  0.0  0.0  1368  276 ?        S    09:01   0:00 /var/qmail/bin/qmail-smtpd gucn.org /home/vpopmail/bin/vchkpw /bin/tr
qscand    3483  0.0  0.4  9028 4852 ?        S    09:01   0:00 [perl5.8.0]
root      3487  0.0  0.0  2672  724 pts/1    R    09:04   0:00 ps aux

论坛徽章:
0
发表于 2004-04-12 11:13 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

好多内存都是用在buffer和cache上了嘛。。。
这都是正常的,我的机器,512M 内存的 free也就10多M

  1. hefish@home:~$ free
  2.              total       used       free     shared    buffers     cached
  3. Mem:        514292     497668      16624          0     225196      74920
  4. -/+ buffers/cache:     197552     316740
  5. Swap:      2031816       6536    2025280

复制代码

论坛徽章:
0
发表于 2004-04-12 13:24 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

看看是否是pop3 出错,我曾经试过一次是由于 pop3出错引起的.

论坛徽章:
0
发表于 2004-04-13 08:29 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

[quote]原帖由 "hefish"][/quote 发表:


从我TOP的信息看,我认为hefish说得有理。

另外,好象不是POP的问题,也好象不是HTTPD的问题,因为我将HTTPD关掉后,也就减少不到50MB。

另外,还说到是内核有问题,我的内核是2.4.20-8smp,如果不打补丁会有哪些问题出现?

论坛徽章:
0
发表于 2004-04-13 09:01 |显示全部楼层

[急]我的邮件服务器的内存使用量达到了700MB

不清楚,我是看安全报告上说的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP