Good grief. An ideal population is relative to available resources. The resources available 150 years ago wouldn't support more than a couple hundred million people.
As resources grow, so does population. One of the more simple cause and effect relationships you'll ever find.
In point of fact, populations exploded because of oil production. Increased efficiencies and quantities of energy and other resources related to oil production are what make increased populations possible.