I am running a script that downloads large files. I ran the same script on one core of the OpenSuSe server and a quad-core PC. As expected on my PC, it is much faster than on the server. But the script slows down the server and makes it impossible to do anything else.
My script is there
for 100 iterations Load saved data (about 10 mb)
myscript time (on PC)
real 0m52.564s user 0m51.768s sys 0m0.524s
myscript time (on server)
real 32m32.810s user 4m37.677s sys 12m51.524s
I wonder why "sys" is so high when I run the code on the server. I used the top command to check memory and CPU usage.
It seems that there is still free memory, so replacement is not the reason. % sy is so high that there is probably a reason for server speed, but I donβt know what causes% sy so high. The process using the highest percentage of CPU (99%) is "myscript". % wa is zero in the screenshot, but sometimes it gets very high (50%).
When the script is executed, the average load is greater than 1, but never equal to 2.
I also checked my drive:
strt:~
I checked these things, but I'm still not sure what the real problem is on my server and how to fix it. Can anyone determine the likely cause of the slowness? What could be the solution? Or is there anything else I should check?
Thanks!
linux linux-kernel cpu-usage opensuse
Abhishek
source share