Solved

Performance of jobs run from cron

Posted on 2004-03-26
4
352 Views
Last Modified: 2013-12-27
I have some long-running scheduled jobs run from cron. I find that if I run exactly the same job form the command line using nohup, I get soemthing like 20 - 25 % performance improvement. Why is the same job slower when runnign from cron, and how can I make cron as fast as nohup from the command line?
0
Comment
Question by:duncan_deborde
4 Comments
 
LVL 12

Expert Comment

by:stefan73
Comment Utility
Hi duncan_deborde,
Do you have the job scheduled so that several jobs are running in parallel?

Cheers,

Stefan
0
 

Author Comment

by:duncan_deborde
Comment Utility
I am only running one job at a time, either from cron or the command line.

Duncan
0
 
LVL 1

Accepted Solution

by:
mdhmi earned 500 total points
Comment Utility

You can adjust the priority of cron jobs by tweaking the 'nice' value in /etc/cron.d/queuedefs.  'man queuedefs' for an example.

Regards,

Mark

0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
or prepend the job by nice command in your crontab, see
  man nice
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now