Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ionice+nice for backups on linux #285

Open
RlndVt opened this issue May 20, 2019 · 9 comments
Open

ionice+nice for backups on linux #285

RlndVt opened this issue May 20, 2019 · 9 comments
Labels
type:enhancement Improvement of an existing function

Comments

@RlndVt
Copy link

RlndVt commented May 20, 2019

Is your feature request related to a problem? Please describe.
I want to issue run borg with a specified (io)niceness and nocache e.g.:

nocace ionice -n 7 nice borg [...]

Describe the solution you'd like

Have a option to specify commands to prepend to the borg command.

Related/other issues

#96 #272 #274 all ask for adding additional commands/arguments to borg commands, but they all seem targeted to appending, instead of 'prepending'.

@ThomasWaldmann
Copy link
Collaborator

What's nocache for exactly?

@RlndVt
Copy link
Author

RlndVt commented May 20, 2019

Quoting from the GitHub:

The nocache tool tries to minimize the effect an application has on the Linux file system cache.[...]

Use case: backup processes that should not interfere with the present state of the cache.

So (an attempt is made such that) the disk cache is maintained while performing e.g. backup tasks to minimise impact on performance.

@ThomasWaldmann
Copy link
Collaborator

So we are talking about this: https://github.com/Feh/nocache

borg already has that fadvise-dontneed functionality built-in.

@RlndVt
Copy link
Author

RlndVt commented May 20, 2019

Oh that's fantastic.

So only ionice/nice, or is that also built in?

@ThomasWaldmann
Copy link
Collaborator

ionice is not built in (there is only some bw limiting for ssh: repos).

but guess ionice is system-specific (while fadvise is cross-platform).

@Schroedingers-Cat
Copy link

Why has this been closed? Is there a way to use Vorta for scheduling regular backups with lowest ioniceness and niceness? I haven't found an option in Vorta 0.8.9.

While I can set the niceness and ioniceness for borg from the terminal, these option have to be prefixed to borg create. The Vorta GUI only seems to allow postfixing.

@real-yfprojects
Copy link
Collaborator

Nice is only supported by Linux.

@real-yfprojects real-yfprojects added the type:enhancement Improvement of an existing function label Feb 9, 2023
@real-yfprojects real-yfprojects changed the title ionice nice (and nocache) to borg commands ionice+nice for backups on linux Feb 9, 2023
@real-yfprojects
Copy link
Collaborator

Maybe #379 can allow passing borg commands to other commands.

@Schroedingers-Cat
Copy link

Maybe #379 can allow passing borg commands to other commands.

The closest thing I could spot there was the suggestion for borg arguments, which I don't think would allow for setting niceness and ioniceness. Anything specific you were thinking of from that issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Improvement of an existing function
Projects
None yet
Development

No branches or pull requests

5 participants