LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-21-2016, 04:53 AM   #1
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Rep: Reputation: Disabled
Network Hang Isssue


Hello,

I am working on LInux 3.2.0 kernel.since we had requirement to make kernel real time I am using RT-Preempt Patch.

There is network Hang issue found.

To simulate issue I run iperf -c serverip from my board.

after that no response from iperf.

I close and try to ping hence cannot ping anymore.

need to reboot the board.


Can any body help to analyse the problem ?
 
Old 09-21-2016, 08:31 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Have you used iperf successfully in the past? Perhaps the network connection is bad. Can you do an ifconfig to check if the interface is up and configured when things go bad?
 
Old 09-21-2016, 10:05 PM   #3
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello,

The problem here happens only after applying rt patch to the kernel and recompile.

without RT patch the are no issues.

The Network hangs when there is TX/RX of packets (As iperf does)

ping works as normal for RT Patch kernel.

Once I Iperf there is no response.

I suspect there is some Driver Issue.

Last edited by hardikgohil1988; 09-21-2016 at 11:02 PM.
 
Old 09-22-2016, 09:45 PM   #4
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Original Poster
Rep: Reputation: Disabled
I debugging by printing method and this is observation

for TX the cpsw_tx_handler is not getting

after Queue a buffer for transmission to a network device in dev_queue_xmit cpsw_tx_handler is not getting called.
 
Old 09-24-2016, 11:57 AM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think you're experiencing a receive livelock condition that appears as a network link failure. In RT systems gigabit network cards must use soft irqs to prevent the system from being overrun by irq kernel threads. This form of interrupt handling is not necessarily compatible to all nic drivers. I don't have a step-by-step solution. You'll need to investigate further.
 
Old 09-25-2016, 08:38 PM   #6
hardikgohil1988
Member
 
Registered: Sep 2014
Posts: 63

Original Poster
Rep: Reputation: Disabled
How can I debug the problem.can you help me ?
 
  


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
[SOLVED] GCC compiling isssue hixos Linux From Scratch 9 10-02-2014 04:53 AM
Mysql performance isssue martinlangley Linux - Server 8 09-18-2013 08:57 AM
isssue with pump kuertensun Linux - Networking 1 06-22-2005 04:14 PM
Monitor Configuration Isssue inescapeableus Linux - Hardware 2 11-01-2004 12:02 PM
Network hang MarkO Linux - Networking 8 10-15-2002 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:46 PM.

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