From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMuQn-0004bA-LV for qemu-devel@nongnu.org; Sun, 15 Feb 2015 03:20:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMuQi-00027g-Hm for qemu-devel@nongnu.org; Sun, 15 Feb 2015 03:19:57 -0500 Received: from vps01.wiesinger.com ([46.36.37.179]:58858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMuQi-0001wi-7B for qemu-devel@nongnu.org; Sun, 15 Feb 2015 03:19:52 -0500 Message-ID: <54E05659.9050701@wiesinger.com> Date: Sun, 15 Feb 2015 09:18:33 +0100 From: Gerhard Wiesinger MIME-Version: 1.0 References: <54AE87C1.2060907@wiesinger.com> <54AEBD43.2060705@redhat.com> <54AEC877.9080600@wiesinger.com> <54AECAF3.3060909@redhat.com> <54AF047D.8010009@wiesinger.com> <54B3B2F5.1090405@wiesinger.com> <54B57C51.7090002@wiesinger.com> <54B584AB.4090303@redhat.com> <54B58AC0.5080805@wiesinger.com> <54B58B18.9060205@redhat.com> <54B595C7.3080101@wiesinger.com> <54B5BF5F.9000805@redhat.com> <54B633CE.3040901@wiesinger.com> In-Reply-To: <54B633CE.3040901@wiesinger.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Fedora FC21 - Bug: 100% CPU and hangs in gettimeofday(&tp, NULL); forever List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laine Stump , Paolo Bonzini , qemu-devel@nongnu.org, Cole Robinson , virt@lists.fedoraproject.org On 14.01.2015 10:15, Gerhard Wiesinger wrote: > On 14.01.2015 01:59, Laine Stump wrote: >> >> Take a look at the following kernel bug. It specifically deals with a >> hang in gettimeofday() in a KVM guest: >> >> https://bugzilla.redhat.com/show_bug.cgi?id=1178975 >> >> There is a link to a patched kernel you can try; it fixed my problems (I >> was repeatedly getting hangs in python-urlgrabber during yum updates on >> F21). >> > > Looks to be fixed, commented in: > https://bugzilla.redhat.com/show_bug.cgi?id=1178975 > Installed kernels. > http://koji.fedoraproject.org/koji/taskinfo?taskID=8575247 > There seems to be another problem. My PostgreSQL server VM still crashes (2 times). 1.) First time crash: no reaction at all in KVM console, no network access 2.) Second time "crash": - KVM console 2 characters could be entered, then console was dead forever - ping works - ssh not - host: 100% cpu on 2 cores strace -y -p on kvm host (loops through this): read(7, 0x7fffb862bf20, 16) = -1 EAGAIN (Resource temporarily unavailable) ioctl(11, KVM_GET_DIRTY_LOG, 0x7fffb862bd30) = 0 ioctl(11, KVM_GET_DIRTY_LOG, 0x7fffb862bd30) = 0 write(6, "\1\0\0\0\0\0\0\0", 8) = 8 ppoll([{fd=98, events=POLLIN|POLLERR|POLLHUP}, {fd=89, events=POLLIN|POLLERR|POLLHUP}, {fd=88, events=POLLIN|POLLERR|POLLHUP}, {fd=87, events=POLLIN|POLLERR|POLLHUP}, {fd=86, events=POLLIN|POLLERR|POLLHUP}, {fd=85, events=POLLIN|POLLERR|POLLHUP}, {fd=84, events=POLLIN|POLLERR|POLLHUP}, {fd=83, events=POLLIN|POLLERR|POLLHUP}, {fd=82, events=POLLIN|POLLERR|POLLHUP}, {fd=81, events=POLLIN|POLLERR|POLLHUP}, {fd=80, events=POLLIN|POLLERR|POLLHUP}, {fd=79, events=POLLIN|POLLERR|POLLHUP}, {fd=78, events=POLLIN|POLLERR|POLLHUP}, {fd=77, events=POLLIN|POLLERR|POLLHUP}, {fd=76, events=POLLIN|POLLERR|POLLHUP}, {fd=75, events=POLLIN|POLLERR|POLLHUP}, {fd=74, events=POLLIN|POLLERR|POLLHUP}, {fd=73, events=POLLIN|POLLERR|POLLHUP}, {fd=72, events=POLLIN|POLLERR|POLLHUP}, {fd=71, events=POLLIN|POLLERR|POLLHUP}, {fd=70, events=POLLIN|POLLERR|POLLHUP}, {fd=69, events=POLLIN|POLLERR|POLLHUP}, {fd=68, events=POLLIN|POLLERR|POLLHUP}, {fd=67, events=POLLIN|POLLERR|POLLHUP}, {fd=66, events=POLLIN|POLLERR|POLLHUP}, {fd=65, events=POLLIN|POLLERR|POLLHUP}, {fd=64, events=POLLIN|POLLERR|POLLHUP}, {fd=63, events=POLLIN|POLLERR|POLLHUP}, {fd=62, events=POLLIN|POLLERR|POLLHUP}, {fd=61, events=POLLIN|POLLERR|POLLHUP}, {fd=60, events=POLLIN|POLLERR|POLLHUP}, {fd=59, events=POLLIN|POLLERR|POLLHUP}, ...], 71, {0, 124112228}, NULL, 8) = 1 ([...], left {0, 124090614}) write(7, "\1\0\0\0\0\0\0\0", 8) = 8 read(6, "\1\0\0\0\0\0\0\0", 512) = 8 write(7, "\1\0\0\0\0\0\0\0", 8) = 8 Kernel (host/guest): 3.18.6-200.fc21.x86_64 #1 SMP qemu-kvm-2.2.0-5.fc21.x86_64 Bug 1178975 - endless loop in clock_gettime() on a kvm-based VM https://bugzilla.redhat.com/show_bug.cgi?id=1178975 is fixed (didn't occour with the test program posted at https://bugzilla.redhat.com/show_bug.cgi?id=1178975#c28 in 30min, happened before reproduceable in 2min, still running) So I guess there is another problem in the kernel with volatile and gcc optimizations (or maybe in qemu-KVM) Any ideas? Any other bug reports like this? Thank you. Ciao, Gerhard -- http://www.wiesinger.com/