tags:

views:

84

answers:

1

I had a look around for the CURL settings file but didn't find it in /etc/ and didn't find much on the curl site ether...

So basically what I want to do set a maximum speed limit that curl can upload at (no matter how many instances of it are running) so that my server has some upload capacity left for other tasks.

+1  A: 

You have to use traffic shaping. Check the man page on tc, or try http://pupa.da.ru/tc/.

Very interesting, never knew about this command before. I'v read up on it and so far only read that it can shape per user, everything or by port but nothing on shaping a process...
Mint
I would imagine that you would either want to shape all traffic headed to that specific server, or, more complicated, create a virtual ethernet device (ifconfig eth0:2 192.168.0.2 network settings), and configure curl to make all requests over that ip.