You are not logged in.
Pages: 1
hey guys, recently i found that at midnight, i mean 12pm, a process of mandb will start to read and write the hard disk. And it will take nearly 3 to 5 minutes. So i am wondering why mandb appears at this time and the function of it. Any answer will be appreciate. Thanks!
Last edited by alexanderQ\ (2010-02-01 06:09:39)
Offline
Most likely a cron process. It is listed under /etc/cron.daily, like
bp:~$ ls -l /etc/cron.daily/
insgesamt 20
-rwxr--r-- 1 root root 51 13. Apr 2009 logrotate
-rwxr--r-- 1 root root 309 2. Sep 20:17 man-db
-rwxr--r-- 1 root root 50 13. Dez 22:54 pkgfile
-rwxr--r-- 1 root root 96 1. Aug 12:23 shadow
-rwxr--r-- 1 root root 654 22. Okt 15:55 updatedb
To know or not to know ...
... the questions remain forever.
Offline
I would too like to know the function of this.
Offline
Do
man mandb
Offline
if its function is just about updating the index database of man, is it reasonable to automatically start everyday and each time for several minutes?
Offline
if its function is just about updating the index database of man, is it reasonable to automatically start everyday and each time for several minutes?
Yes it is. It's a cron program, that means that run periodically and automatically. Most of the programs you install have man (manual) information, the mandb has to find the new install and get the links to their manuals.
Last edited by n0dix (2010-01-16 17:59:14)
Offline
OK. Thanks for all your help!
Offline
You will only need madb if you use whatis or apropos. If it is running for minutes every day and causing high system load then it is related to this bug.
Offline
yes, ijanos. I have the exactly same problem as you said, and I looked through that bug report webpage. It seems that Colin Watson has fixed this bug. But I didn't find his patch. The webaddress he offered can not be opened correctly.. So what the correct output should be, if we run mandb twice?
Here is the output of running mandb on screen :
===================================
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
====================================
can that be considered normal?
Offline
In the closing comment he states there could be broken man pages, which cause mandb to rebuild the whole database everytime. From the mandb debuglog he could tell which package caused the problem.
Honestly, i simply removed the executable flag from /etc/cron.daily/man-db.sh script, since i never use whatis nor apropos.
Offline
Here is the output of running mandb on screen :
===================================
0 man subdirectories contained newer manual pages.
0 manual pages were added.
0 stray cats were added.
0 old database entries were purged.
====================================
can that be considered normal?
Usually this reports that the man database is up to date. There should have been messages like "Processing manual pages under <some directory>", however. If in doubt, you can always force mandb to rebuild its database again, using
mandb --create
Anyhow, when there were no or or small changes only to the database, mandb should have run for a few seconds only.
To know or not to know ...
... the questions remain forever.
Offline
Pages: 1