Input: use resource_size when allocating resources