Avoid using up all memory in broken filesystems