Re: [libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-05-14 Thread Eric Blake
On 04/27/2012 07:22 AM, Michal Privoznik wrote: > Currently, we are allocating buffer for RPC messages statically. > This is not such pain when RPC limits are small. However, if we want > ever to increase those limits, we need to allocate buffer dynamically, > based on RPC message len (= the first

Re: [libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-05-10 Thread Michal Privoznik
On 03.05.2012 10:01, Daniel P. Berrange wrote: > On Wed, May 02, 2012 at 01:52:27PM -0600, Eric Blake wrote: >> On 04/27/2012 07:22 AM, Michal Privoznik wrote: >>> Currently, we are allocating buffer for RPC messages statically. >>> This is not such pain when RPC limits are small. However, if we wa

Re: [libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2012 at 04:48:10PM +0200, Michal Privoznik wrote: > On 03.05.2012 10:01, Daniel P. Berrange wrote: > > On Wed, May 02, 2012 at 01:52:27PM -0600, Eric Blake wrote: > >> On 04/27/2012 07:22 AM, Michal Privoznik wrote: > >>> Currently, we are allocating buffer for RPC messages statical

Re: [libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-05-03 Thread Daniel P. Berrange
On Wed, May 02, 2012 at 01:52:27PM -0600, Eric Blake wrote: > On 04/27/2012 07:22 AM, Michal Privoznik wrote: > > Currently, we are allocating buffer for RPC messages statically. > > This is not such pain when RPC limits are small. However, if we want > > ever to increase those limits, we need to a

Re: [libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-05-02 Thread Eric Blake
On 04/27/2012 07:22 AM, Michal Privoznik wrote: > Currently, we are allocating buffer for RPC messages statically. > This is not such pain when RPC limits are small. However, if we want > ever to increase those limits, we need to allocate buffer dynamically, > based on RPC message len (= the first

[libvirt] [PATCH 1/2] rpc: Switch to dynamically allocated message buffer

2012-04-27 Thread Michal Privoznik
Currently, we are allocating buffer for RPC messages statically. This is not such pain when RPC limits are small. However, if we want ever to increase those limits, we need to allocate buffer dynamically, based on RPC message len (= the first 4 bytes). Therefore we will decrease our mem usage in mo