RE: [SLE] My SuSE Linux is very slow sometimes.
Hi,
From: Prabu Subroto [mailto:prabusubroto@yahoo.com] Dear my friends....
I wonder why my SuSE Linux 8.1 becomes very slow sometimes. It becomes slow if my harddisk suddenly being busy because of an unknown process. I guess because fsck but I am not sure.
I hope it's not fsck, because it needs an unmounted filesystem. It's rather updatedb, a daemon, which updates the locate-database. It uses find, which produces pretty heavy load (scans all mounted filesystems for files ...). If you recognize such a load try "ps -elf | grep update" and "ps -elf | grep find" and "top" is also a pretty good tool to check for hungry processes.
What is the unknown process actually? And how can I stop /cease it ?
updatedb is started from the root-crontab, you may change settings there or even disable it.
Thank you very much in advance.
you're welcome, Stefan
Thank you very much my friend...
I will try it if the problem is happening again.
--- Peer Stefan
Hi,
From: Prabu Subroto [mailto:prabusubroto@yahoo.com] Dear my friends....
I wonder why my SuSE Linux 8.1 becomes very slow sometimes. It becomes slow if my harddisk suddenly being busy because of an unknown process. I guess because fsck but I am not sure.
I hope it's not fsck, because it needs an unmounted filesystem.
It's rather updatedb, a daemon, which updates the locate-database. It uses find, which produces pretty heavy load (scans all mounted filesystems for files ...). If you recognize such a load try "ps -elf | grep update" and "ps -elf | grep find" and "top" is also a pretty good tool to check for hungry processes.
What is the unknown process actually? And how can I stop /cease it ?
updatedb is started from the root-crontab, you may change settings there or even disable it.
Thank you very much in advance.
you're welcome, Stefan
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Hi, When I see heavy disk activety there have been 3 updatedb instances running. Is that normal? Interested ................. PeterB On Thursday 27 February 2003 07:47 am, Peer Stefan wrote:
Hi,
From: Prabu Subroto [mailto:prabusubroto@yahoo.com] Dear my friends....
I wonder why my SuSE Linux 8.1 becomes very slow sometimes. It becomes slow if my harddisk suddenly being busy because of an unknown process. I guess because fsck but I am not sure.
I hope it's not fsck, because it needs an unmounted filesystem.
It's rather updatedb, a daemon, which updates the locate-database. It uses find, which produces pretty heavy load (scans all mounted filesystems for files ...). If you recognize such a load try "ps -elf | grep update" and "ps -elf | grep find" and "top" is also a pretty good tool to check for hungry processes.
What is the unknown process actually? And how can I stop /cease it ?
updatedb is started from the root-crontab, you may change settings there or even disable it.
Thank you very much in advance.
you're welcome, Stefan
-- -- Proud to be a SuSE Linux User since 5.2 --
Uffhhh..... I don't know.... "updatedb" is a new word
for me.
Let me have more experience with that first, than I
will answer your question.
--- Peter B Van Campen
Hi,
When I see heavy disk activety there have been 3 updatedb instances running. Is that normal?
Interested ................. PeterB
On Thursday 27 February 2003 07:47 am, Peer Stefan wrote:
Hi,
From: Prabu Subroto [mailto:prabusubroto@yahoo.com] Dear my friends....
I wonder why my SuSE Linux 8.1 becomes very slow sometimes. It becomes slow if my harddisk suddenly being busy because of an unknown process. I guess because fsck but I am not sure.
I hope it's not fsck, because it needs an unmounted filesystem.
It's rather updatedb, a daemon, which updates the locate-database. It uses find, which produces pretty heavy load (scans all mounted filesystems for files ...). If you recognize such a load try "ps -elf | grep update" and "ps -elf | grep find" and "top" is also a pretty good tool to check for hungry processes.
What is the unknown process actually? And how can I stop /cease it ?
updatedb is started from the root-crontab, you may change settings there or even disable it.
Thank you very much in advance.
you're welcome, Stefan
-- --
Proud to be a SuSE Linux User since 5.2
--
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Dear Stefan...
I didn't find "updatedb" in my cron file
(/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
--- Peer Stefan
Hi,
From: Prabu Subroto [mailto:prabusubroto@yahoo.com] Dear my friends....
I wonder why my SuSE Linux 8.1 becomes very slow sometimes. It becomes slow if my harddisk suddenly being busy because of an unknown process. I guess because fsck but I am not sure.
I hope it's not fsck, because it needs an unmounted filesystem.
It's rather updatedb, a daemon, which updates the locate-database. It uses find, which produces pretty heavy load (scans all mounted filesystems for files ...). If you recognize such a load try "ps -elf | grep update" and "ps -elf | grep find" and "top" is also a pretty good tool to check for hungry processes.
What is the unknown process actually? And how can I stop /cease it ?
updatedb is started from the root-crontab, you may change settings there or even disable it.
Thank you very much in advance.
you're welcome, Stefan
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
On Thursday 27 February 2003 11:30 am, Prabu Subroto wrote:
I didn't find "updatedb" in my cron file (/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
Try looking in /etc/cron.daily -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/27/03 11:36 + +----------------------------------------------------------------------------+ "Why do they lock gas station bathrooms?"
Dear Bruce...
Nope, I still didn't find that....Here what I have
done:
"
patrix:/etc/cron.daily # grep -n "updatedb*" ./*
patrix:/etc/cron.daily #
"
Do you still have another idea?
Thank you very much my friend....
--- Bruce Marshall
On Thursday 27 February 2003 11:30 am, Prabu Subroto wrote:
I didn't find "updatedb" in my cron file (/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
Try looking in /etc/cron.daily
--
+----------------------------------------------------------------------------+
+ Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/27/03 11:36 +
+----------------------------------------------------------------------------+
"Why do they lock gas station bathrooms?"
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
There is a section in yast2 for turning configuring updatedb, system->editor
for /etc/sysconfig->base applications->updatedb
Rob
-----Original Message-----
From: Prabu Subroto [mailto:prabusubroto@yahoo.com]
Sent: Thursday, February 27, 2003 10:44 AM
To: suse-linux-e@suse.com
Subject: Re: [SLE] My SuSE Linux is very slow sometimes.
Dear Bruce...
Nope, I still didn't find that....Here what I have
done:
"
patrix:/etc/cron.daily # grep -n "updatedb*" ./*
patrix:/etc/cron.daily #
"
Do you still have another idea?
Thank you very much my friend....
--- Bruce Marshall
On Thursday 27 February 2003 11:30 am, Prabu Subroto wrote:
I didn't find "updatedb" in my cron file (/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
Try looking in /etc/cron.daily
--
+--------------------------------------------------------------------------- -+
+ Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/27/03 11:36 +
+--------------------------------------------------------------------------- -+
"Why do they lock gas station bathrooms?"
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Thursday 27 February 2003 11:43 am, Prabu Subroto wrote:
Dear Bruce...
Nope, I still didn't find that....Here what I have done: " patrix:/etc/cron.daily # grep -n "updatedb*" ./* patrix:/etc/cron.daily # "
Do you still have another idea?
1) I'm running 8.0. 2) In /etc/cron.daily I have a FILE named 'updatedb' 3) Look around. When you find it, rename it if you don't want updatedb to run. 4) However, updatedb is a Good Thing (tm) and I guarantee when you learn more about Linux you will want it back. It is used with the LOCATE command. Very handy.
Thank you very much my friend....
--- Bruce Marshall
wrote: On Thursday 27 February 2003 11:30 am, Prabu Subroto
wrote:
I didn't find "updatedb" in my cron file (/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
Try looking in /etc/cron.daily
--
+--------------------------------------------------------------------- -------+
+ Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/27/03 11:36 +
+--------------------------------------------------------------------- -------+
"Why do they lock gas station bathrooms?"
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 02/27/03 13:51 + +----------------------------------------------------------------------------+ "There are plenty of good five-cent cigars in the country. The trouble is they cost a quarter. What this country really needs is a good five-cent nickle." --Franklin P. Adams
Prabu Subroto wrote:
Dear Bruce...
Nope, I still didn't find that....Here what I have done: " patrix:/etc/cron.daily # grep -n "updatedb*" ./* patrix:/etc/cron.daily # "
updatedb doesn't get installed on a standard 8.1 installation. I don't understand why, I always found it quite useful. Steve
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 27 February 2003 10:43, Prabu Subroto wrote:
Dear Bruce...
Nope, I still didn't find that....Here what I have done: " patrix:/etc/cron.daily # grep -n "updatedb*" ./* patrix:/etc/cron.daily # "
Do you still have another idea?
Thank you very much my friend....
The actual running of the cron job that updates the locate database is done by the file /etc/cron.daily/updatedb. But, as others said, it is worth having going. the "locate" command is invaluable for finding files on file systems with thousands of files. "updatedb" is supposed to run in the wee hours of the morning, when no one is normally on the system. If the time that it is running is inappropriate for your system, maybe you should change cron to run it at a time that is more system-load appropriate. The line to change is in file /etc/crontab: 14 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily The "14" is the minutes, the "0" is the hour(using a 24 hour clock), So, on my system, updatedb runs daily, along with all other scripts in /etc/cron.daily, at 14 minutes past midnight. HTH. - -- Mitch Thompson, San Antonio TX // WB5UZG Red Hat Certified Engineer (RHCE) http://home.satx.rr.com/mlthompson Independent Amsoil Dealer http://amsdealer.webhop.biz GPG: BBDA 3A2A 4483 BD0D 7CED B8A9 D183 C8F6 B0AF 66AE wget -O - http://home.satx.rr.com/mlthompson/pubkey.gpg | gpg --import - -- "There are 10 kinds of people in the world: those who understand binary, and those who don't." -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iQIXAwUBPmXmktGDyPawr2auFAIuqgf8DPuAKyUg+XNphW+I8vmDH5iGqLdMFTsI d1L05AZ6O6FHZLelc9wYppZMnLsO7OaNbeCi7HBxs+NOF9Y0to+MOgFTxEkw6XXl MOidNBmsYez98jj+x2g56hnwUi18M2phuaCugEafwZaGBGVyi14BZ1Uyzk3hywVL 2Co1FXLoSDcfAFXI72kXYxJ2wsyFacNmNUfPg2bZiT9VE46bTC+NmxCoYz04Hs18 KwkwUvqhIltou1FoTaemJHwiCEfED5aPfA0hrsFaaLzoVHMLeHu+oFnv+/+xUzxd 0zCE61+BvhyLrOhrDvZbIp3a/UoRQSdamBKDpHk84tdk45oYrjhQwggAmcjYZi0g fWqIt/7wke4JMyOzPCm6wooCC6mr4Bq4X88sHp2iaBiKDyvFTTL1zpR452xpsei0 gx+n/AfwpFJTSUbxw3PvTIzVq3rSnRAEQBQZ2gCZaa/byuivk9fdPt3+26hnGPBV bs6LTG3yNYbkLCtjtQjsWdCX6IR0KuYdxe9YivFFLWN8WGo6ycJWGvsvlhxcZ+Ac gPxx7zRueO87TjOaLPKrT/6DVb4ASGK8BFMRYonzCpQkkxc2m91GesenlndzmSV0 RaAf6JVUx+AW6Z0KRypLG7eYiaHN8K8+WnHTbHU528Rs4mkcGmCCLlUTLy5e0TCa NxNu1eEqR9rpvw== =OAd6 -----END PGP SIGNATURE-----
The 03.03.05 at 05:59, Mitch Thompson wrote:
The line to change is in file /etc/crontab:
14 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
The "14" is the minutes, the "0" is the hour(using a 24 hour clock),
So, on my system, updatedb runs daily, along with all other scripts in /etc/cron.daily, at 14 minutes past midnight.
Actually, that only deletes a flag file. The real run will happen up to 15 minutes after booting up linux, if it has not run yet this day. This is controlled by this line: -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 If you inspect "/usr/lib/cron/run-crons" you will see the lines responsible for the time choosen to run daily tasks are: cron.daily) TIME="-ctime +1 -or -ctime 1" ;; eval find $SPOOL/$BASE $TIME | \ xargs --no-run-if-empty rm So it is not so easy... -- Cheers, Carlos Robinson
Hi there! Did anyone here compiled pam_mysq in SuSE 8.1 ?!?! ...because I've tried and lots of errors occured... If anyone have the SuSE 8.1 binary for pam_mysql.so v0.5 I BEG him/her to send it to me... I want to try today the Postfix-Cyrus-Web-cyradm and / or the Replex app., so I need this a.s.a.p. Thanks, Radu
On Wednesday 05 March 2003 3:59 am, Mitch Thompson wrote:
On Thursday 27 February 2003 10:43, Prabu Subroto wrote: [...] The actual running of the cron job that updates the locate database is done by the file /etc/cron.daily/updatedb. ... If the time that it is running is inappropriate for your system, maybe you should change cron to run it at a time that is more system-load appropriate.
The line to change is in file /etc/crontab:
14 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily
The "14" is the minutes, the "0" is the hour(using a 24 hour clock),
So, on my system, updatedb runs daily, along with all other scripts in /etc/cron.daily, at 14 minutes past midnight.
Close, but not quite -- the ACTUAL actual routine that runs is (usually) the first item in the file -- the one that reads -*/15 * * * * root test -x /usr/lib/cron/run-crons && [...] [I've chopped it a little shorter for the e-mail, but there is enough here to see what is going on] Basically, "every 15 minutes" the routine "run-crons" gets fired up. run-crons does "some checking" and eventually fires off anything found in a /etc/cron.* directory (.daily, .hourly, .weekly, and .monthly) -IF- the corresponding file in /var/cron/lastrun doesn't exist. Changing the other lines to change the time at which the "lastrun" file gets purged works well if you change the time to EARLIER than it is now. Otherwise, it will run twice -- once at the original time, and again at the time you've changed [but this happens only once] The reason for this is that INTERNAL to the run-crons script is a little bit of logic that purges the "lastrun" file if the timestamp is older than [one hour, one day, one week, or OLDER than the current day of the month in days (think about it...)] For instance, if the "daily" lastrun file gets purged at 2:00am currently, and you change the "rm .../lastrun/daily" crontab entry to purge the file at 1:00am, then it works OK -- at 1:00am "the first time", the file is only 23 hours hold, but since the "external" crontab item is absolute, the file gets purged and (up to) 15 minutes later the "daily" routine actually runs. If, however, you change this to 4:00am, then what happens is that at 2:00am "the next day", the run-crons script sees that the age is now "1 day" [24 hours] and purges the file, hence the script continues to run at 2:00am. 2 hours later, at 4:00am, the "change" to the other crontab entry occurs, the "daily" file get purged again [now only 2 hours old] and the "daily" routine repeats for a second time. After this, however, the NEXT day at 2:00 am the file is only 22 hours old, so "run-crons" doesn't purge the file. Now, where this gets "annoying" is the case where you go on a camping trip over the weekend and actually SHUT DOWN the computer while you're away. come monday morning, when you "want to catch up" on e-mail or newsgroups, you fire up the computer, get past the boot process, login, fire up your browser / e-mail / newsgroup client, get started downloading things, and your computer goes into "molasses mode" -- yup, the time is now 8:15 am [for example] and run-crons has detected that the "lastrun" of "cron.daily" is indeed more than 24 hours ago, so it MUST be time to "do whatever" -- Yet another Blog: http://osnut.homelinux.net
The 03.03.05 at 08:13, Tom Emerson wrote:
Now, where this gets "annoying" is the case where you go on a camping trip over the weekend and actually SHUT DOWN the computer while you're away. come
Even more annoying is for those of us powering off before midnight every day, or keeping late hours. In either case, I get hit. However, "nicing" the task is almost useless, it is the hard disk perfomance that gets hit. I would need a special "nice find" program, stopping often to give the rest of the programs a chance. -- Cheers, Carlos Robinson
The 03.02.27 at 08:30, Prabu Subroto wrote:
Dear Stefan...
I didn't find "updatedb" in my cron file (/var/spool/cron/tabs).
I want to disable it. Where should I do it from ?
It is in "/etc/cron.daily/updatedb". However, disabling it is very easy: edit the file "/etc/sysconfig/locate" and change the line: RUN_UPDATEDB="yes" to "no", and that's it. By the way, updatedb - in my case - uses very little CPU, but a lot the disk. The bottleneck is the HD. And, it is not the only cron task that uses fdisk, there are some security and backup scripts that do that as well. When that happens, what I do is renice the task once or twice. -- Cheers, Carlos Robinson
participants (10)
-
Bruce Marshall
-
Carlos E. R.
-
Mitch Thompson
-
Peer Stefan
-
Peter B Van Campen
-
Prabu Subroto
-
Radu Voicu
-
Rob Sell
-
Stephen Allewell
-
Tom Emerson