The place people grow what is needed for their families to survive is called: subsistence farms.
In subsistence farms, the farmers paid no attention in how to make the farms financially profitable and only focused on fulfilling their basic needs. This make the total output of the farms rarely exceeds the amount of expense that the farmers had to spend.