> [gha...@gmail.com - Tue Feb 09 16:10:14 2010]:
> 
> I'm using "Library: OpenSSL 0.9.8l 5 Nov 2009" on Windows 7.
> 
> RAND_Poll is taking a -very- long time to complete (~80 seconds) on my
> process which only has 80MB (or so) allocated. By sampling the stack,
> I can see RAND_Poll is walking the Win32 Heap. This problem occurs
> with many tiny allocations instead of few large allocations.
> 

I don't have access to Windows 7 at the moment so I can't test this
myself. I've heard that the Windows 7 behaviour is not a bug and the
only reason previous versions weren't so slow is that *they* are buggy.

I'd suggest you try one workaround mentioned above. Include a time limit
on the inner loop. You can do this by duplicating the GetTickCount line.
I.e. in rand_win.c at about line 530 you add the line indicated:

                while (heap_next(&hentry)
-------------->         && (!good || (GetTickCount()-starttime)<MAXDELAY)
                                                        && --entrycnt > 0);

If that makes the delay more tolerable I'll commit it as a temporary fix
for now. Longer term we need to find an alternative technique for
additional entropy gathering.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to