Giter Site home page Giter Site logo

Comments (5)

swannman avatar swannman commented on June 1, 2024 1

Yes, it's possible for there to be a performance impact when enabling any ETW provider. Windows components typically check whether any trace sessions have subscribed to their ETW provider + enabled the appropriate keywords for tracing; if none are subscribed, they skip emitting the event.

In practice, the overhead of simply emitting an ETW event is imperceptible in both the kernel and user-mode case. However, applications may choose to enable more expensive diagnostics when an ETW provider is enabled. For example, several years ago we observed a severe performance impact when enabling verbose tracing for SQL Server queries. I would be most concerned about this when enabling ETW providers that are not part of the core Windows operating system.

from krabsetw.

swannman avatar swannman commented on June 1, 2024 1

Which of these two will impact the performance of the machine more?

In my experience I have not observed any performance impact from either of your 2 scenarios, and have not observed any difference between them.

from krabsetw.

swannman avatar swannman commented on June 1, 2024

Although some events are emitted in both the kernel debug trace session and a user-mode trace session, they may not have the same information. For example, the process start events emitted by the kernel debug trace session contain the process command line, but the Microsoft-Windows-Kernel-Process provider spreads the process start and command line information across two event types that must be correlated together.

In general, I would recommend using a user-mode trace session unless you need to subscribe to an event that can only be found on the kernel debug trace session.

from krabsetw.

subvert0r avatar subvert0r commented on June 1, 2024

but the Microsoft-Windows-Kernel-Process provider spreads the process start and command line information across two event types that must be correlated together.

One last question to wrap this up:

Any performance difference between the two? Meaning the impact on the system performance. Will any of them noticeably slow down the machine if they are turned on all the time and are consumed by a user-mode process?

from krabsetw.

subvert0r avatar subvert0r commented on June 1, 2024

Yes, it's possible for there to be a performance impact when enabling any ETW provider. Windows components typically check whether any trace sessions have subscribed to their ETW provider + enabled the appropriate keywords for tracing; if none are subscribed, they skip emitting the event.

In practice, the overhead of simply emitting an ETW event is imperceptible in both the kernel and user-mode case. However, applications may choose to enable more expensive diagnostics when an ETW provider is enabled. For example, several years ago we observed a severe performance impact when enabling verbose tracing for SQL Server queries. I would be most concerned about this when enabling ETW providers that are not part of the core Windows operating system.

Correct, But I'm asking about the difference between the performance impact of the kernel_trace providers and their similar provider in the user_trace.

For example in the following two scenarios:

  1. Monitoring process creations using the user_trace Microsoft-Windows-Kernel-Process provider
  2. Monitoring process creation using the kernel_trace process_provider

Which of these two will impact the performance of the machine more? And is it a minor difference or..? I think the answer to this question can help a lot of people understand the difference between kernel_trace and user_trace providers.

Because so far I have gotten all the data I need using user_trace providers, but now I wanted to also get the command line of the processes and found out I need a kernel_trace for that, If I enable kernel_trace and use process_provider, can this impact the performance of some machines in a noticable way? Because if so, then I would stick to just using Microsoft-Windows-Kernel-Process.

from krabsetw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.