LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2004, 01:35 PM   #1
Pulka
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Rep: Reputation: 0
eth0 problems


Hi there!

Something strange happened in my computer. Everything was fine until a few days ago. I made an update of aMule, and after i rebooted, the computer started working very slow (and i mean very very slow). Already uninstalled aMule, but it's the same. And it's not just the computer, the web pages take years to open (have a cable connection).
Yesterday i tried to deactivate the eth0 device, and then rebooted, and everything was working at the normal speed. Tried activating again, and it returned to the slow motion speed.
What's happening? I can't work like this. Does anyone has a clue of what's the problem?

I don't know if this helps, but found this error in the security log:

"sshd[2011]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use."


note: i'm using fedora core 2
 
Old 07-20-2004, 10:11 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
just make sure the cables are properly secured, that the ethernet card has not somehow become loose, take it out and put it in firmly.
 
Old 07-20-2004, 10:36 PM   #3
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Hi Mr. Pulka,
You need to see if slow is the net or your computer. The message you got in the log is sshd (the ssh server) being restarted. How often this message appears? If is just one occurrence it may be of no significance, but if it happens each second, probably you are on the track. To see the load on your system, in a console, enter
Code:
top
It will give the process list classified by the need for processing as well as average load in the last 3 seconds.
Code:
 00:10:49  up 20:57,  3 users,  load average: 0.00, 0.00, 0.00
28 processes: 27 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:   0.5% user   0.5% system   0.0% nice   0.0% iowait  98.8% idle
Mem:    62524k av,   32728k used,   29796k free,       0k shrd,    2224k buff
        14432k active,               5108k inactive
Swap:  265032k av,      36k used,  264996k free                   14084k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
12477 root      14   0  1044 1044   816 R     1.1  1.6   0:00   0 top
    1 root       8   0   240  240   208 S     0.0  0.3   0:06   0 init
    2 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 keventd
    3 root      19  19     0    0     0 SWN   0.0  0.0   0:00   0 ksoftirqd_CPU0
    4 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 kswapd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:00   0 bdflush
    6 root       9   0     0    0     0 SW    0.0  0.0   0:01   0 kupdated
    7 root      -1 -20     0    0     0 SW<   0.0  0.0   0:00   0 mdrecoveryd
   93 root       9   0   612  612   532 S     0.0  0.9   0:02   0 syslogd
   96 root       9   0   460  460   404 S     0.0  0.7   0:02   0 klogd
   99 root       9   0   544  544   484 S     0.0  0.8   0:00   0 inetd
In the third line you will see "CPU states %user %system %nice %iowait %idle". Normally, the idle percentage is very high. If there is a task processor intensive it starts to drain the resources and you will see it normally in the user column or the system column. If you see a high user column, you have an application program which got your system. If is the system column which is high, it is the kernel which is consuming the resources. Under this resume, you will see the tasks which are executing, the most famine for computer resources first. This program will refresh your screen every 3 seconds until you enter "q" or "^C". If you find some program always on top of the list, and you don't know why it is so hungry, go behind it, to see what it does. If you donīt discover any news about it, you have to kill it. First try gently
Code:
kill -HUP <PID>
If it refused to go to heaven, be more enfatic
Code:
kill -TERM <PID>
If it refused to go to purgatory, send it to the hell
Code:
kill -9 <PID>
. After this, see the behavior of your system. PS. there are cases in which the program doesn't die even with "kill -9". But in these circumstances, normally it is comatose or, it is a zombie and will not be the eater of your resources.
As you said the problem occurs when your ethernet card is enabled, enter
Code:
ifconfig eth0 down
to disable temporarily it and see if your system behavior changes. To re enable it
Code:
ifconfig eth0 up
.

Have a nice search!
 
Old 07-21-2004, 03:42 AM   #4
Pulka
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Ppuru,

I think any hardware problem is out of question, because i have a windows partition and everything works perfect in there.


Osvaldo marques,

The error apears quite often. See for yourself:

Jul 21 09:02:48 sshd[2010]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.

Jul 21 09:13:49 sshd[1997]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.

Jul 21 09:26:15 sshd[2006]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.


Here is the list of process. If i understood it well, i think nothing is wrong:


top - 09:36:09 up 10 min, 2 users, load average: 0.02, 0.14, 0.10
Tasks: 71 total, 1 running, 70 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.0% us, 0.7% sy, 0.0% ni, 96.3% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 517160k total, 322288k used, 194872k free, 8812k buffers
Swap: 1036152k total, 0k used, 1036152k free, 201936k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2361 root 15 0 101m 16m 89m S 2.0 3.3 0:16.52 X
2602 xxxxx 15 0 26560 11m 20m S 1.3 2.3 0:01.03 gnome-terminal
2441 xxxx 15 0 20944 8196 18m S 0.3 1.6 0:00.48 gnome-settings-
2648 root 16 0 3084 896 1620 R 0.3 0.2 0:00.29 top
1 root 16 0 1688 492 1316 S 0.0 0.1 0:01.02 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 6 -10 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
6 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
30 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kapmd
32 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
33 root 15 0 0 0 0 S 0.0 0.0 0:00.04 pdflush
35 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
34 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kswapd0
148 root 16 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
1577 root 16 0 2736 1016 1648 S 0.0 0.2 0:00.00 dhclient
 
Old 07-21-2004, 04:20 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
can you check what is running on port 22?

#netstat -pal
 
Old 07-21-2004, 01:15 PM   #6
Pulka
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:32769 *:* LISTEN 1671/rpc.statd
tcp 0 0 localhost.localdo:32770 *:* LISTEN 2020/xinetd
tcp 0 0 *:sunrpc *:* LISTEN 1651/portmap
tcp 0 0 localhost.localdoma:ipp *:* LISTEN 1817/cupsd
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0 problems ultimatenoob Linux - Newbie 3 06-20-2005 08:55 AM
eth0 problems alaios Linux - Hardware 1 07-04-2004 05:32 AM
Problems with eth0 RacsoM Fedora - Installation 1 03-01-2004 11:45 PM
Eth0 problems hideandfreak Linux - Hardware 1 04-10-2003 04:36 AM
eth0 problems LinuzRulz Linux - Networking 5 08-05-2002 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration