Page 1 of 1

Limiting of disk space and bandwidth

Posted: Sun Feb 23, 2003 8:18 pm
by Kriek
I am running a system where users can upload their files to the server via PHP/MySQL and would like to limit disk space and bandwidth for each user. I have several ideas on ways that I could accomplish this, but they are just theories and I'd like to hear some input on this subject. We were grepping the logs for bandwidth through the AWK command, but this was causing the server to overprocess so I would like to accomplish this another way. Now, I could change the cron to 3, instead of 1 and that would have stopped the load, but there either has to be another way or another solution, databased disk space and transfer etc.

Posted: Sun Feb 23, 2003 9:30 pm
by volka
you might be interested in mod_throttle for apache. It's not supposed to limit the total amount of throughput but the bandwidth/time.

To limit the amount of disk space quota is a wonderful feature of unix systems. But you'd have to run the different virtual servers under different user-accounts.