Giter Site home page Giter Site logo

golang-etw's People

Contributors

qjerome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zha0 azyshalom

golang-etw's Issues

Potential performance limitations

Many, many thanks for your work, it is very much appreciated.

I am consuming events from a rather high-throughput provider, Microsoft-Windows-DNSServer, and have noticed some performance issues with that provider and "realtime" mode trace sessions. Once I get above ~8000 ETW events/sec, I begin to see a very significant rise in the number of events lost (viewed through Performance Monitor).

This happens with both golang-etw-created sessions and with manually created sessions, and both with / without a consumer application.

If I manually create a "Buffered" mode trace session, then I can happily max MS Windows DNS Server out at around 30k DNS requests/sec without losing any events.

Additionally, I have noticed that even with a very simple consumer application (taken from your example, and with the JSON marshalling removed), CPU consumption reaches very high levels (~60-70%) at loads of around 20k ETW events/sec. I'm running this on an AWS EC2 t3.large (2 cores, 8GB), for comparison.

Have you noticed any similar performance, and would you give any consideration to implementing a Buffering mode session trace consumer?

can you export ActivityId and relatedActivityID?

ActivityId is in e.EventRec.EventHeader.ActivityId.
relatedActivityID is in e.EventRec.ExtendedData.DataPtr when e.EventRec.ExtendedData.ExtType equal EVENT_HEADER_EXT_TYPE_RELATED_ACTIVITYID (0x0001)

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.