|
From: | Anthony Liguori |
Subject: | Re: [Qemu-devel] Switch to thread pool from posix-aio |
Date: | Fri, 12 Dec 2008 13:25:37 -0600 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
Blue Swirl wrote:
On 12/12/08, Anthony Liguori <address@hidden> wrote:I've just committed the thread pool patch I posted a few days ago (plus the suggested cleanups). Please test this especially if you're using a very old glibc or a non-Linux Unix. Also pay attention for any performance differences. I don't think any will be noticable unless you're doing very heavy IO and I expect it will only improve things.Compilation is broken on Debian stable, you need librt for timer_create, clock_gettime etc.
Does this patch fix your problem? Regards, Anthony Liguori
diff --git a/configure b/configure index d1f0c04..e997a32 100755 --- a/configure +++ b/configure @@ -972,6 +972,26 @@ if [ -x "`which texi2html 2>/dev/null`" ] && \ build_docs="yes" fi +########################################## +# Do we need librt +cat > $TMPC <<EOF +#include <signal.h> +#include <time.h> +int main(void) { clockid_t id; return clock_gettime(id, NULL); } +EOF + +rt=no +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then + : +elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt 2> /dev/null ; then + rt=yes +fi + +if test "$rt" = "yes" ; then + # Hack, we should have a general purpose LIBS for this sort of thing + AIOLIBS="$AIOLIBS -lrt" +fi + if test "$mingw32" = "yes" ; then if test -z "$prefix" ; then prefix="c:\\\\Program Files\\\\Qemu"
[Prev in Thread] | Current Thread | [Next in Thread] |