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.
-
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– mattdm2011-03-18 17:24:51 +00:00Commented Mar 18, 2011 at 17:24
-
@mattdm yeah, I want to know driver-specific parameters.........Sushant Jain– Sushant Jain2011-03-18 17:27:07 +00:00Commented Mar 18, 2011 at 17:27
Add a comment
|
1 Answer
If you are looking for the driver-specific parameters, there's several places you can find information.
- 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.
- Run
modinfo(maybe with-F paramor-F parm), which hopefully will give helpful one-line descriptions of parameters. - Find the source code for the driver and look for helpful inline documentation.
- 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.