Solved

Performance of jobs run from cron

Posted on 2004-03-26
4
364 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
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.

617 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