Project

General

Profile

Feature #1920

Make mempool aware of Isomalloc's per-slot metadata

Added by Sam White 30 days ago. Updated 29 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
AMPI
Target version:
-
Start date:
05/22/2018
Due date:
% Done:

0%

Tags:

Description

By default Isomalloc uses the mempool implementation in src/arch/util/mempool.{h,c}.
That mempool always allocates memory in slots that are powers of two sized, with the smallest slot being I think 64 Bytes.
Isomalloc adds its own small metadata (~32 Bytes) to each of the application's allocations for its own bookkeeping.
As a consequence, if the user calls "malloc(64*1024*1024)" they will get a slot in the mempool that is actually get a 128 MB for an allocation that is 64MB + 32B.
We should instead make the mempool aware of Isomalloc's small metadata so that it plays nicely with even powers-of-two allocation sizes.

History

#1 Updated by Sam White 30 days ago

  • Tags set to isomalloc

#2 Updated by Sam White 29 days ago

  • Assignee set to Evan Ramos

Also available in: Atom PDF