Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are developing a C++ application on Fedora (of kernel 2.6.9). This application will use the Linux TC utility to limit the bandwidth of specific applications by scanning their ports and setting qDisces. But the problem is how to guarantee our application is running on Linux with QOS feature available? Because the Linux kernel might be a custom one without compiling QOS service, we can't assume Tc and QOS features is always available.

So suppose we have a Linux server whose kernel is built based on version 2.6.9 without compiling QOS. I have below questions:
1) Can we open the QOS service of the kernel by simply setting config files?
2) If the answer to question (1) is no, can we open the QOS service by compile and install only the QOS kernel module(s) other than recompiling the whole kernel?

share|improve this question
    
You shouldn't be doing anything on Fedora 3; it was retired several years ago. –  Michael Hampton Sep 4 '13 at 23:00
    
@MichaelHampton what if we are using another newer system (such as Fedora 15 etc.). Can you give some sugguestion? –  Steve Peng Sep 4 '13 at 23:04

1 Answer 1

can we open the QOS service by compile and install only the QOS kernel module(s) other than recompiling the whole kernel?

You can't assume that just because they have a custom kernel that they also have a compiler, the unpacked kernel source, headers, and .config for the running kernel on the system and in a place that is well known. They could have easily built a kernel package on another machine and installed it.

I suspect you need to assume, that this cannot be automatically done.

Can we open the QOS service of the kernel by simply setting config files?

If the features are built as modules, and are not currently loaded, they should get autoloaded. You shouldn't have to do anything to make this happen.

share|improve this answer
    
sorry, I don't quite understand about the first paragrah. Do you mean ,for a custom linux kernel whose QOS feature is not built, to open the qos feature we can't recompile only the QOS-related kernel module and install it to the custom linux kernel? –  Steve Peng Sep 5 '13 at 0:02
    
What i am trying to say is that it might be theoretically possible, I am not entirely sure. My bet is that you will be wasting your time trying. It will probably faster to just re-compile vs trying to figure out some obscure method of building modules. –  Zoredache Sep 5 '13 at 0:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.