Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to work on Linux module programming (Device Drivers). And as a my college project I have to do profiling or benchmarking of a kernel modules based on various parameters. Everywhere I looked, I found info on how to write device drivers, whereas I want info on what parameters affect the performance of any specific driver/module. I also want to know how can I change them to test their various values.

share|improve this question
    
Do you mean driver-specific parameters, or are you thinking more along the lines of "how does migration_cost=1000,2000,3000 affect the tg3 driver"? –  mattdm Mar 18 '11 at 17:24
    
@mattdm yeah, I want to know driver-specific parameters......... –  Sushant Jain Mar 18 '11 at 17:27
add comment

1 Answer

If you are looking for the driver-specific parameters, there's several places you can find information.

  1. Hopefully there is some information in the kernel documentation. This is great for some stuff, sparse for others, and totally not there for most drivers.
  2. Run modinfo (maybe with -F param or -F parm), which hopefully will give helpful one-line descriptions of parameters.
  3. Find the source code for the driver and look for helpful inline documentation.
  4. Search for a possible web site organizing development of that driver (for example alsa project for sound).

And, of course, where things are vague, there's always empirical testing — try it and see.

share|improve this answer
add comment

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.