bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf-2.68: test 199 hangs under Cygwin


From: Eric Blake
Subject: Re: autoconf-2.68: test 199 hangs under Cygwin
Date: Mon, 27 Sep 2010 08:02:32 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4

On 09/27/2010 12:18 AM, Ralf Corsepius wrote:
3. "make check" is dog-slow on my Cygwin/WinXP system (Each iteration
takes many hours). Part of this slowness certainly originates from the
HW (An N270 Atom netbook), but certainly not all of it (Linux is
reasonably fast on the same machine).

That's also a function of the fact that Cygwin is an emulation layer, and that Windows does not provide native fork() semantics. Linux has copy-on-write process forking, allowing thousands of processes per second, while Cygwin has to manually copy the entire address space with coordination between parent and child process, because Windows does not have any efficient forking mechanism, leading to at most a few hundred fork() per second (and that number goes down the more memory that has to be copied). Any shell script that is fork-intensive, such as the autoconf testsuite, benefits tremendously on Cygwin from any optimization that can reduce the number of forks.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]