From 1fed72a9c3e041016d98990005d64d8509e82c69 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 3 Nov 2018 05:44:49 -0400 Subject: [PATCH] slab internal fragmentation is always the same --- README.md | 2 +- calculate_waste.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 223258d..3df9f35 100644 --- a/README.md +++ b/README.md @@ -293,7 +293,7 @@ slabs containing them: > each doubling in size, which limits internal fragmentation to approximately 20% for all but the > smallest size classes -| size class | worst case internal fragmentation | slab slots | slab size | worst case internal fragmentation for slabs | +| size class | worst case internal fragmentation | slab slots | slab size | internal fragmentation for slabs | | - | - | - | - | - | | 16 | 93.75% | 256 | 4096 | 0.0% | | 32 | 46.875% | 128 | 4096 | 0.0% | diff --git a/calculate_waste.py b/calculate_waste.py index 552c5b1..07dda15 100755 --- a/calculate_waste.py +++ b/calculate_waste.py @@ -36,7 +36,7 @@ def page_align(size): return (size + 4095) & ~4095 print("| ", end="") -print("size class", "worst case internal fragmentation", "slab slots", "slab size", "worst case internal fragmentation for slabs", sep=" | ", end=" |\n") +print("size class", "worst case internal fragmentation", "slab slots", "slab size", "internal fragmentation for slabs", sep=" | ", end=" |\n") print("| ", end='') print("-", "-", "-", "-", "-", sep=" | ", end=" |\n") for size, slots, fragmentation in zip(size_classes, size_class_slots, fragmentation):