ubuntu server ethernet wierdness

imported_nightfox

Senior member
Apr 30, 2007
401
0
0
So I have installed Ubuntu 7.10 server edition on my old computer. It is mostly a storage server now running wiith mysql database to index music. Anyway after and hour maybe two the connection to the server seems to slow down a lot. Music stops playing... etc.
Interestingly, if I'm SSHed into it while the connection to it is very slow i can issue commands and do other stuff but its very slow and laggy. If I restart the networking on the server then the connection is back to normal again for 1-2 hours.

what i have tried:
looked at ifconfig while the connection to server is very slow and it did not show any errors.
Ran dmesg and the relevant output is posted below.
looked at some logs and did not find anything related to this.

BTW. computer is connected through Ethernet port to router. the Ethernet card according to lspci is MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter. The module related to this card is fealnx.
Router is AT&T 6800.

All the other computers are connected through wireless to the router and this never happened on any of them. It is very annoying to have to be SSHed into server all the time to restart its network so i can keep listening to music.

At first I thought it might be hardware related but after seeing that the network is up but is incredibly slow leads me to believe that is some sort of software issue. Could be wrong though. Any thoughts?
 

imported_nightfox

Senior member
Apr 30, 2007
401
0
0
This is before ill post after when it does slow down which it has not yet
ps aux

andrew@server:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.5 2952 1852 ? Ss Feb24 0:03 /sbin/init
root 2 0.0 0.0 0 0 ? S< Feb24 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< Feb24 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? SN Feb24 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Feb24 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< Feb24 0:00 [events/0]
root 7 0.0 0.0 0 0 ? S< Feb24 0:00 [khelper]
root 26 0.0 0.0 0 0 ? S< Feb24 0:00 [kblockd/0]
root 27 0.0 0.0 0 0 ? S< Feb24 0:00 [kacpid]
root 28 0.0 0.0 0 0 ? S< Feb24 0:00 [kacpi_notify]
root 86 0.0 0.0 0 0 ? S< Feb24 0:00 [kseriod]
root 103 0.0 0.0 0 0 ? S Feb24 0:00 [pdflush]
root 104 0.0 0.0 0 0 ? S Feb24 0:00 [pdflush]
root 105 0.0 0.0 0 0 ? S< Feb24 0:01 [kswapd0]
root 158 0.0 0.0 0 0 ? S< Feb24 0:00 [aio/0]
root 1897 0.0 0.0 0 0 ? S< Feb24 0:00 [ksuspend_usbd]
root 1898 0.0 0.0 0 0 ? S< Feb24 0:00 [khubd]
root 2020 0.0 0.0 0 0 ? S< Feb24 0:00 [ata/0]
root 2021 0.0 0.0 0 0 ? S< Feb24 0:00 [ata_aux]
root 2277 0.0 0.0 0 0 ? S< Feb24 0:00 [kjournald]
root 2435 0.0 0.2 2316 656 ? S<s Feb24 0:03 /sbin/udevd --d
root 3507 0.0 0.0 0 0 ? S< Feb24 0:00 [kgameportd]
root 3772 0.0 0.0 0 0 ? S< Feb24 0:02 [kjournald]
root 3773 0.0 0.0 0 0 ? S< Feb24 0:00 [kjournald]
root 4075 0.0 0.1 1696 520 tty4 Ss+ Feb24 0:00 /sbin/getty 384
root 4076 0.0 0.1 1696 520 tty5 Ss+ Feb24 0:00 /sbin/getty 384
root 4081 0.0 0.1 1692 516 tty2 Ss+ Feb24 0:00 /sbin/getty 384
root 4084 0.0 0.1 1696 516 tty3 Ss+ Feb24 0:00 /sbin/getty 384
root 4085 0.0 0.1 1696 516 tty1 Ss+ Feb24 0:00 /sbin/getty 384
root 4092 0.0 0.1 1696 520 tty6 Ss+ Feb24 0:00 /sbin/getty 384
syslog 4125 0.0 0.2 1916 732 ? Ss Feb24 0:01 /sbin/syslogd -
root 4144 0.0 0.1 1832 532 ? S Feb24 0:00 /bin/dd bs 1 if
klog 4146 0.0 0.4 2504 1412 ? Ss Feb24 0:00 /sbin/klogd -P
daemon 4368 0.0 0.1 1956 424 ? Ss Feb24 0:00 /usr/sbin/atd
root 4380 0.0 0.2 2332 784 ? Ss Feb24 0:00 /usr/sbin/cron
statd 5041 0.0 0.2 1876 712 ? Ss Feb25 0:00 /sbin/rpc.statd
daemon 5374 0.0 0.1 1812 560 ? Ss Feb25 0:00 /sbin/portmap
root 5517 0.0 0.0 0 0 ? S Feb25 0:00 [lockd]
root 5518 0.0 0.0 0 0 ? S< Feb25 0:00 [rpciod/0]
root 5519 0.0 0.0 0 0 ? S< Feb25 0:00 [nfsd4]
root 5523 0.0 0.0 0 0 ? S Feb25 0:10 [nfsd]
root 5524 0.0 0.0 0 0 ? S Feb25 0:14 [nfsd]
root 5525 0.0 0.0 0 0 ? S Feb25 0:11 [nfsd]
root 5526 0.0 0.0 0 0 ? S Feb25 0:09 [nfsd]
root 5527 0.0 0.0 0 0 ? S Feb25 0:28 [nfsd]
root 5528 0.0 0.0 0 0 ? S Feb25 0:34 [nfsd]
root 5529 0.0 0.0 0 0 ? S Feb25 0:23 [nfsd]
root 5530 0.0 0.0 0 0 ? S Feb25 0:25 [nfsd]
root 5534 0.0 0.3 2644 1216 ? Ss Feb25 0:00 /usr/sbin/rpc.m
root 6361 0.0 0.7 8032 2400 ? Ss 15:40 0:00 sshd: andrew [p
andrew 6363 0.0 0.5 8180 1584 ? S 15:41 0:00 sshd: andrew@pt
andrew 6364 0.0 0.9 5464 2844 pts/0 Ss 15:41 0:00 -bash
dhcp 6739 0.0 0.1 2416 552 ? Ss 18:08 0:00 dhclient3 -e IF
root 6756 0.0 0.3 5284 972 ? Ss 18:08 0:00 /usr/sbin/sshd
root 6796 0.0 0.1 1756 532 pts/0 S 18:10 0:00 /bin/sh /usr/bi
mysql 6833 0.4 6.5 128552 20556 pts/0 Sl 18:10 0:15 /usr/sbin/mysql
root 6834 0.0 0.2 2892 688 pts/0 S 18:10 0:00 logger -p daemo
andrew 6903 0.0 0.3 2624 996 pts/0 R+ 19:08 0:00 ps aux

netstat -a
andrew@server:~$ netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:nfs *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:34250 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:37980 *:* LISTEN
tcp 0 0 *:52637 *:* LISTEN
tcp 0 0 192.168.0.103:nfs 192.168.0.102:946 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33718 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33720 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33719 ESTABLISHED
tcp6 0 0 *:ssh *:* LISTEN
tcp6 0 368 ::ffff:192.168.0.10:ssh ::ffff:192.168.0.:32859 ESTABLISHED
udp 0 0 *:32768 *:*
udp 0 0 *:nfs *:*
udp 0 0 *:32772 *:*
udp 0 0 *:32773 *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:977 *:*
udp 0 0 *:sunrpc *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 9 [ ] DGRAM 13359 /dev/log
unix 2 [ ] DGRAM 7957 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 22846 /var/run/mysqld/mysqld.sock
unix 2 [ ] DGRAM 8110 @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 22844
unix 2 [ ] DGRAM 22658
unix 2 [ ] DGRAM 21892
unix 3 [ ] STREAM CONNECTED 21889
unix 3 [ ] STREAM CONNECTED 21888
unix 2 [ ] DGRAM 17617
unix 2 [ ] DGRAM 17095
unix 2 [ ] DGRAM 16369
unix 2 [ ] DGRAM 13413
 

imported_nightfox

Senior member
Apr 30, 2007
401
0
0
this is the output after the slow down.
ps aux

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.5 2952 1852 ? Ss Feb24 0:03 /sbin/init
root 2 0.0 0.0 0 0 ? S< Feb24 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< Feb24 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? SN Feb24 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< Feb24 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< Feb24 0:00 [events/0]
root 7 0.0 0.0 0 0 ? S< Feb24 0:00 [khelper]
root 26 0.0 0.0 0 0 ? S< Feb24 0:00 [kblockd/0]
root 27 0.0 0.0 0 0 ? S< Feb24 0:00 [kacpid]
root 28 0.0 0.0 0 0 ? S< Feb24 0:00 [kacpi_notify]
root 86 0.0 0.0 0 0 ? S< Feb24 0:00 [kseriod]
root 103 0.0 0.0 0 0 ? S Feb24 0:01 [pdflush]
root 104 0.0 0.0 0 0 ? S Feb24 0:00 [pdflush]
root 105 0.0 0.0 0 0 ? S< Feb24 0:02 [kswapd0]
root 158 0.0 0.0 0 0 ? S< Feb24 0:00 [aio/0]
root 1897 0.0 0.0 0 0 ? S< Feb24 0:00 [ksuspend_usbd]
root 1898 0.0 0.0 0 0 ? S< Feb24 0:00 [khubd]
root 2020 0.0 0.0 0 0 ? S< Feb24 0:00 [ata/0]
root 2021 0.0 0.0 0 0 ? S< Feb24 0:00 [ata_aux]
root 2277 0.0 0.0 0 0 ? S< Feb24 0:00 [kjournald]
root 2435 0.0 0.2 2316 656 ? S<s Feb24 0:03 /sbin/udevd --d
root 3507 0.0 0.0 0 0 ? S< Feb24 0:00 [kgameportd]
root 3772 0.0 0.0 0 0 ? S< Feb24 0:04 [kjournald]
root 3773 0.0 0.0 0 0 ? S< Feb24 0:00 [kjournald]
root 4075 0.0 0.1 1696 520 tty4 Ss+ Feb24 0:00 /sbin/getty 384
root 4076 0.0 0.1 1696 520 tty5 Ss+ Feb24 0:00 /sbin/getty 384
root 4081 0.0 0.1 1692 516 tty2 Ss+ Feb24 0:00 /sbin/getty 384
root 4084 0.0 0.1 1696 516 tty3 Ss+ Feb24 0:00 /sbin/getty 384
root 4085 0.0 0.1 1696 516 tty1 Ss+ Feb24 0:00 /sbin/getty 384
root 4092 0.0 0.1 1696 520 tty6 Ss+ Feb24 0:00 /sbin/getty 384
syslog 4125 0.0 0.2 1916 732 ? Ss Feb24 0:01 /sbin/syslogd -
root 4144 0.0 0.1 1832 532 ? S Feb24 0:00 /bin/dd bs 1 if
klog 4146 0.0 0.4 2504 1412 ? Ss Feb24 0:00 /sbin/klogd -P
daemon 4368 0.0 0.1 1956 424 ? Ss Feb24 0:00 /usr/sbin/atd
root 4380 0.0 0.2 2332 784 ? Ss Feb24 0:00 /usr/sbin/cron
statd 5041 0.0 0.2 1876 712 ? Ss Feb25 0:00 /sbin/rpc.statd
daemon 5374 0.0 0.1 1812 560 ? Ss Feb25 0:00 /sbin/portmap
root 5517 0.0 0.0 0 0 ? S Feb25 0:00 [lockd]
root 5518 0.0 0.0 0 0 ? S< Feb25 0:00 [rpciod/0]
root 5519 0.0 0.0 0 0 ? S< Feb25 0:00 [nfsd4]
root 5523 0.0 0.0 0 0 ? S Feb25 0:18 [nfsd]
root 5524 0.0 0.0 0 0 ? S Feb25 0:27 [nfsd]
root 5525 0.0 0.0 0 0 ? S Feb25 0:14 [nfsd]
root 5526 0.0 0.0 0 0 ? S Feb25 0:26 [nfsd]
root 5527 0.0 0.0 0 0 ? S Feb25 0:34 [nfsd]
root 5528 0.0 0.0 0 0 ? S Feb25 0:49 [nfsd]
root 5529 0.0 0.0 0 0 ? S Feb25 0:34 [nfsd]
root 5530 0.0 0.0 0 0 ? S Feb25 0:45 [nfsd]
root 5534 0.0 0.3 2644 1216 ? Ss Feb25 0:00 /usr/sbin/rpc.m
root 6361 0.0 0.7 8032 2400 ? Ss 15:40 0:00 sshd: andrew [p
andrew 6363 0.0 0.5 8180 1584 ? S 15:41 0:01 sshd: andrew@pt
andrew 6364 0.0 0.9 5464 2844 pts/0 Ss 15:41 0:01 -bash
dhcp 6739 0.0 0.1 2416 608 ? Ss 18:08 0:00 dhclient3 -e IF
root 6756 0.0 0.3 5284 972 ? Ss 18:08 0:00 /usr/sbin/sshd
root 6796 0.0 0.1 1756 532 pts/0 S 18:10 0:00 /bin/sh /usr/bi
mysql 6833 0.1 6.7 128684 20980 pts/0 Sl 18:10 0:35 /usr/sbin/mysql
root 6834 0.0 0.2 2892 688 pts/0 S 18:10 0:00 logger -p daemo
andrew 6932 0.0 0.3 2620 1000 pts/0 R+ 23:08 0:00 ps aux


andrew@server:~$ netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:nfs *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:34250 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:37980 *:* LISTEN
tcp 0 0 *:52637 *:* LISTEN
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33718 ESTABLISHED
tcp 180056 969088 192.168.0.103:nfs 192.168.0.102:945 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:43466 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33720 ESTABLISHED
tcp 0 0 192.168.0.103:mysql 192.168.0.102:33719 ESTABLISHED
tcp6 0 0 *:ssh *:* LISTEN
tcp6 0 0 ::ffff:192.168.0.10:ssh ::ffff:192.168.0.:32859 ESTABLISHED
udp 0 0 *:32768 *:*
udp 0 0 *:nfs *:*
udp 0 0 *:32772 *:*
udp 0 0 *:32773 *:*
udp 0 0 *:bootpc *:*
udp 0 0 *:977 *:*
udp 0 0 *:sunrpc *:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 9 [ ] DGRAM 13359 /dev/log
unix 2 [ ] DGRAM 7957 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 22846 /var/run/mysqld/mysqld.sock
unix 2 [ ] DGRAM 8110 @/org/kernel/udev/udevd
unix 2 [ ] DGRAM 22844
unix 2 [ ] DGRAM 22658
unix 2 [ ] DGRAM 21892
unix 3 [ ] STREAM CONNECTED 21889
unix 3 [ ] STREAM CONNECTED 21888
unix 2 [ ] DGRAM 17617
unix 2 [ ] DGRAM 17095
unix 2 [ ] DGRAM 16369
unix 2 [ ] DGRAM 13413

When I ping the router while it's laggy the times are high (2000-4000ms) and when i restart the network by typing /etc/init.d/netwroking restart it all comes back to normal.