Klaudit / mactype

Automatically exported from code.google.com/p/mactype
30 stars 5 forks source link

[Performance] MacType Performs Many Page Faults #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
MacType has had 1 billion page faults over an uptime of a few days.

What version of the product are you using? On what operating system?
Windows 7 x64

Please provide any additional information below.
Please see attached screenshot.

Original issue reported on code.google.com by snir.h...@gmail.com on 14 Jun 2012 at 11:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by snir.h...@gmail.com on 14 Jun 2012 at 1:13

Attachments:

GoogleCodeExporter commented 9 years ago
this bug is caused by Windows API "CreateToolhelpSnapshot", and cannot be fixed 
unless I use alternative ways to enumerate processes.
See http://answers.yahoo.com/question/index?qid=20070325210218AAx1jKo

Original comment by flyingsn...@gmail.com on 16 Jun 2012 at 10:50

palikacska commented 7 years ago

So you have left it unfixed and you're satisfied with making people waste lots of resources.

Page Faults

I think you should seriously re-think process enumeration and you should not poll the entire process list periodically but asynchronously hook to the Windows API and detect when a process is launched. I'm sure it's possible.

This amount of page faults is simply unacceptable.