I was recently involved in a feasibility study for using Chlorella vulgaris algae for generating medical oxygen using solar energy in off-grid medical facilities.
Bottom line: it requires one cubic meter (one metric ton) of nutrient medium per person. The mass of the algae itself is trivial compared with the growth medium.
Light is toxic to the photosynthetic enzymes in algae. Sunlight needs to either be attenuated or intermittent. Light intensity decreases as it passes through the medium. If you are attempting to minimize the mass of the medium, you will need to use LED light source (and the attendant solar panels) rather than direct sunlight.
The algae themselves attenuate light so either algae density needs to be low (lots of medium) or LEDs must be close together (lots of LEDs).
Algae are not very efficient at converting light to O2. That’s not what evolution selected them for. Overall, they are 12% energy efficient at separating CO2 into O2 and carbohydrates. The bioreactor process is power intensive, so it becomes a major power load on a spacecraft.
The bioreactor needs to be mixed, but very gently since the algae are fragile. On Earth this is usually done with bubbles rising through the medium, but the bubble size needs to be controlled to prevent shear forces on the algae. In microgravity, bubble mixing is not available. Mixing the cubic meter of medium in small passages is a non-trivial problem.
Separating O2 bubbles from the medium is easy if gravity is present. Not so in microgravity.
High O2 productivity is dependent on keeping the algae on a particular point of their growth curve by regulating density, light intensity and nutrient levels. The bioreactor will need attention, maintenance and problem solving. The astronaut becomes a farmer.
The bioreactor produces a large amount of green goo and consumes significant amounts of electrolyte nutrients. In theory a closed loop could be engineered where astronauts could poop in the bioreactor and eat the goo. You might want to run that past them first.
To answer your questions:
Mass of algae and medium: 1 metric ton per person
Size of container: 1 cubic meter (within spaceship’s temperature controlled pressure hull).
Mass of containment, solar panels, lights, pressure hull volume and control systems: 1 metric ton per person
So (in very round numbers) you are looking at 2 metric tons per person for the bioreactor.
According to NASA each person aboard the ISS consumes 0.84 kg O2 per day. 2 tons of O2 per person would last 6.5 years at that rate. From a mass budget perspective it makes more sense to use O2 boil-off from propellant tanks than to carry a bioreactor for interplanetary voyages. Boil-off would also be much more reliable.