So I've edited SLOB to use the best-fit algorithm, both when finding a suitable page and a suitable block. But the question is, how do I test it? Should I just write user-level code that continuously does malloc?
By the way, I've inserted an int counter, that after 6000 calls of slob_alloc (the function that finds the suitable page to handle the request), prints the requested size, the available blocks on the page, and the block that's the best fit. But I get nothing printed with dmesg.