Modify

Opened 18 years ago

Closed 18 years ago

#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 Valik, 18 years ago

Resolution: No Bug
Status: newclosed

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.