tldr; on a heavily loaded system the daily running of
OP
Recently (the last two or three months) one of our server host has been reporting excessive disk i/o on a recurring basis:
This seems to be related to this process:
This is running in a FreeBSD-13.2 jail that hosts our Samba AD-DC.
Searching for this the references I have found suggest that the underlying issue is with periodic scripts having to do with
Finding and killing every
However, various pkg processes respawn thereafter. It seem that the issue lies with the number of jails running on that host. We are in the process of migrating to 14.1 and while we resolve issues with various packages on the converted jails we are keeping the services active on the host experiencing the i/o issue. My question is really: how much of the pkg activity on the jails is really necessary?
man periodic says that periodic jobs are scheduled in root crontab but I cannot find any such entries therein. Where are the schedules for the periodic runs kept?
neggrpperm
by periodic
on multiple jails generated excessive disc i/o and brought the host system to a crawl. Disabling neggrpperm
on the jails and restricting its run on the host to monthly resolved the issue.OP
Recently (the last two or three months) one of our server host has been reporting excessive disk i/o on a recurring basis:
Code:
# gstat -I5s | sort -rn -k9 | head ### show disc i/o busy
12 97 9 36 88.7 80 1526 48.0 95.9 ada3p3
12 97 9 36 88.7 80 1526 48.0 95.9 ada3
11 94 6 25 77.6 80 1576 41.9 93.0 ada2p3
11 94 6 25 77.6 80 1576 41.9 93.0 ada2
7 96 7 28 61.7 81 1613 38.3 83.9 ada1p3
7 96 7 28 61.7 81 1613 38.3 83.9 ada1
4 97 8 30 65.6 82 1626 38.9 83.7 ada0p3
4 97 8 30 65.6 82 1626 38.9 83.7 ada0
dT: 5.019s w: 5.000s
L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name
Code:
root 40688 0.0 0.0 18400 8592 - DJ 08:09 0:18.56 find -sx / /dev/null ( ! -fstype local ) -prune -o -type f ( ( ! -perm +010 -and -perm +001 ) -or ( ! -perm +020 -and -perm +002 ) -or ( ! -perm +040 -and -perm +004 ) ) -exec ls -liTd {} +
This is running in a FreeBSD-13.2 jail that hosts our Samba AD-DC.
Searching for this the references I have found suggest that the underlying issue is with periodic scripts having to do with
pkg
. Searching for the parent shows this:
Code:
ps -o ppid= -p 40688
40328
ps -auwwx | grep 40328
root 40328 0.0 0.0 13580 2440 - IJ 08:09 0:00.00 /bin/sh - /etc/periodic/security/110.neggrpperm
Finding and killing every
110.neggrpperm
immediately dropped the disk i/o load somewhat but not by much.However, various pkg processes respawn thereafter. It seem that the issue lies with the number of jails running on that host. We are in the process of migrating to 14.1 and while we resolve issues with various packages on the converted jails we are keeping the services active on the host experiencing the i/o issue. My question is really: how much of the pkg activity on the jails is really necessary?
man periodic says that periodic jobs are scheduled in root crontab but I cannot find any such entries therein. Where are the schedules for the periodic runs kept?
Last edited: