I am using cp to copy data like so:
cp -r from_here to_there
When I do that, my computer freezes and unfreezes periodically. I have 4 CPUs installed and the HD is connected via SATA. from_here and to_there are both on the same file system so no network is used. The freezing is somehow dependent on the amount of files being copied. For a lot of files it is even impossible to sign in on the machine via ssh.
Is there a way to check why my OS freezes and unfreezes? Can I maybe tell cp to take it easy somehow?
nice cp [arguments](for CPU) orionice cp [arguments](for disk IO, on some systems), but that won't eliminate the root of your problems I guess (more info) – slhck Jul 26 '11 at 12:47ionice cp -r from_here to_therei get:none: prio 4 ionice: cannot parse number 'cp'. Fornice cp -r 24 24mit simply starts copying and I do not get any feedback... – Woltan Jul 26 '11 at 12:57