mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
attempt to set priority to -10 on startup. closes #65
This commit is contained in:
parent
7552ad6781
commit
5fb277529f
3 changed files with 15 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ namespace local
|
|||
{
|
||||
return fs::basename(argv[0]);
|
||||
}
|
||||
|
||||
|
||||
static
|
||||
void
|
||||
get_fuse_operations(struct fuse_operations &ops)
|
||||
|
|
@ -152,10 +152,13 @@ namespace local
|
|||
void
|
||||
setup_resources(void)
|
||||
{
|
||||
const int prio = -10;
|
||||
|
||||
std::srand(time(NULL));
|
||||
mergerfs::resources::reset_umask();
|
||||
mergerfs::resources::maxout_rlimit_nofile();
|
||||
mergerfs::resources::maxout_rlimit_fsize();
|
||||
mergerfs::resources::setpriority(prio);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue