Hi, I need to take care of 6 FreeBSD servers in my new job. Guy who set things up isn't working any more, so I have to figure things out, since I'm only one with some basic common unix knowledge. (I'm using Linux for few years).
There are 7.1 or 6.2 releases.
I have problem with one of them, it works too slow, I need to wait few seconds to launch mc or login in putty. It's used for routing and samba shares.
So, I'll give some information which I think is relevant.
top
As you can see, almost whole swap used, and lot of sendmails.
uptime
Is this load high for this machine? This particular server is used by few persons only.
Mails, why root has so many mails? What to do with them?
Each mail from cron:
rc.conf
I need your help to figure out what's wrong and how to fix it. I may provide any additional info if needed.
There are 7.1 or 6.2 releases.
I have problem with one of them, it works too slow, I need to wait few seconds to launch mc or login in putty. It's used for routing and samba shares.
So, I'll give some information which I think is relevant.
top
Code:
last pid: 67454; load averages: 1.07, 1.49, 2.62 up 4+16:58:41 10:24:28
286 processes: 3 running, 282 sleeping, 1 stopped
CPU: 0.9% user, 0.0% nice, 42.7% system, 0.0% interrupt, 56.4% idle
Mem: 680M Active, 103M Inact, 159M Wired, 45M Cache, 111M Buf, 4240K Free
Swap: 1473M Total, 1431M Used, 42M Free, 97% Inuse, 48K In, 2048K Out
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
3248 nobody 1 46 0 11856K 1508K RUN 1 31.1H 16.06% smbd
63604 smmsp 1 -4 0 5876K 1072K ufs 0 1:36 0.39% sendmail
30861 smmsp 1 -4 0 18164K 1212K ufs 1 30:18 0.20% sendmail
39815 smmsp 1 -4 0 13044K 1176K CPU0 0 29:25 0.20% sendmail
41324 smmsp 1 -4 0 21236K 1204K ufs 1 13:47 0.20% sendmail
60571 smmsp 1 -4 0 5876K 1116K ufs 1 2:53 0.20% sendmail
67417 smmsp 1 -4 0 5876K 2520K ufs 1 0:00 0.20% sendmail
34375 smmsp 1 -8 0 17140K 1196K biord 0 31:48 0.10% sendmail
54309 smmsp 1 -4 0 6900K 1052K ufs 1 4:02 0.10% sendmail
2794 smmsp 1 -4 0 52980K 1748K ufs 1 81:20 0.00% sendmail
3524 smmsp 1 -4 0 52980K 1792K ufs 1 74:36 0.00% sendmail
6447 smmsp 1 -4 0 38644K 1180K ufs 0 73:32 0.00% sendmail
11320 smmsp 1 -4 0 25332K 1192K ufs 1 57:29 0.00% sendmail
9855 smmsp 1 -4 0 27380K 1176K ufs 1 57:17 0.00% sendmail
13863 smmsp 1 -4 0 23284K 10420K ufs 1 51:24 0.00% sendmail
6095 smmsp 1 -4 0 52980K 1720K ufs 1 48:02 0.00% sendmail
15328 smmsp 1 -4 0 25332K 1196K ufs 1 46:35 0.00% sendmail
9122 smmsp 1 -4 0 34548K 1336K ufs 1 46:20 0.00% sendmail
12410 smmsp 1 -4 0 31476K 1188K ufs 1 44:27 0.00% sendmail
10589 smmsp 1 -4 0 34548K 1372K ufs 1 43:27 0.00% sendmail
14229 smmsp 1 -4 0 31476K 1188K ufs 1 42:43 0.00% sendmail
9474 smmsp 1 -4 0 34548K 1284K ufs 1 41:59 0.00% sendmail
13136 smmsp 1 -4 0 32500K 1172K ufs 1 40:07 0.00% sendmail
12775 smmsp 1 -4 0 34548K 1292K ufs 1 39:03 0.00% sendmail
10954 smmsp 1 -4 0 34548K 1260K ufs 1 38:52 0.00% sendmail
11682 smmsp 1 -4 0 34548K 1292K ufs 1 38:30 0.00% sendmail
17169 smmsp 1 -4 0 33524K 1200K ufs 1 38:21 0.00% sendmail
7563 smmsp 1 -4 0 52980K 1860K ufs 1 37:59 0.00% sendmail
21172 smmsp 1 -4 0 25332K 1172K ufs 1 37:07 0.00% sendmail
15695 smmsp 1 -4 0 33524K 1204K ufs 1 36:30 0.00% sendmail
16798 smmsp 1 -4 0 31476K 1176K ufs 1 36:13 0.00% sendmail
18990 smmsp 1 -4 0 31476K 1180K ufs 1 35:04 0.00% sendmail
35539 smmsp 1 -4 0 13044K 1216K ufs 1 34:24 0.00% sendmail
16430 smmsp 1 -4 0 33524K 1196K ufs 1 34:15 0.00% sendmail
17533 smmsp 1 -4 0 32500K 1204K ufs 1 33:32 0.00% sendmail
31634 smmsp 1 -4 0 18164K 1196K ufs 1 32:47 0.00% sendmail
29330 smmsp 1 -4 0 18164K 1212K ufs 1 32:01 0.00% sendmail
33188 smmsp 1 -4 0 19188K 1196K ufs 1 30:57 0.00% sendmail
16062 smmsp 1 -4 0 34548K 1280K ufs 1 30:03 0.00% sendmail
23736 smmsp 1 -4 0 25332K 1172K ufs 1 29:47 0.00% sendmail
18262 smmsp 1 -4 0 34548K 1264K ufs 1 29:45 0.00% sendmail
20445 smmsp 1 -4 0 33524K 1208K ufs 1 29:36 0.00% sendmail
24470 smmsp 1 -4 0 23284K 10400K ufs 1 29:28 0.00% sendmail
18628 smmsp 1 -4 0 34548K 1308K ufs 1 29:26 0.00% sendmail
26400 smmsp 1 -4 0 20212K 1172K ufs 0 29:01 0.00% sendmail
32021 smmsp 1 -4 0 20212K 1192K ufs 1 28:58 0.00% sendmail
26762 smmsp 1 -4 0 20212K 1168K ufs 1 28:48 0.00% sendmail
32794 smmsp 1 -4 0 21236K 1172K ufs 1 27:45 0.00% sendmail
33974 smmsp 1 -4 0 20212K 1176K ufs 1 27:09 0.00% sendmail
30093 smmsp 1 -4 0 21236K 1220K ufs 1 26:36 0.00% sendmail
20810 smmsp 1 -4 0 33524K 1208K ufs 0 26:35 0.00% sendmail
As you can see, almost whole swap used, and lot of sendmails.
uptime
Code:
10:25AM up 4 days, 17 hrs, 2 users, load averages: 9.70, 4.26, 3.58
Is this load high for this machine? This particular server is used by few persons only.
Mails, why root has so many mails? What to do with them?
Code:
modem_bp# mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/root": 198532 messages 198532 new
>N 1 root@modem_bp Tue Jun 1 15:37 26/1058 "Cron <root@modem_bp> /root/mount_ilc"
N 2 root@modem_bp Tue Jun 1 15:38 25/971 "Cron <root@modem_bp> /root/mount_ilc"
N 3 root@modem_bp Tue Jun 1 15:39 25/971 "Cron <root@modem_bp> /root/mount_ilc"
N 4 root@modem_bp Tue Jun 1 15:40 25/971 "Cron <root@modem_bp> /root/mount_ilc"
N 5 root@modem_bp Tue Jun 1 15:41 25/971 "Cron <root@modem_bp> /root/mount_ilc"
Each mail from cron:
Code:
From root@modem_ns Fri Jun 18 08:26:01 2010
Date: Fri, 18 Jun 2010 08:26:01 GMT
From: root@modem_ns (Cron Daemon)
To: root@modem_ns
Subject: Cron <root@modem_ns> /root/mount_ilc
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
X-Cron-Env: <HOME=/var/log>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
/root/mount_ilc: not found
rc.conf
Code:
modem_bp# cat /etc/rc.confnf
cat: /etc/rc.confnf: No such file or directory
modem_bp# cat /etc/rc.conf
ifconfig_em0="inet 192.168.2.244 netmask 255.255.255.0"
ifconfig_bge0="inet 192.168.3.244 netmask 255.255.255.0"
keymap="pl_PL.ISO8859-2"
defaultrouter="192.168.3.242"
hostname="modem_bp"
gateway_enable="YES"
sshd_enable="YES"
inetd_enable="YES"
usbd_enable="NO"
sendmail_enable="NO"
linux_enable="YES"
moused_type="NO"
moused_enable="NO"
webmin_enable="YES"
nmbd_enable="YES"
smbd_enable="YES"
cupsd_enable="YES"
dhcpd_enable="YES"
tomcat41_enable="YES"
I need your help to figure out what's wrong and how to fix it. I may provide any additional info if needed.