Re: [Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray

2016-08-03 Thread Alex Bennée
Emilio G. Cota writes: > On Tue, Aug 02, 2016 at 18:27:44 +0100, Alex Bennée wrote: >> Under times of high memory stress the additional small mallocs by a >> linked list are source of potential memory fragmentation. As we have >> worked hard to avoid mallocs elsewhere when queuing work we might

Re: [Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray

2016-08-02 Thread Emilio G. Cota
On Tue, Aug 02, 2016 at 18:27:44 +0100, Alex Bennée wrote: > Under times of high memory stress the additional small mallocs by a > linked list are source of potential memory fragmentation. As we have > worked hard to avoid mallocs elsewhere when queuing work we might as > well do the same for the l

Re: [Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray

2016-08-02 Thread Alex Bennée
Alex Bennée writes: > Under times of high memory stress the additional small mallocs by a > linked list are source of potential memory fragmentation. As we have > worked hard to avoid mallocs elsewhere when queuing work we might as > well do the same for the list. We convert the lists to a auto-

[Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray

2016-08-02 Thread Alex Bennée
Under times of high memory stress the additional small mallocs by a linked list are source of potential memory fragmentation. As we have worked hard to avoid mallocs elsewhere when queuing work we might as well do the same for the list. We convert the lists to a auto-resizeing GArray which will re-

[Qemu-devel] [PATCH v5 13/13] cpu-exec: replace cpu->queued_work with GArray

2016-08-02 Thread Alex Bennée
Under times of high memory stress the additional small mallocs by a linked list are source of potential memory fragmentation. As we have worked hard to avoid mallocs elsewhere when queuing work we might as well do the same for the list. We convert the lists to a auto-resizeing GArray which will re-