I've looked at this on django running as fastcgi on both Slicehost (django 1.1, python 2.6) and Dreamhost (django 1.0, python 2.5), and I can say this: Running the top command shows the processes use a large amount of CPU to start up for ~2-3 seconds, then drop down to 0 almost immediately Running the ps aux command after starting the django app shows something similar to what you describe however this is actually misleading. From the Ubuntu man pages for ps: CPU usage is currently expressed as the percentage of time spent running during the entire lifetime of a process. This is not ideal, and it does not conform to the standards that ps otherwise conforms to.
CPU usage is unlikely to add up to exactly 100% Basically, the %CPU column shown by ps is actually an average over the time the process has been running. The decay you see is due to the high initial spike followed by inactivity being averaged over time.
I've looked at this on django running as fastcgi on both Slicehost (django 1.1, python 2.6) and Dreamhost (django 1.0, python 2.5), and I can say this: Running the top command shows the processes use a large amount of CPU to start up for ~2-3 seconds, then drop down to 0 almost immediately. Running the ps aux command after starting the django app shows something similar to what you describe, however this is actually misleading. From the Ubuntu man pages for ps: CPU usage is currently expressed as the percentage of time spent running during the entire lifetime of a process.
This is not ideal, and it does not conform to the standards that ps otherwise conforms to. CPU usage is unlikely to add up to exactly 100%. Basically, the %CPU column shown by ps is actually an average over the time the process has been running.
The decay you see is due to the high initial spike followed by inactivity being averaged over time.
Thanks! Best solution to a problem that could turn into a wild goose chase... – Paul McMillan Oct 7 '09 at 16:36.
Your fast-cgi threads must not consume any (noticeable) CPU if there are no requests to process. You should investigate the load you are describing. I use the same architecture and my threads are completely idle.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.