You are not logged in.

#1 2014-03-24 10:11:58

Holzhaus
Member
Registered: 2013-10-25
Posts: 11

How to set nfsd nice value?

Hi,

I'd like to set nice value of the nfsd processes on my NFS server to 19 by default. On Debian there is the file /etc/default/nfs-kernel-server which contains

# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

Unfortunately, I can't find something similar in /etc/conf.d/nfs-server.conf:

# Parameters to be passed to nfs-server init script.
#

# Options to pass to rpc.nfsd.
# See rpc.nfsd(8) for more details.
NFSD_OPTS=""

# Number of servers to start up; the default is 8 servers.
NFSD_COUNT=""

# Where to mount nfsd filesystem; the default is "/proc/fs/nfsd".
PROCNFSD_MOUNTPOINT=""

# Options used to mount nfsd filesystem; the default is "rw,nodev,noexec,nosuid".
PROCNFSD_MOUNTOPTS=""

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option.
# See rpc.mountd(8) for more details.
MOUNTD_OPTS=""

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""

# Options to pass to rpc.svcgssd.
# See rpc.svcgssd(8) for more details.
SVCGSSD_OPTS=""

Does anyone know how to accomplish this?

Thanks in advance,

Holzhaus

Offline

#2 2014-04-03 20:24:41

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: How to set nfsd nice value?

See man:systemd.exec(5), there are tunables like Nice=, IOSchedulingPriority=, etc..

You can override the system-installed unit as explained here: https://wiki.archlinux.org/index.php/Sy … unit_files

Offline

Board footer

Powered by FluxBB