[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] char: tcp: increase size of buffer that holds d

From: Amit Shah
Subject: Re: [Qemu-devel] [PATCH] char: tcp: increase size of buffer that holds data to be sent out
Date: Tue, 3 Nov 2009 10:24:58 +0530
User-agent: Mutt/1.5.19 (2009-01-05)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]