Re: [PATCH] Increase size of buffer for xend response

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

 



Eric Blake wrote:
> On 09/01/2011 06:36 PM, Jim Fehlig wrote:
>> On systems with many pcpus, the sexpr returned by xend can be quite
>> large for dom0 when it is configured to have #vcpus = #pcpus (default).
>> E.g. on a 80 pcpu system, where dom0 had 80 vcpus, the sexpr details
>> for dom0 was 73817 bytes!  Increase maximum buffer size to 256k.
>> ---
>>   src/xen/xend_internal.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c
>> index 957cd17..1fdebe1 100644
>> --- a/src/xen/xend_internal.c
>> +++ b/src/xen/xend_internal.c
>> @@ -56,7 +56,7 @@
>>    * The number of Xen scheduler parameters
>>    */
>>
>> -#define XEND_RCV_BUF_MAX_LEN 65536
>> +#define XEND_RCV_BUF_MAX_LEN 262144
>
> I'd write this as:
>
> #define XEND_RCV_BUF_MAX_LEN (256 * 1024)
>
> for a bit more legibility.  ACK with that change.

Changed as suggested and pushed.  Thanks.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]