Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Memory usage of UMDF2 Serial Driver

remyavu10remyavu10 Member Posts: 58

I have a UMDF2 Serial Driver based communication system and after 24 hours of data communication the system memory increased from 4GB to 7GB.
It don't have any memory leakage in read/write part in driver. For read handler, it just fill IO read request packet with data. In write handler, it get data from IO write packet and write to underlying channel.

When looked into the memory usage of host process, it is found that its increased to 1.4/1.7MB and drop to 0.4MB after sometimes.
May i know why this fluctuation in memory of host process?

Does the memory foot print shows the combined memory usage of device drivers and its underlying systems (e.g. reflector etc)?

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,235

    Does the memory foot print shows the combined memory usage of device drivers and its underlying systems (e.g. reflector etc)?

    No.

    May i know why this fluctuation in memory of host process?

    I’m guessing, since I’m not looking at your system, but it SOUNDS like working set trimming.

    Still... you said there’s a 3 GB gain... I’m not sure worrying about a 1 MB growth is looking in the right direction.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • remyavu10remyavu10 Member Posts: 58

    Thanks for the comments. It was really helpful in fixing the issue. Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE