performance info from registry

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to get system wide CPU utilization so I developed and tested some
functions to do this on XP Pro. When I moved my code to XP Embedded it
failed. The reason is that performance related registry keys do not exist in
XPe, for example HKLM\SYSTEM\CurrentControlSet\­Services\PerfOS\Performance
is not present in my system. Googling revealed that these keys seem to have
a dependency on the existence of a swap file. It would make no sense to have
a swap file in my remotely booted system where everything is already resident
in a RamDisk. Is there a reasonable way to get the needed the needed
registry entries? Note that this issue has come up a number of times over
nearly a 3 year period in this NG but insofar as Googling reveals it hasn't
been answered. Isn't this the kind of issue MS folks should answer if no one
else does even if the answer is "no"?
 
Bronx,

Well.. I am not sure what kind of asnwer you are looking from MS. Keep in mind that if the problem is on XP Pro, it is there on XPe
as well.

So for some performance counters to work you must have pagefile enabled.

You don't gain anything by having pagefile on RamDisk but you can have it supported (set to minimum = 16Mb) to fix the performance
counters.

You can file a bug report to XPe Product Team: http://msdn.microsoft.com/embedded/community/community/feedback/feedxp. Then they may
pay more attention to this issue if number of voices keep growing.

KM
 
KM,
I respect your contributions to this NG but I think it's unfortunate that
you or anyone else is willing to accept the excuse that any baggage that
exists in XP Pro necessarily has to be part of XPe. Embedded systems are
different and to the extent that a feature or implementation detail of XP Pro
makes no sense in the embedded environment it should be changed. In my mind
this is similar to issues such as finding that one's image increases by 30
Mbytes when a telnet or ftp server is added. Is MS serious about providing a
useful embedded OS or are they content in just hacking an existing product
into an imposter of an embedded OS and stonewalling us on all the absurdities
that result?
 
Bronx,

I understand and share you frustration but unfortunately there is not much we can do about this and similar issues since only
binaries are available in XPe.

Although I like XPe I admit that it is not really an *embedded* OS. In my opinion an embedded OS, which must be customized for many
different embedded applications, has to be provided with sources. I should say "some" sources and this is not necessarily the entire
OS sources. WindowCE would be a good example of embedded OS where Microsoft followed such approach.

But XPe is really a good choice when you have a Win32 app that works on XP Pro and you don't want to spend much time porting the app
to another OS. Also, the driver support in XP (XPP/XPe) is amazing.

KM
 
Although it is an unacceptable long term solution, I created a swap file
using TD to set min and max size to 16 and checking that I wanted the swap
file. Nonetheless I still don't see the performance keys in the registry.
Is there some other insane requirement that I don't know about in order to do
performance monitoring?

BB
 
Bronx,

We are bugging MS about simple things that they should fix like:
- Performance Counters Pagefile problem.
- EWF Daylight saving problem.
- Removable to Fixed disk fix.
- etc.

They are working on LHe for the moment and hopefully they will so their job
better there by taking at least suggestions and influencing Longhorn
development, so just keep bugging them.

Regards,
Slobodan
 
Back
Top