How to test the performances of a NDIS protocol driver? RRS feed

  • Question

  • Hello,

    I have written a NDIS protocol driver (similar to the sample NDISPROT) and I need to test its performance under load. How should I proceed?

    There is a single application that communicates with the driver via IOCTLs and also with ReadFile()s and WriteFile()s. Will the CPU performance counters for this app also include the time spent in kernel mode by the driver?
    Some driver routines are also invoked every time a packet is sent or received by the network interface, when the driver is loaded. In this case, where should I look for to find the % of time spent handling these I/O requests?


    Friday, September 24, 2010 2:19 PM





    Are you looking for a way to test performance of your application with VS Profiler? If so, you may want to read this article which shows how to find application bottlenecks with Visual Studio Profiler.


    As it is descripted in this document:


    Processor : % User Time.

    The value of this counter helps to determine the kind of processing that is affecting the system. Of course the resulting value is the total amount of non-idle time that was spent on User mode operations. This generally means application code.


    Processor : %Privilege Time.

    This is the amount of time the processor was busy with Kernel mode operations. If the processor is very busy and this mode is high, it is usually an indication of some type of NT service having difficulty, although user mode programs can make calls to the Kernel mode NT components to occasionally cause this type of performance issue.


    The %Privilege Time counter indicates the time spent on kernel mode operations.

    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by eryang Monday, October 4, 2010 1:43 AM
    Tuesday, September 28, 2010 5:44 AM