kvikio icon indicating copy to clipboard operation
kvikio copied to clipboard

Limit pinned memory pool chunk size

Open vuule opened this issue 3 years ago • 1 comments

The size of chunks in the pinned memory pool should be limited by the slice size, since each chunk is always used by a single thread.

vuule avatar May 19 '22 20:05 vuule

I think this is a good idea but since it is possible to change the task_size (aka slice size) between IO calls, AllocRetain will have to support reuse of different sized memory chunks.

Also notice, there is only one memory pool shared between all threads. We could change this to have each thread maintain its own bounce buffer.

madsbk avatar Jun 03 '22 07:06 madsbk