theta remainder: memory alloc and I/O