Your message dated Thu, 13 Dec 2012 16:07:19 +0400
with message-id <[email protected]>
and subject line Re: Bug#695847: qemu-kvm: nohup kvm -nographic busyloops
polling stdin
has caused the Debian Bug report #695847,
regarding qemu-kvm: nohup kvm -nographic busyloops polling stdin
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
695847: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695847
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-kvm
Version: 1.1.2+dfsg-2
Severity: normal
To repeat:
nohup kvm -nographic & strace -p $!
observe:
read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999991})
read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999997})
read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999997})
read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999998})
This is annoying because an unwary admin could assume that KVM normally
uses 100% cpu. -background does not make sense if one uses a script which
sets up resources (TAP), calls KVM then deallocates those resources when
it completes.
Workaround:
echo 'fail' | kvm .........
-- Package-specific info:
/proc/cpuinfo:
processor : 0
vendor_id : AuthenticAMD
cpu family : 21
model : 16
model name : AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping : 1
microcode : 0x600110f
cpu MHz : 1400.000
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 16
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb
rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni
pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c
lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch
osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core arat cpb
hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
decodeassists pausefilter pfthreshold
bogomips : 3793.09
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [9] [10]
processor : 1
vendor_id : AuthenticAMD
cpu family : 21
model : 16
model name : AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping : 1
microcode : 0x600110f
cpu MHz : 1400.000
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 17
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb
rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni
pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c
lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch
osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core arat cpb
hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
decodeassists pausefilter pfthreshold
bogomips : 3793.65
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [9] [10]
processor : 2
vendor_id : AuthenticAMD
cpu family : 21
model : 16
model name : AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping : 1
microcode : 0x600110f
cpu MHz : 1400.000
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 2
apicid : 18
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb
rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni
pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c
lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch
osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core arat cpb
hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
decodeassists pausefilter pfthreshold
bogomips : 3793.77
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [9] [10]
processor : 3
vendor_id : AuthenticAMD
cpu family : 21
model : 16
model name : AMD A8-4500M APU with Radeon(tm) HD Graphics
stepping : 1
microcode : 0x600110f
cpu MHz : 1400.000
cache size : 2048 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 2
apicid : 19
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb
rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni
pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c
lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch
osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core arat cpb
hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid
decodeassists pausefilter pfthreshold
bogomips : 3793.76
TLB size : 1536 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [9] [10]
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages qemu-kvm depends on:
ii adduser 3.113+nmu3
ii ipxe-qemu 1.0.0+git-20120202.f6840ba-3
ii libaio1 0.3.109-3
ii libasound2 1.0.25-4
ii libbluetooth3 4.99-2
ii libbrlapi0.5 4.4-5
ii libc6 2.13-37
ii libcurl3-gnutls 7.28.0-2
ii libglib2.0-0 2.33.12+really2.32.4-2
ii libgnutls26 2.12.20-1
ii libiscsi1 1.4.0-3
ii libjpeg8 8d-1
ii libncurses5 5.9-10
ii libpng12-0 1.2.49-3
ii libpulse0 2.0-6
ii libsasl2-2 2.1.25.dfsg1-5
ii libsdl1.2debian 1.2.15-5
ii libspice-server1 0.11.0-1
ii libtinfo5 5.9-10
ii libusbredirparser0 0.4.3-2
ii libuuid1 2.20.1-5.2
ii libvdeplug2 2.3.2-4
ii libx11-6 2:1.5.0-1
ii python 2.7.3-3
ii qemu-keymaps 1.1.2+dfsg-2
ii qemu-utils 1.1.2+dfsg-2
ii seabios 1.7.0-1
ii vgabios 0.7a-3
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages qemu-kvm recommends:
ii bridge-utils 1.5-4
ii iproute 20120521-3
Versions of packages qemu-kvm suggests:
pn debootstrap <none>
pn samba <none>
pn vde2 <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
On 13.12.2012 15:56, Caleb Jamed DeLisle wrote:
> Package: qemu-kvm
> Version: 1.1.2+dfsg-2
> Severity: normal
>
> To repeat:
> nohup kvm -nographic & strace -p $!
>
> observe:
> read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
> select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999991})
> read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
> select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999997})
> read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
> select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999997})
> read(0, 0x7fff472561c7, 1) = -1 EBADF (Bad file descriptor)
> select(10, [0 5 6 9], [], [], {1, 0}) = 1 (in [0], left {0, 999998})
>
>
> This is annoying because an unwary admin could assume that KVM normally
> uses 100% cpu. -background does not make sense if one uses a script which
> sets up resources (TAP), calls KVM then deallocates those resources when
> it completes.
>
> Workaround:
> echo 'fail' | kvm .........
Nope. The workaround is to read the fine manual first, which says:
-nographic
Normally, QEMU uses SDL to display the VGA output. With this
option, you can totally disable graphical output so that QEMU is a
simple command line application. The emulated serial port is
redirected on the console. Therefore, you can still use QEMU to
debug a Linux kernel with a serial console.
The key there is "The emulated serial port is redirected on the console." --
you should explicitly redirect it to somewhere else if you don't want
this behavour.
Closing this bugreport.
Thanks,
/mjt
--- End Message ---