Performance of jobs run from cron

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?
duncan_debordeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mdhmiConnect With a Mentor Commented:

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
 
stefan73Commented:
Hi duncan_deborde,
Do you have the job scheduled so that several jobs are running in parallel?

Cheers,

Stefan
0
 
duncan_debordeAuthor Commented:
I am only running one job at a time, either from cron or the command line.

Duncan
0
 
ahoffmannCommented:
or prepend the job by nice command in your crontab, see
  man nice
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.