From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5BQr-0008WG-7U for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:55:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5BQl-0008Vk-Tq for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:55:47 -0500 Received: from [199.232.76.173] (port=37558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5BQl-0008Vh-Ne for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:55:43 -0500 Received: from mx20.gnu.org ([199.232.41.8]:26203) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5BQl-0002gp-9r for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:55:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5BQk-00017f-FI for qemu-devel@nongnu.org; Mon, 02 Nov 2009 23:55:42 -0500 Date: Tue, 3 Nov 2009 10:24:58 +0530 From: Amit Shah Subject: Re: [Qemu-devel] [PATCH] char: tcp: increase size of buffer that holds data to be sent out Message-ID: <20091103045458.GA23498@amit-x200.redhat.com> References: <1257179398-22110-1-git-send-email-amit.shah@redhat.com> <4AEF0E32.1080309@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AEF0E32.1080309@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org On (Mon) Nov 02 2009 [10:52:02], Anthony Liguori wrote: > Amit Shah wrote: >> 1k is too less; at least send out 4k of data from a chardev. >> > > Why is 1k too small? Definitely depends on the apps that pump in the data. If an app has data to pump, it will keep pumping as much data as possible (eg, Linux syscalls issue read / write requests for 32k bytes of data). The char devices have a 'can_read' call to determine how much the backend can accept. We're artificially limiting to 1k in this code, even if the app can pump and the backend can receive, resulting in multiple splits. In the case of virtio, 4k is available if the guest is able to receive data. Amit