GithubHelp home page GithubHelp logo

Comments (2)

ufrisk avatar ufrisk commented on August 25, 2024

Yes, there is a housekeeping thread in there that once every 5 seconds will clear the page table cache (TLB) and do a partial refresh of the process list.
Once every 15 seconds a complete refresh will be performed.

https://github.com/ufrisk/pcileech/blob/master/pcileech/vmmproc.c#L1209

You may alter the timings around with this PCILeech_VmmConfigGet / PCILeech_VmmConfigSet in the DLL.

Please note however that the TLB refresh is quite important if your target process allocates new virtual memory. But you can try it around changing the values - but setting them too high may lead to problems.

===

As a general note the library is completely single-threaded at the moment. The internal housekeeping thread and all calls to the PCILeech_Vmm* functions compete for the same lock at the moment.

There is quite some potential for improving upon this; and this is something I plan to look into. But I have more pressing matters to look into so I'm not even sure it will be this year.

===

If you just need to check for a value without interruption I guess you can up time timings on this housekeeping thread and whenever you wish to do something else restore it to let it refresh before you do your other tasks...

from pcileech.

false avatar false commented on August 25, 2024

Hi @ufrisk , thanks for the fast answer.
I may be wrong but I think I can't alter them directly through PCILeech_VmmConfigSet as I don't have access to the constants ; I will have a look to make it possible.

Anyway in a first step I have tested by changing hard coded values to much higher ones, and hourah it was indeed the root of my freezes! :-)

Thanks.

from pcileech.

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.