The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Performance problem with my script ...suggestions pls vivsiv Shell Programming and Scripting 2 02-22-2008 11:25 PM
Announcing collectl - new performance linux performance monitor MarkSeger News, Links, Events and Announcements 0 10-26-2007 03:14 PM
Performance Problem - High CPU utilization wilder.mellotto AIX 2 05-03-2007 03:32 PM
AIX server performance problem! ctcuser UNIX for Advanced & Expert Users 3 12-02-2004 08:44 PM
Network performance problem between AIX and SUN ethernet gigabit chuckw AIX 1 02-17-2004 11:46 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2002
Registered User
 

Join Date: Mar 2002
Location: China
Posts: 3
Stumble this Post!
performance problem

Hello,

I have a mail server (sendmail) with SUNOS 5.5.1. Just recently it began to respond very slowly.

I used vmstat to check the performance data. Only interupt, system call and CPU context swiching are relatively high. Other statistics are normal, especially CPU utilization are very low.

How I can improve those high statistics if they cause the problems.



Thanks,

Cao Ai
__________________
Cao Ai
Forum Sponsor
  #2 (permalink)  
Old 03-05-2002
thehoghunter
Guest
 

Posts: n/a
Stumble this Post!
Is this server only running Sendmail? If so, then check to see if you have an increased volume of email that it is handling.

If you save the messages files or have stats on how much mail it handles, please check to see how many messages per week. If spammers have started hitting your system, this could be the only problem you are having.

You can check that you are not an open relay for spammers to use (www.abuse.net)

Next, do you have sar or any monitoring running? What is the version of Sendmail? Is it set up to use DNS? Has DNS recently changed (if sendmail is waiting on DNS, it can slow down your system as messages are not flowing as quickly waiting on timeouts from a DNS request).

Post output from % /usr/lib/sendmail -d0.1 -bt < /dev/null
(change company info as appropriate).
  #3 (permalink)  
Old 03-05-2002
Registered User
 

Join Date: Mar 2002
Location: China
Posts: 3
Stumble this Post!
Hi,

Thank you very much.

The server only runs sendmail, and the volume of mail is relatively small. Other situations(spam and DNS) are all seemingly OK.

Here I post information you want and output of vmstat:

> /usr/lib/sendmail -d0.1 -bt </dev/null
Version 8.9.2
Compiled with: MAP_REGEX LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND
NDBM NETINET NETUNIX NEWDB NIS NISPLUS QUEUE SCANF SMTP USERDB
XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = mail
(canonical domain name) $j = mail.cgac.com.cn
(subdomain name) $m = cgac.com.cn
(node name) $k = mail
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
>vmstat 5

procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr f0 s0 -- -- in sy cs us sy id
0 0 0 150264 75248 0 0 0 0 0 0 0 0 10 0 0 271 204 217 0 1 99
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 218 205 215 0 0 99
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 216 203 214 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 215 204 212 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 216 205 214 0 0 99
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 216 203 215 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 218 204 213 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 213 203 214 0 0 99
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 217 204 215 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 217 204 215 0 0 100
0 0 0 150264 75248 0 0 0 0 0 0 0 0 0 0 0 211 203 215 0 0 100
0 0 0 150096 75080 0 438 0 0 0 0 0 0 0 0 0 217 931 249 8 8 84
0 0 0 149424 74400 0 4025 0 0 0 0 0 0 0 0 0 219 4438 450 39 61 0
0 0 0 149016 74384 0 4026 0 0 0 0 0 0 0 0 0 214 4446 454 41 59 0
0 0 0 149992 74960 0 1406 0 0 0 0 0 0 7 0 0 267 1768 323 18 23 59
0 0 0 150712 75456 0 0 0 0 0 0 0 0 0 0 0 215 205 215 0 0 100
0 0 0 150712 75456 0 0 0 0 0 0 0 0 0 0 0 213 203 216 0 0 100
0 0 0 150712 75456 0 0 0 0 0 0 0 0 0 0 0 216 203 215 0 0 100
0 0 0 150008 74488 0 0 0 0 0 0 0 0 0 0 0 220 204 214 0 0 99
0 0 0 149728 74248 0 21 0 0 0 0 0 0 0 0 0 214 257 220 1 0 99
0 0 0 149632 74200 0 13 0 0 0 0 0 0 0 0 0 219 219 217 0 1 99
0 0 0 149280 74040 0 0 0 0 0 0 0 0 0 0 0 215 203 214 0 0 100

I have no sar and other monitoring tools. The server supports telnet and ftp services(which are all got very slow response now). I have minimize the number of process, including stopping Openwindows. Following is the process status:

# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 0 0 0 Mar 05 ? 0:00 sched
root 1 0 0 Mar 05 ? 0:00 /etc/init -
root 2 0 0 Mar 05 ? 0:00 pageout
root 3 0 0 Mar 05 ? 0:27 fsflush
root 458 1 0 Mar 05 ? 0:00 /usr/lib/saf/sac -t 300
root 4575 190 0 14:42:15 ? 0:00 /usr/lib/sendmail -bd -q1h
root 111 1 0 Mar 05 ? 0:00 /usr/sbin/keyserv
root 157 1 0 Mar 05 ? 0:00 /usr/sbin/syslogd
root 125 1 0 Mar 05 ? 0:00 /usr/sbin/in.named
root 45 1 0 Mar 05 ? 0:00 /opt/netra/SUNWi150/sysctld -I -h 600
root 129 1 0 Mar 05 ? 0:02 /usr/sbin/inetd -s
root 117 1 0 Mar 05 ? 0:00 /usr/sbin/kerbd
root 132 1 0 Mar 05 ? 0:00 /usr/lib/nfs/statd
root 134 1 0 Mar 05 ? 0:00 /usr/lib/nfs/lockd
root 153 1 0 Mar 05 ? 0:00 /usr/lib/autofs/automountd
root 205 1 0 Mar 05 ? 0:00 /usr/sbin/vold
root 170 1 0 Mar 05 ? 0:02 /usr/sbin/nscd
root 4576 190 0 14:42:20 ? 0:00 /usr/lib/sendmail -bd -q1h
root 190 1 0 Mar 05 ? 0:01 /usr/lib/sendmail -bd -q1h
root 200 1 0 Mar 05 ? 0:00 /usr/lib/utmpd
root 210 1 0 Mar 05 ? 0:00 /opt/netra/SUNWnetra/bin/httpd -f /etc/opt/netraf
root 275 273 0 Mar 05 ? 0:00 /usr/local/netscape/nse-home/admserv/ns-admin -da
root 459 1 0 Mar 05 console 0:00 /usr/lib/saf/ttymon -g -h -p mail console login:c
root 4569 129 0 14:41:03 ? 0:00 in.telnetd
root 272 1 0 Mar 05 ? 0:00 /usr/local/netscape/nse-home/admserv/ns-admin -da
root 261 1 0 Mar 05 ? 0:00 /opt/SUNWipx/bin/NWnvtd
root 273 1 0 Mar 05 ? 0:00 /usr/local/netscape/nse-home/admserv/ns-admin -da
root 465 458 0 Mar 05 ? 0:00 /usr/lib/saf/ttymon
nobody 780 1 0 16:02:32 ? 0:00 ./ns-httpd -d /usr/local/netscape/nse-home/httpsg
root 4582 4572 0 14:42:39 pts/0 0:00 sh
root 4566 190 0 14:38:24 ? 0:00 /usr/lib/sendmail -bd -q1h
caoai 4572 4569 0 14:41:21 pts/0 0:00 -csh
root 4583 190 0 14:42:47 ? 0:00 /usr/lib/sendmail -bd -q1h
root 4567 4566 8 14:39:58 ? 0:16 /usr/lib/sendmail -bd -q1h
root 4584 4582 1 14:42:59 pts/0 0:00 ps -ef


I wonder if there is any strange processe in the system.

Best Regards


Cao Ai
__________________
Cao Ai
  #4 (permalink)  
Old 03-06-2002
Registered User
 

Join Date: Oct 2001
Location: Bangalore,India
Posts: 5
Stumble this Post!
You can still use the "top" which shows
which process is using the cpu time.

--Jagadeesh
  #5 (permalink)  
Old 03-06-2002
Registered User
 

Join Date: Mar 2002
Location: China
Posts: 3
Stumble this Post!
Thanks.

I don't have 'top' in my system.

Cao Ai
__________________
Cao Ai
  #6 (permalink)  
Old 03-06-2002
Registered User
 

Join Date: Mar 2002
Location: Hamburg
Posts: 10
Stumble this Post!
Try to download it from http://www.sunfreeware.com

EDIT: Fixed Link - LivinFree

Last edited by LivinFree; 03-06-2002 at 05:10 AM.
Google The UNIX and Linux Forums
Closed Thread

Tags
sendmail

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0