LinuxQuestions.org
Help answer threads with 0 replies.
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 05-23-2009, 06:09 PM   #1
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Rep: Reputation: 15
Network usage is overloading CPU


Hi,

recently my server become a little slow and lazy, so I started a small investigation what's going on and found out, that there is some problem with network.

All processes which uses network are able to use 99% of CPU time when they got any requests. First time i thought it's only a bad configured Apache but after some research I found even FTP or SSH does it if they have to do something more (for example getting data to another server using rsync).

So far I wasn't able to find a cause of this. No new software installed, only updated every few days. I have another server which have the same config, same software, same hardware and is updated in same days. But this one works without any problem. I think it's probably hardware (LAN) leaving me to it's creator. Is there some way how can I test if it's really LAN or just something bad happened to the system?

Also there is another issue - maximum speed dropped down to 20-30kB/s for both download or upload.

It's Debian Lenny 2.6.22-6 if you need to know

Thanks for any help
 
Old 05-23-2009, 06:17 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You can use tcpdump or wireshark to monitor the network packets. Hardware problems often show up as having many retransmitted packets, packets out of order, and that sort of thing.
 
Old 05-23-2009, 07:47 PM   #3
fuubar2003
Member
 
Registered: May 2004
Location: Orlando, Florida
Distribution: SLES10/11, RH4/5 svrs, Fedora, Debian/Ubuntu/Mint; FreeBSD/OpenBSD
Posts: 63

Rep: Reputation: 26
Checkout, download/install/run iftop:
http://www.webhostingtalk.com/showthread.php?t=232209
 
Old 05-23-2009, 07:59 PM   #4
fuubar2003
Member
 
Registered: May 2004
Location: Orlando, Florida
Distribution: SLES10/11, RH4/5 svrs, Fedora, Debian/Ubuntu/Mint; FreeBSD/OpenBSD
Posts: 63

Rep: Reputation: 26
...and stress junkie is right. If packets are arriving out of order to your server, each out of order packet causes a CPU interrupt. Get enough of those and there's your CPU usage.
 
Old 05-24-2009, 04:12 AM   #5
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks. I'll try and will see
 
Old 05-24-2009, 04:35 AM   #6
danaketh
LQ Newbie
 
Registered: Jul 2007
Location: Czech Republic, Prague
Distribution: Debian (stable)
Posts: 25

Original Poster
Rep: Reputation: 15
Heh, seems solved. I'll run some stress test but it works as it should now.

So, main cause of all this was stopped portmap, which every smart security book said "Turn it off for god sake!!" I just woke up and because of lack coffee in my veins, I just allowed it to start and reloaded server.

Thanks for help again and have a nice day
 
  


Reply

Tags
networking, overloaded


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
heavy cpu and network usage by evolution-data-server xadies Linux - Software 1 06-07-2007 01:14 PM
Need program to show cpu usage, network status and stuff in X....any sugestions? op_stager Linux - Software 3 09-24-2004 07:56 AM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
High CPU Usage with sustained network/hdd activity? cpugeniusmv Linux - Software 6 05-19-2004 09:44 PM
sound server issues, ALSA overloading cpu shinacalypse Linux - Software 1 12-14-2003 01:55 PM


All times are GMT -5. The time now is 11:59 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 Google+: linuxquestions
Open Source Consulting | Domain Registration