LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-19-2008, 10:48 PM   #1
inaki
Member
 
Registered: Mar 2005
Posts: 94

Rep: Reputation: 15
Amavis utilization is high


Hi all,
I've installed postfix + amavis + clamav + spamassassin for our mailrelay which is checking the spam and virus. It is installed in the machine with capability of 1GB memory. The question is why memory used is not decreasing even thought the amavis doesnt have any process. Below is the detail captured from top command.

11:00 AM

Tasks: 107 total, 1 running, 106 sleeping, 0 stopped, 0 zombie
Cpu(s): 11.7%us, 2.6%sy, 0.0%ni, 80.5%id, 5.1%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 1036028k total, 443468k used, 592560k free, 65644k buffers
Swap: 2650684k total, 0k used, 2650684k free, 139404k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5906 amavis 15 0 51960 44m 2480 S 32 4.4 0:00.95 amavisd-new
2610 amavis 15 0 107m 89m 1040 S 14 8.9 0:37.88 clamd
5586 postfix 15 0 5144 2200 1752 S 3 0.2 0:00.30 smtpd
5758 postfix 16 0 4888 1704 1368 S 2 0.2 0:00.08 cleanup



11:10 AM

Tasks: 109 total, 1 running, 108 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.2%sy, 0.0%ni, 98.4%id, 1.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1036028k total, 460220k used, 575808k free, 66176k buffers
Swap: 2650684k total, 0k used, 2650684k free, 138044k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2308 root 15 0 1624 616 512 S 0 0.1 0:03.49 syslogd
5680 postfix 15 0 4884 1700 1368 S 0 0.2 0:00.09 cleanup
1 root 15 0 1948 652 552 S 0 0.1 0:01.48 init

There are 2 TOP command detail captured which is 11:00 AM and 11:10 AM. It shows that memory used is increasing. This memory will be increasing until it reach maximum 1GB and it will start using SWAP.

The problem is once it reach the maximum, the email will be stuck and mail queue will be increase.

Is there any solution to solve this problem.

TQ
 
Old 10-21-2008, 01:57 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 57
What are the sizes of the amavises process over time? Show ps output, not top.
 
Old 10-21-2008, 02:15 AM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
There is no amavis process in the second top you've cited above. Just because your memory usage is increasing doesn't mean it's related to amavisd.

Having most or all of you memory allocated out to processes isn't uncommon, nor is some swap utilisation.
 
Old 10-22-2008, 10:35 AM   #4
inaki
Member
 
Registered: Mar 2005
Posts: 94

Original Poster
Rep: Reputation: 15
My worried is i've stopped all application like amavis, postfix, clamd and spamassassin when memory reach maximum. But the problem is memory utilization still not decreasing even thought the application is stopped. I'm not sure whether the memory not decreasing because it reserve for application or it related to LOWMEM setting at kernel.

When i run dmesg i can see that LOWMEM available is 896MB. And if memory utilization is high the LOWFREE at /proc/meminfo is also decreasing. The question is what happen if i add another 3 GB memory. Is it can resolved the issue

Last edited by inaki; 10-22-2008 at 10:38 AM.
 
Old 10-22-2008, 11:52 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 57
There is no evidence that you are running over memory limits. There has been no swap in the data you've shown:

Code:
11:00 AM

Swap: 2650684k total, 0k used, 2650684k free, 139404k cached

11:10 AM

Tasks: 109 total, 1 running, 108 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.1%us, 0.2%sy, 0.0%ni, 98.4%id, 1.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1036028k total, 460220k used, 575808k free, 66176k buffers
Swap: 2650684k total, 0k used, 2650684k free, 138044k cached
Show the output of the commands that make you believe the system has memory problems; highlight those areas for us to see.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Surprisingly high memory utilization cyberblak Linux - General 2 05-02-2006 10:28 PM
high cpu utilization 'top' analysis saarb16 Linux - General 2 03-09-2006 09:58 AM
High CPU utilization on deb 3.1 maybbach Debian 2 12-16-2005 11:54 AM
High memory utilization dav7500 Linux - General 7 03-05-2004 05:07 PM
cpu utilization in windows xp too high... spyghost General 3 10-15-2003 07:23 AM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration