Re: [Qemu-devel] [RFC v3 PATCH 2/5] cpus-common: Cache allocated work items

2017-09-05 Thread Alex Bennée
Pranith Kumar writes: > Using heaptrack, I found that quite a few of our temporary allocations > are coming from allocating work items. Instead of doing this > continously, we can cache the allocated items and reuse them instead > of freeing them. > > Stats from an ARM64

[Qemu-devel] [RFC v3 PATCH 2/5] cpus-common: Cache allocated work items

2017-08-29 Thread Pranith Kumar
Using heaptrack, I found that quite a few of our temporary allocations are coming from allocating work items. Instead of doing this continously, we can cache the allocated items and reuse them instead of freeing them. Stats from an ARM64 guest (boot+shutdown): heaptrack stats(before):