sanoid icon indicating copy to clipboard operation
sanoid copied to clipboard

`pv` should only be used when run interactively

Open owenthewizard opened this issue 9 months ago • 3 comments

pv has CPU overhead, and was pegging 4 of my cores while syncoid jobs were running.

owenthewizard avatar Mar 24 '25 15:03 owenthewizard

This is probably a good idea.

ipaqmaster avatar Jul 25 '25 03:07 ipaqmaster

pv is what we use to throttle throughput when requested, as well as a progress bar. I'd be open to a PR for this, but it's going to need to notice and intelligently handle not only the difference between interactive and non interactive sessions, but also whether or not any throttling has been requested (and that is FREQUENTLY essential for off-site backups especially).

In the meantime, if it's really griping you, you can remove pv from the system in question and syncoid will operate without it automatically.

jimsalterjrs avatar Aug 24 '25 14:08 jimsalterjrs

pv has --quiet, maybe this could be used?

owenthewizard avatar Sep 11 '25 07:09 owenthewizard