cancel
Showing results for 
Search instead for 
Did you mean: 

scp

chakri
Occasional Contributor

scp

Hi,

how to run scp command with lowest priority.

i used the following command in my script.

nice -n 19 scp @

when i do top, i see that scp is taking less cpu but ssh process is using almost 100% cpu.

28103 root 39 19 3600 1820 1428 R 97 0.0 0:07.42 ssh
28102 root 39 19 3076 864 728 S 1 0.0 0:00.14 scp

is there any way to set the prioprity to ssh process in this case?

thank you,


2 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: scp

Hi:

> when i do top, i see that scp is taking less cpu but ssh process is using almost 100% cpu.

The real concern isn't that a process is consuming 100% of a CPU, but (1) is any other process suffering; and (2) what else is running.

Regards!

...JRF...
Patrick Terlisten
Honored Contributor

Re: scp

Hello,

you can see that the scp process is sleeping (state S) and ssh is running (R). SSH and SCP are used together. Please take a look at the WA stats in top. 100% cpu load doesn't mean 100% work. ;) Maybe you system is waiting 80% of the time for IO.

Hope this helps.

Best regards,
Patrick
Best regards,
Patrick