Bug 266410 - Locate database update scripts runs even it is disabled in periodic.conf
Summary: Locate database update scripts runs even it is disabled in periodic.conf
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-14 09:39 UTC by sgubdsbeerf
Modified: 2022-09-14 22:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sgubdsbeerf 2022-09-14 09:39:40 UTC
What is happening?
I observed several times a find command running over my ZFS data pool
and causing many read operations. I disabled updating the locate database
in periodic.conf but it seems to run nevertheless.

What do I expect to happen?
Not to run if it is disabled.

How to reproduce?
Set weekly_locate_enable to NO in /etc/periodic.conf and monitor IO
operations and the process list.

Further information

$ grep locate /etc/periodic.conf
weekly_locate_enable="NO"

PID  PPID COMMAND
93005 92862 /bin/sh /usr/libexec/locate.updatedb
93611 93005 find -s / ! ( -fstype msdosfs -or -fstype zfs ) -prune -or -path /tmp -prune -or -path /usr/tmp -prune
93636 93005 /bin/sh /usr/libexec/locate.mklocatedb -presort

pool        alloc   free   read  write   read  write
----------  -----  -----  -----  -----  -----  -----
zdata       4.21T  3.05T    713     29  3.19M   540K
zroot       4.25G   105G      0     12      0   115K
----------  -----  -----  -----  -----  -----  -----