From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CYMHl-0008V7-Js for qemu-devel@nongnu.org; Sun, 28 Nov 2004 05:28:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CYMHi-0008Ua-8A for qemu-devel@nongnu.org; Sun, 28 Nov 2004 05:28:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CYMHh-0008UT-QL for qemu-devel@nongnu.org; Sun, 28 Nov 2004 05:28:01 -0500 Received: from [66.54.152.27] (helo=jive.SoftHome.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CYM8A-00017l-2d for qemu-devel@nongnu.org; Sun, 28 Nov 2004 05:18:10 -0500 From: Mulyadi Santosa Subject: Re: [Qemu-devel] qemu becomes unresponsive sometimes Date: Sun, 28 Nov 2004 17:18:04 +0700 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411281718.04223.a_mulyadi@softhome.net> Reply-To: a_mulyadi@softhome.net, 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 Cc: Paul Jakma Hello Paul :-) > In trying to debug this problem and try find vaguely wherein qemu the > problem lies, I've observed that strace'ing the spinning qemu'ing > will cause it to become responsive again. First, let me ask for confirmation, do you run Qemu on Solaris or Linux host? If this is on solaris, maybe my whole assumption would be useless > I've actually taken to running my more important qemu instances with > a backgrounded strace attached, with strace output directed to > /dev/null. Running strace on binary only change one thing: on every syscall, it will be recorded as mentioned by ptrace behaviour. AFAIK, this recording will make the traced binary (in this case Qemu binary) halt on each syscall invocation and signal receive. (man strace and man ptrace). After that, the parent process (the shell which fork Qemu) will continue the execution of Qemu binary by sending signal So, my suspicion, somehow Qemu is put into task_interruptible by host kernel (Linux?) no matter how much is the load. But, it is possible that it is not the whole Qemu that is unresponsive, maybe it is just the Qemu monitor/display that is put into "sleep" What do you think ? Fabrice any comment? Maybe we need to force waking up the whole Qemu process (SDL output, monitor, VNC perhaps) everytime there is a "CPU" activity inside the guest kernel? regards Mulyadi