[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to slow more copying of files ?




On 3/19/19 11:39 AM, tomas@tuxteam.de wrote:
On Tue, Mar 19, 2019 at 11:29:36AM +0100, Pierre Couderc wrote:
Big copy operations (with cp) may be slow, but it is not my problem.

But too,  they slow the full computer !

Is there a way to slow the copy which is not a priority task to let
the computer breath.... ?
This is more complicated than you might wish :-)

The problem centers around the definition of "slow": clearly, some
resource is being hogged by your 'cp', but which one(s) will depend
much on your hardware.
in fact, in this case, it is a copy of mailboxes (many small files) from a location to another, the whole on a brtfs RAID1 device...

Since you have tried 'nice' with no effect, let's assume that this
resource isn't CPU.
Yes, top, shows it (what it is  allowed to run ;)
  Then, you might have a look at 'ionice' (from
the package util-linux). But too little RAM might be as well a
problem.

Another avenue might be using rsync, which offer a rate-limiting
option (--bwlimit).

Thank you, sure I shold use rsync or ionice.

Anyway, it not a reptitive tasks, but it was yo understand...


Reply to: