ubuntu django run managements much faster( i tried renice by setting -18 priority to python process pid)
Just in case, did you run the command renice -20 -p {pid} instead of renice --20 -p {pid}? In the first case it will be given the lowest priority.
I am using ubuntu.  I have some management commands which when run, does lots of database manipulations, so it takes nearly 15min. 
My system monitor shows that my system has 4 cpu's and 6GB RAM. But, this process is not utilising all the cpu's . I think it is using only one of the cpus and that too very less ram. I think, if I am able to make it to use all the cpu's and most of the ram, then the process will be completed in very less time. 
I tried renice , by settings priority to -18 (means very high) but still the speed is less.
Details: 
its a python script with loop count of nearly 10,000 and that too nearly ten such loops. In every loop, it saves to postgres database.