Modify ↓
#540 closed Bug (No Bug)
ProcessExists() causes a large number of page faults
| Reported by: | MarcoM | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.12.0 | Severity: | None |
| Keywords: | ProcessExists(), Page faults | Cc: |
Description
I know that page faults are not errors per se, but ProcessExists() is really inducing loads of them and it seems to be the only function to do so (~155 page faults per call).
The following code generates 10000+ page faults per second:
While 1
ProcessExists("Anything.exe")
sleep(1)
WEnd
It there some problem with the way the dll is called to get current process information?
Does it translate into a higher than required CPU usage?
Attachments (0)
Change History (1)
comment:1 by , on Aug 26, 2008 at 5:05:55 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

It goes up by approximately 105 per call for me. However, this doesn't appear abnormal. Process Explorer, which I used to watch the page fault count, goes up by over 250 page faults per update interval. It appears that using the Windows API functions we do to enumerate processes just generates a lot of page faults. It's nothing to be concerned about.