From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMQLY-00044n-BQ for qemu-devel@nongnu.org; Mon, 03 Oct 2005 09:27:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMQLV-00044N-LE for qemu-devel@nongnu.org; Mon, 03 Oct 2005 09:27:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMQBW-0000q5-Cw for qemu-devel@nongnu.org; Mon, 03 Oct 2005 09:16:50 -0400 Received: from [64.233.182.204] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMPu0-00058U-5H for qemu-devel@nongnu.org; Mon, 03 Oct 2005 08:58:44 -0400 Received: by nproxy.gmail.com with SMTP id n15so130921nfc for ; Mon, 03 Oct 2005 05:58:41 -0700 (PDT) Message-ID: <46d6db660510030558y3413a698ra74d5a270de58bf2@mail.gmail.com> Date: Mon, 3 Oct 2005 14:58:41 +0200 From: Christian MICHON Subject: Re: [Qemu-devel] [patch] non-blocking disk IO In-Reply-To: <434100A3.5030104@dblab.ece.ntua.gr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4340D479.7030301@stanfordalumni.org> <434100A3.5030104@dblab.ece.ntua.gr> Reply-To: Christian MICHON , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I managed to make it work (qemu+non blocking IO on windows host), with a rough estimation of 10% speed increase at the early stage of windows setup. I expect more once windows installs itself in true multitasking mode. :) What you need to do is: - download pthreads-w32-2-6-0-release.tar.gz and compile it from scratch (make clean GC) - you also need to add the following lines inside block.c (usleep is not present in win32/mingw32) #ifdef WIN32 void usleep(unsigned long usec) { Sleep(usec/1000); } #endif - you need to update the link to include "-lpthreadGC2 -lz", and keep a copy of the pthreadGC2.dll where qemu.exe will be (to pu it just in from of "-lz" is just my personal suggestion) HIH, Christian On 10/3/05, Elefterios Stamatogiannakis wrote: > With which pthreads library have you compiled it under windows? > > I've tried it with the one here: > > ftp://sources.redhat.com/pub/pthreads-win32/ > > but it didn't compile. > > teris.