This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
/proc/registry performance problem
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 25 Mar 2003 12:59:57 -0500
- Subject: /proc/registry performance problem
- Organization: Spirent Communications, Inc.
- Reply-to: jbuehler at hekimian dot com
Running "ls /proc/registry/HKEY_LOCAL_MACHINE" takes 5 to 10 seconds
on my NT build machine. Using gdb to step through it, the culprit
is the GetSecurityInfo() call in get_nt_object_attribute().
A google search shows up the following, a bug in GetSecurityInfo() in Windows
that looks like it might be the problem:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/drgui47.asp
It is also interesting that there is a known problem with GetSecurityInfo()
failing in NT SP4 when a registry key is passed to the function:
http://support.microsoft.com/default.aspx?scid=KB;en-us;q217075
Their workaround involves the use of RegGetKeySecurity(), so perhaps this
is what should be used for registry keys instead of GetSecurityInfo(). I'll
see if I can come up with a patch.
--
Joe Buehler
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/