Felix Miata composed on 2024-01-16 01:05 (UTC-0500):

> gene heskett composed on 2024-01-15 18:37 (UTC-0500):

>> Ah,but I finally glombed onto the bug tan memory bar in htop as it was 
>> runniing, someplace in the data chain is a huge memory leak, my crash is 
>> caused by the OOM daemon killing things. And it only occurs when I run 
>> rsync. Only takes it 10 minute to eat 32G of memory, then 500k into 
>> swap, and the OOM daemon start killing the system until there's nothing 
>> left to run.

> What does free report before starting rsync? Do you have all your swap on a
> partition? Do you have any swapspace?

> I would log out of XFCE, login on a vtty to open top, then login on another 
> to try
> to run rsync. If that fails OOM too, since the target is ostensibly starting 
> from
> scratch, use MC, and divide the job into the source's directories if 
> necessary. MC
> gets rather bogged down if you try to do a bazillion individual files in a 
> single
> copy operation.

Trying to think outside the box, something else to think about, from the man 
page:
[quote]
--archive, -a
This is equivalent to -rlptgoD.  It is a quick way of saying you want recursion
and want to preserve almost everything.  Be aware that it does not include
preserving ACLs (-A), xattrs (-X), atimes (-U), crtimes (-N), nor the finding 
and
preserving of hardlinks (-H).
[/quote]

If rsync really is bugged, maybe a change of options would avoid the bug. Try
instead of -av, -rlptgoDAXUNH. Could it be that verbosity is the OOM crippler, 
and
not necessarily from rsync itself, but possibly from the xterm in which rsync is
running? Does your source contain any hard links? Do you use ACLs or xattrs?
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to