Modify

Opened 16 years ago

Closed 16 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 Changed 16 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.