|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Apcupsd hitting registry constantlyWindows XP Pro SP3
Apcupsd V3.14.3 I was using the Sysinternals "Registry Monitor" and I noticed apcupsd was hitting the registry _a lot_, some output below (which repeats indefinitely). I know I'm behind one version, I've checked the release notes. Is this normal? Thanks. --- 1 0.79728371 apcupsd.exe:1572 CreateKey HKLM\System\CurrentControlSet\Services\Tcpip\Parameters SUCCESS Access: 0x20019 2 0.79737312 apcupsd.exe:1572 OpenKey HKLM\System\CurrentControlSet\Services\DnsCache\Parameters SUCCESS Access: 0x20019 3 0.79745054 apcupsd.exe:1572 OpenKey HKLM\Software\Policies\Microsoft\Windows NT\DnsClient NOT FOUND 4 0.79749101 apcupsd.exe:1572 QueryValue HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Hostname SUCCESS "hostname" 5 0.79751867 apcupsd.exe:1572 QueryValue HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Hostname SUCCESS "hostname" 6 0.79756588 apcupsd.exe:1572 CloseKey HKLM\System\CurrentControlSet\Services\Tcpip\Parameters SUCCESS 7 0.79760027 apcupsd.exe:1572 CloseKey HKLM\System\CurrentControlSet\Services\DnsCache\Parameters SUCCESS 8 0.79797989 apcupsd.exe:1572 CreateKey HKLM\System\CurrentControlSet\Services\Tcpip\Parameters SUCCESS Access: 0x20019 9 0.79805899 apcupsd.exe:1572 OpenKey HKLM\System\CurrentControlSet\Services\DnsCache\Parameters SUCCESS Access: 0x20019 10 0.79811513 apcupsd.exe:1572 OpenKey HKLM\Software\Policies\Microsoft\Windows NT\DnsClient NOT FOUND 11 0.79817158 apcupsd.exe:1572 OpenKey HKLM\Software\Policies\Microsoft\System\DNSClient NOT FOUND 12 0.79820061 apcupsd.exe:1572 QueryValue HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Domain SUCCESS "" 13 0.79822659 apcupsd.exe:1572 QueryValue HKLM\System\CurrentControlSet\Services\Tcpip\Parameters\Domain SUCCESS "" 14 0.79826349 apcupsd.exe:1572 CloseKey HKLM\System\CurrentControlSet\Services\Tcpip\Parameters SUCCESS 15 0.79829729 apcupsd.exe:1572 CloseKey HKLM\System\CurrentControlSet\Services\DnsCache\Parameters SUCCESS ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: Apcupsd hitting registry constantlyOn Sat, Jul 19, 2008 at 3:47 PM, Kris Jordan
<apcupsd.kj@...> wrote: > Windows XP Pro SP3 > Apcupsd V3.14.3 > > I was using the Sysinternals "Registry Monitor" and I noticed apcupsd > was hitting the registry _a lot_, some output below (which repeats > indefinitely). I know I'm behind one version, I've checked the release > notes. > > Is this normal? Apcupsd does not explicitly query any of these registry keys, so it must be a side-effect of some library call. Can you send some details on your configuration, such as DEVICE, UPSTYPE, and whether apctray is monitoring this apcupsd? --Adam ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: Apcupsd hitting registry constantlyAdam Kropelin wrote, On 7/20/2008 6:40 AM:
> On Sat, Jul 19, 2008 at 3:47 PM, Kris Jordan > <apcupsd.kj@...> wrote: >> Windows XP Pro SP3 >> Apcupsd V3.14.3 >> >> I was using the Sysinternals "Registry Monitor" and I noticed apcupsd >> was hitting the registry _a lot_, some output below (which repeats >> indefinitely). I know I'm behind one version, I've checked the release >> notes. >> >> Is this normal? > > Apcupsd does not explicitly query any of these registry keys, so it > must be a side-effect of some library call. Can you send some details > on your configuration, such as DEVICE, UPSTYPE, and whether apctray is > monitoring this apcupsd? Ah, the tray app maybe. On this particular system: UPSNAME aname UPSTYPE net UPSCABLE ether DEVICE hostname:3551 apctray is monitoring 127.0.0.1:3551 I better check a system with a locally attached UPS... Yes, does it there too. Stopping apctray does stop the registry business. Why does it say the process is apcupsd.exe? I just updated to V3.14.4, no change. Thanks. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
|
|
Re: Apcupsd hitting registry constantlyKris Jordan wrote:
> Adam Kropelin wrote, On 7/20/2008 6:40 AM: >> On Sat, Jul 19, 2008 at 3:47 PM, Kris Jordan >> <apcupsd.kj@...> wrote: >>> Windows XP Pro SP3 >>> Apcupsd V3.14.3 >>> >>> I was using the Sysinternals "Registry Monitor" and I noticed >>> apcupsd was hitting the registry _a lot_, some output below (which >>> repeats indefinitely). I know I'm behind one version, I've checked >>> the release notes. >>> >>> Is this normal? >> >> Apcupsd does not explicitly query any of these registry keys, so it >> must be a side-effect of some library call. Can you send some details >> on your configuration, such as DEVICE, UPSTYPE, and whether apctray >> is monitoring this apcupsd? > > Ah, the tray app maybe. > > On this particular system: > > UPSNAME aname > UPSTYPE net > UPSCABLE ether > DEVICE hostname:3551 > > apctray is monitoring 127.0.0.1:3551 > > I better check a system with a locally attached UPS... > > Yes, does it there too. Stopping apctray does stop the registry > business. Why does it say the process is apcupsd.exe? It is apcupsd.exe. Apctray is polling apcupsd for status once per second (using NIS). Apcupsd accesses the registry (apparently) while responding to each status poll. It turns out that the entire slew of registry accesses you quote is caused by a single innocuous library call: gethostname(). NIS calls gethostname() in order to populate the HOSTNAME field in the status report. Apparently Windows implements gethostname() via a pile of registry accesses. Sad but true. So the registry access pattern you see is normal and expected. It would be possible for apcupsd to retrieve the hostname once and cache it for the duration of the run. But since this appears to have low impact (after running for 30 minutes of real time, with an apctray polling it constantly, apcupsd has yet to use an entire second of cpu time) I'm disinclined to make that change. I have other issues I'd rather spend the effort on... --Adam ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Apcupsd-users mailing list Apcupsd-users@... https://lists.sourceforge.net/lists/listinfo/apcupsd-users |
| Free Forum Powered by Nabble | Forum Help |