I am at the opinion that this is for each script that runs. Meaning that if ten people hit a script that uses 512mb it will bring your server down
If you want consistent performance across all users this should be lower rather than higher.
128MB should be fine
PS imagine 60 people doing a quiz and each user (script that runs), is allowed to use up 512MB