When training troops, you are always using the total capacity of all Barracks. Please note that each barracks has a maximum training capacity (based on its level). The more barracks you have, the more units you can train.