Should I salt water for cooking pastas based on the volume of water or amount of food?
The water....but no need to be super precise. You should be able to taste the salt. Under or unsalted pasta water results in a flat tasting pasta.  However, it is possible to over salt the water, resulting in over-salted pasta.