Memory allocator for testing Docker memory constraining