load memlimit functions

Signed-off-by: Zarrar Shehzad <czarrar@gmail.com>