That looks like a race condition, get_poolsize being called while /proc isn't mounted yet, so it returns -1.