Gentoo Archives: gentoo-user

From: waltdnes@××××××××.org
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: [gentoo-user] [SOLVED] Optimum sound settings for QEMU VM?
Date: Sat, 02 Apr 2016 07:39:05
Message-Id: 20160402073855.GA26035@waltdnes.org
In Reply to: [gentoo-user] Optimum sound settings for QEMU VM? by waltdnes@waltdnes.org
1 On Mon, Mar 28, 2016 at 10:37:57PM -0400, waltdnes@××××××××.org wrote
2 > I'm involved in beta testing Gstreamer 1.x support for HTML5 under
3 > Pale Moon (a Firefox fork). So far so good; it works. I use a QEMU VM
4 > for some building and testing. Things work great on a real physical
5 > machine, but audio absolutely sucks in the QEMU VM. I get an annoying
6 > warble-stutter and the playback seems a bit slower than it should be.
7 > The same thing also happens with mplayer playing a .wav file, so it's
8 > definitely not a Pale Moon browser problem.
9 >
10 > The VM gets 3 gigs of RAM (host has 8), 4 gigs of swap space, and 3 of
11 > the host's 4 cores. Resources should not be a problem. Has anybody got
12 > better performance? If so, what are your kernel and sound card settings?
13
14 The problem appears to be the "sdl" flag. It slows down things by
15 adding one more layer of middleware and overhead. I also got rid of the
16 "gtk2" flag, for the same reason. By building QEMU with "-sdl" and
17 "-gtk2", I get playback that is indistinguishable from playback on the
18 host. Here is the build that works properly "emerge -pv qemu"...
19
20 [ebuild R ] app-emulation/qemu-2.5.0-r1::gentoo USE="aio alsa curl
21 fdt gtk jpeg ncurses opengl pin-upstream-blobs png snappy ssh threads
22 usb vhost-net vnc -accessibility -bluetooth -caps -debug -filecaps
23 (-glusterfs) -gnutls -gtk2 -infiniband -iscsi -lzo -nfs -nls -numa
24 -pulseaudio -python -rbd -sasl -sdl -sdl2 -seccomp (-selinux) -smartcard
25 -spice -static -static-softmmu -static-user -systemtap -tci {-test}
26 -usbredir -uuid -vde -virgl -virtfs -vte -xattr -xen -xfs"
27 PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 -aarch64
28 -alpha -arm -cris -lm32 -m68k -microblaze -microblazeel -mips -mips64
29 -mips64el -mipsel -moxie -or32 -ppc -ppc64 -ppcemb -s390x -sh4 -sh4eb
30 -sparc -sparc64 -tricore -unicore32 -xtensa -xtensaeb"
31 QEMU_USER_TARGETS="i386 x86_64 -aarch64 -alpha -arm -armeb -cris -m68k
32 -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32
33 -mipsn32el -or32 -ppc -ppc64 -ppc64abi32 -ppc64le -s390x -sh4 -sh4eb
34 -sparc -sparc32plus -sparc64 -tilegx -unicore32"
35
36
37 --
38 Walter Dnes <waltdnes@××××××××.org>
39 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] [SOLVED] Optimum sound settings for QEMU VM? wabe <wabenbau@×××××.com>