Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
At 4:00 PM each day my hard drive becomes very active. I assume it is doing some optimization. The question is where is this time set?? I'd like to change ...
  1. #1
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105

    4:00 PM question

    At 4:00 PM each day my hard drive becomes very active. I assume it is doing some optimization. The question is where is this time set??

    I'd like to change it to a more convenient time

    I've looked at cron as root (GUI) and I can't see it scheduled there. There is just a small performance hit during the process which last for 2-5 minutes, but it is annoying

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Location
    UK
    Posts
    1
    Could it be your Anti Virus running a scheduled scan?

  3. #3
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by Dodge_G1
    Could it be your Anti Virus running a scheduled scan?

    Do I have a anti-Virus?? I never installed one. Is there one installed by default?

  4. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by Dodge_G1
    Could it be your Anti Virus running a scheduled scan?

    Do I have a anti-Virus?? I never installed one. Is there one installed by default?

  5. #5
    Linux Engineer oldcpu's Avatar
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    1,142

    I think most likely a cron

    Quote Originally Posted by gogalthorp
    Do I have a anti-Virus?? I never installed one. Is there one installed by default?
    No such thing (by default).

    I know you stated you looked, but are you certain its not a cron job?

  6. #6
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by oldcpu
    No such thing (by default).

    I know you stated you looked, but are you certain its not a cron job?

    Does not seem to be. Went to the root GUI and looked in the list There was only one entry and that for root. If memory serves (not root now) it was execute some cron command every 5 minutes. That was it no other for any other user. It is possible that this job is triggering what ever is happening. But the actuall schedule must be set somewhere else. The first time I installed Suse it happened at 11:00PM ( a much better time). After I reinstalled it changed to 4:00PM

    This is an annoyance rather then a problem but I'd sure like to know what is happening. And I would love to change the time.

  7. #7
    Linux Engineer oldcpu's Avatar
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    1,142
    Quote Originally Posted by gogalthorp
    Does not seem to be. Went to the root GUI and looked in the list There was only one entry and that for root. If memory serves (not root now) it was execute some cron command every 5 minutes.
    Did you look under /etc/cron.daily, to see if there is anything there that is enabled?

    You could also examine /etc/crontab.

    And you are certain this only occurs at 4pm, and not at other times as well?

  8. #8
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by oldcpu
    Did you look under /etc/cron.daily, to see if there is anything there that is enabled?

    You could also examine /etc/crontab.

    And you are certain this only occurs at 4pm, and not at other times as well?
    There are a fair number of scripts.

    Code:
    beagle-crawl-system       suse.de-check-battery  suse.de-update-preload
    logrotate                 suse.de-clean-core     suse-do_mandb
    suse-clean_catman         suse.de-clean-tmp      suse-tetex
    suse.de-backup-rc.config  suse.de-cron-local
    suse.de-backup-rpmdb      suse.de-updatedb
    crontab file: This is more or less what I saw in the Kcrone window as root It is set to run daily every 15 minutes

    Code:
    SHELL=/bin/sh
    PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
    MAILTO=root
    #
    # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
    #
    -*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-cron$

    Ok it is most likely the beagle-crawl-system is the major offender here. But that still begs the question of why at 4:00 PM does the daily cron tasks run and how to change this time???????

    I could remove beagle I have really never used it. Still.....

    here are all the cron.xxx dir

    Code:
    cron.daily:
    beagle-crawl-system       suse.de-check-battery  suse.de-update-preload
    logrotate                 suse.de-clean-core     suse-do_mandb
    suse-clean_catman         suse.de-clean-tmp      suse-tetex
    suse.de-backup-rc.config  suse.de-cron-local
    suse.de-backup-rpmdb      suse.de-updatedb
    
    cron.hourly:
    mcelog
    
    cron.monthly:
    
    cron.weekly:
    wwwoffle

  9. #9
    Linux Engineer oldcpu's Avatar
    Join Date
    Aug 2005
    Location
    Europe
    Posts
    1,142
    Quote Originally Posted by gogalthorp
    Code:
    SHELL=/bin/sh
    PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin
    MAILTO=root
    #
    # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly
    #
    -*/15 * * * *   root  test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-cron$
    I'm definitely a beginner/newbie when it comes to cron jobs, ... but it looks to me that you could look at the code in /usr/lib/cron/run-crons and maybe also in /usr/lib/cron/run-cron$ to see if you can get any hints.

  10. #10
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Quote Originally Posted by oldcpu
    I'm definitely a beginner/newbie when it comes to cron jobs, ... but it looks to me that you could look at the code in /usr/lib/cron/run-crons and maybe also in /usr/lib/cron/run-cron$ to see if you can get any hints.

    There is no /usr/lib/cron/run-cron$

    But here is the part of /usr/lib/cron/run-crons script that I beleve is the control for daily

    Code:
              cron.daily) 
    			# if DAILY_TIME set, run only at a fixed time of day
    			if [ "$DAILY_TIME" != "" ] ; then
    			  DAILY_TIME_NEW="`echo $DAILY_TIME | sed s,:,, | sed s,^0,, `" 
                              if [ "$DAILY_TIME_NEW" -gt "2359" ] ; then
                                echo "wrong time format in /etc/sysconfig/cron DAILY_TIME, value is $DAILY_TIME" | logger
    			  fi  
                              NOW_H=`date +%H%M`
                                if [ $(($DAILY_TIME_NEW - 15)) -lt "$NOW_H" ] && [ $(($DAILY_TIME_NEW  + 15)) -gt "$NOW_H" ]; then
                                  TIME=""
                                else
    			      # take care of MAX_NOT_RUN, default is 7 days
    			      if [ "$MAX_NOT_RUN" != "0" ] ; then
                                    TIME="-cmin +$((1440*$MAX_NOT_RUN)) -or -cmin $((1440*$MAX_NOT_RUN))"
    			      else
    				TIME="-cmin +$MAX_NOT_RUN_FORCE -or -cmin $MAX_NOT_RUN_FORCE" 
    			      fi                               
                                fi 
     
    			# run as usual   
    			else
    			  TIME="-cmin +1440 -or -cmin 1440" 
    			fi ;;

    Looks like DAILY_TIME is an "enviromental" variable that holds the time to do the daily cron job

    Ok now I get fuzzy... how do you set a variable and more important how to set it in a script that will run at boot/session start???
    typeing echo $DAILY_TIME returns nothing
    SET DAILY_TIME = 21:00 or "21:00" does not seem to "set" anything

    also don't really understand this line
    TIME="-cmin +1440 -or -cmin 1440"

    don't know where cmin comes from???

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...