?
Solved

Performance of jobs run from cron

Posted on 2004-03-26
4
Medium Priority
?
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 10687934
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
ID: 10688505
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 1500 total points
ID: 10689714

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
ID: 10696615
or prepend the job by nice command in your crontab, see
  man nice
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

719 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