Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrfNG-0007ys-Mt for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:31:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrfNB-0007yU-D6 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:31:57 -0400 Received: from [199.232.76.173] (port=46152 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrfNB-0007yN-5m for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:31:53 -0400 Received: from e35.co.us.ibm.com ([32.97.110.153]:42829) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrfNA-0002F0-PW for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:31:52 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e35.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n38LQl2N017477 for ; Wed, 8 Apr 2009 15:26:47 -0600 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n38LVbAX163558 for ; Wed, 8 Apr 2009 15:31:37 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n38LVZkD023317 for ; Wed, 8 Apr 2009 15:31:35 -0600 Subject: Re: [Qemu-devel] Re: [libvirt] Re: [PATCH 2/3] Introduce monitor 'wait' command From: Hollis Blanchard In-Reply-To: <49DD13CA.5050209@codemonkey.ws> References: <1239200204-4934-1-git-send-email-aliguori@us.ibm.com> <1239200204-4934-2-git-send-email-aliguori@us.ibm.com> <20090408143335.GS18076@redhat.com> <49DCBCBE.6010102@redhat.com> <49DCE266.9080809@us.ibm.com> <20090408190611.GC10947@shareable.org> <49DCFC90.8070805@codemonkey.ws> <1239222488.21926.39.camel@slate.austin.ibm.com> <49DD13CA.5050209@codemonkey.ws> Content-Type: text/plain Date: Wed, 08 Apr 2009 16:31:34 -0500 Message-Id: <1239226294.21926.45.camel@slate.austin.ibm.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: libvir-list@redhat.com, Jan Kiszka , qemu-devel@nongnu.org, Gerd Hoffmann On Wed, 2009-04-08 at 16:14 -0500, Anthony Liguori wrote: > Hollis Blanchard wrote: > > On Wed, 2009-04-08 at 14:35 -0500, Anthony Liguori wrote: > > > >> You're basically saying that if something isn't connected, drop them. > >> If it is connected, do a monitor_printf() such that you're never queuing > >> events. Entirely reasonable and I've considered it. > >> > >> However, I do like the idea though of QEMU queuing events for a certain > >> period of time. Not everyone always has something connected to a > >> monitor. I may notice that my NFS server (which runs in a VM) is not > >> responding, VNC to the system, switch to the monitor, and take a look at > >> the event log. If I can get the past 10 minutes of events, I may see > >> something useful like a host IO failure. > >> > > > > "10 minutes" is the red flag for me. Why not 5 minutes? 60 minutes? 24 > > hours? The fact that it's so arbitrary suggests it doesn't really > > belong. If you care, you can attach a logging daemon that keeps the last > > 10 minutes worth of data... > > > > It has to be some finite amount. You're right, it's arbitrary, but so > is every other memory limitation we have in QEMU. You could make it > user configurable but that's just punting the problem. > > You have to do some level of buffering. It's unavoidable. If you > aren't buffering at the event level, you buffer at the socket level, etc. If the socket will buffer it, why do you *also* want to buffer in qemu (adding code and complexity)? -- Hollis Blanchard IBM Linux Technology Center