Jump to content

Performance Counters, and what they MIGHT be for


kalavera

Recommended Posts


@All: About my bsod error. I found the problem! Was in my tweaks.reg, i was using a tweak to disable the disk performance monitor (i was only deleting the entries and not recreating then with disabled values) and this produced the bsod.

Thanks to all for the help in searching this error.

Atention: THIS IS NO NLITE FAULT OR BUG!

Sorry for the offtopic but here it is the correct tweak:

;Disable Disk Performance Monitor
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PartMgr]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PartMgr]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000005
"Type"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000005
"Type"=dword:00000001

Link to comment
Share on other sites

kalavera, yappari - good to hear that your bug wasnt acually nLite related! ;)

You're probably aware of this, but there is a useful tool to enable/disable performance counters (I usually disable them all...) from Microsoft here.

When I gradually start experimenting with regtweaks during installation, I'll probably disable all of these from a single .reg file (any tips?!).

Furthermore, I hope nLite will strip out a few more unneccessary services in the future (Windows Time?!); simply because I'm getting bored of manually setting the many 'Automatic' services back to 'Manual' - or perhaps I should look into making a registry file for doing this too? ;)

Take it easy,

James

Link to comment
Share on other sites

@All: About my bsod error. I found the problem! Was in my tweaks.reg, i was using a tweak to disable the disk performance monitor (i was only deleting the entries and not recreating then with disabled values) and this produced the bsod.

Thanks to all for the help in searching this error.

Atention: THIS IS NO NLITE FAULT OR BUG!

Sorry for the offtopic but here it is the correct tweak:

;Disable Disk Performance Monitor
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PartMgr]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\PartMgr]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000005
"Type"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000005
"Type"=dword:00000001

From what I see in my registry, wouldn't this be the same:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]
"EnableCounterForIoctl"=-

The way I see it CurrentControlSet=Control001. Changing CurrentControlSet would be sufficient.

Link to comment
Share on other sites

kalavera -

I believe

"Start"=dword:00000000

Is suppose to be

"Start"=dword:00000004

I think the values used for Services are:

"Start"=dword:00000000 ; Not Available

"Start"=dword:00000001 ; Not Installed

"Start"=dword:00000002 ; Installed \ Automatic

"Start"=dword:00000003 ; Installed \ Manual

"Start"=dword:00000004 ; Installed \ Disabled

So if nLite guts a service from the source you would then use

"Start"=dword:00000000

If nLite prevents a service from being installed or that service normally doesn't get installed

"Start"=dword:00000001

Any ways if the service does actually get installed you should use values 2-4 to control it.

So really your orginal reg tweak should look like so

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PartMgr]
"Start"=dword:00000004

Well its good you found the issue, I'm sure this news will spare nuhi some hair pulling. :)

hehe any ways take it easy and cya later. :)

Link to comment
Share on other sites

I just got this tweaks from someone else, and used it ... the problem was that i didn't copy the all tweak at the first time, and then the bsod occurred.

The way i have it, it works ... maybe with your suggestions it works too, without making so drastic changes to registry ... i will test it.

Link to comment
Share on other sites

I just got this tweaks from someone else, and used it ... the problem was that i didn't copy the all tweak at the first time, and then the bsod occurred.

The way i have it, it works ... maybe with your suggestions it works too, without making so drastic changes to registry ... i will test it.

And how many performance did you gain with that tweak :P

Oh well I also do it just for fun, but if it does not work, do not make a fuss about it. Why spend so much time on a tweak that gives you near to zero gain? Oh, wait don't answer that: that is the real tweaker :thumbup

Link to comment
Share on other sites

You're probably aware of this, but there is a useful tool to enable/disable performance counters (I usually disable them all...) from Microsoft here.

nice. i've used this before but i forgot all about it. thanks.

Edit: and to keep this from being a useless post, here are the keys:

NM. See below.

Those last two are system dependent obviously, but it shows it might be worth it to run the util on your own system since you may have services installed that I don't.

For these to have any affect, WMI (aka Management Instrumentation) can not be removed. It shouldn't be removed anyways if you want a working system. ;)

http://msdn.microsoft.com/library/en-us/wm...ter_classes.asp

Link to comment
Share on other sites

scratch that, i just found a much easier way to do this.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib]

"Disable Performance Counters"=dword:00000001

this will simply turn off all performance counters by disabling the performance database. if you need to go service by service, use the utility posted above.

unless you use the Performance administrative tool, it's perfectly safe to turn this off.

the performance monitor records and tracks statistical data on every service, device, etc on your system. it has stats on anything you could possibly imagine. everything from how many IP Packet Received Discards you're getting to the number of threads in the processor queue to average file write bits/sec over the last 10 days to how many file directory searches are being made by remote users. it's a diagnostic wet-dream, but the average user has zero use for it. i'm not sure exactly the amount of resources you'll save by doing this, but it suffices to say that there are literally thousands of counters, many of which are monitoring multiple instances of an element. :blink: also it might stop some of the warning messages that appear in the Event Log due to services that don't provide perf data.

it can be fun to play with though. and there's a little dialog window that tells you in plain english exactly what each counter does. :lol:

Link to comment
Share on other sites

it can be fun to play with though.  and there's a little dialog window that tells you in plain english exactly what each counter does.  :lol:

Okay, tell me were, I´m lost... :wacko:

Is it going to be less CPU / MEM usages? Can´t be bad to disable it but still I like some facts please (also for the other people who read this (i know I can find it out my self, but still)). Event Log died a lon time a go in my config..

Link to comment
Share on other sites

SO what does disabling all these Performance Counters do? Reduce HD space and increase performance any?

Maybe even decrease performance. Who knows, the counters do not run just for nothing I assume. I am still looking for information on it. Doing something without really knowing if it is a performanceimpovement.

Link to comment
Share on other sites

From what dirtyepic said, it sounds like these things are massive. If each and everyone of these things were found and disabled/removed...I bet XP would be Windows QP (Quick Pace). lol I dunno, though. Is it safe to disable Event Log? I these two things that have been bugging me for awhile.

"Windows saved user THE-REALM\Jeremy registry while an application or service was still using the registry during log off. The memory used by the user's registry has not been freed. The registry will be unloaded when it is no longer in use.

This is often caused by services running as a user account, try configuring the services to run in either the LocalService or NetworkService account."

"Windows cannot unload your classes registry file - it is still in use by other applications or services. The file will be unloaded when it is no longer in use."

A Service I have disabled or set to Automatic that might not be Microsoft?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...