LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-04-2009, 01:28 AM   #1
foofoo42
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Unhappy network is very slow when loading any tcp module that I compiled


I am out of ideas, spent a full day on this..

Here is situation:
- I have a quad-core amd64 server running centos 2.6.18-53
- When I download a file from it, I get a speed close to 1MB/s.
- then if I load alternate tcp modules (cubic, vegas, etc) I get a result close to that speed.
- I now want to do a few tweaks to a module (say tcp_cubic) so I downloaded the sources from centos for kernel 2.6.18-53.
- I compile the modules from source, using kernel config from my running centos (found under /boot). In theory these should be exactly same as the precompiled ones that come with the kernel.
- Then I try to load the newly compiled tcp_cubic, and the download is super slow! Like around 20KB/S.
- This is the same slowness issue for ANY tcp module I compiled.

I am sure that the correct architecture is selected in config:
Code:
CONFIG_X86_64=y
CONFIG_64BIT=y
CONFIG_X86=y
Also after compiling, the file type is correct 64bits:
Code:
/lib/modules/2.6.18-53.el5/kernel/net/ipv4/tcp_cubic.ko: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped
When running the download, top does not show any kind of suspicious activity, cpu is low, no error in dmesg.
I did a packet capture and it does not show any retransmission or error.

The only thing I can think of is some kind of timer/scheduler issue.
Anyone knows if there can be some incompatibility there between a running kernel and modules?
I really need your help!
FooFoo
 
Old 10-04-2009, 02:16 PM   #2
foofoo42
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Smile problem solved

Turns out - I was using redhat kernel sources incorrectly.
I had downloaded the correct sources but rushed to compile the sources from inside folder, instead of using the rpmbuild command.
The rpmbuild applied a whole bunch of patches to bring sources to the right state.
After compiling the generated sources, tcp modules behave correctly.

I am still surprised that tcp would be so broken (slow) with older sources.
Maybe some kind of incompatibility in interface was introduced..
Foofoo
 
  


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
Loading module compiled on differenet version in 2.6 kernel shrey_j Programming 8 09-04-2006 08:03 AM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
error loading a kernel module, "compiled using gcc2" taozilla Linux - Software 0 11-21-2003 03:23 PM
Slow application loading when connected to network Sornen Linux - Networking 2 07-31-2003 06:15 PM

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

All times are GMT -5. The time now is 03:52 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