Solved

Linux Server Load

Posted on 2006-07-09
2
148 Views
Last Modified: 2013-12-16
Couple of questions about Linux's ability to handle tasks.

I've created a simple cron job (2KB) in Perl that reads a directory on my server every 1 minute, sorts, and deletes the old files.  Does this sort of cronjob, one that executes every minute, put a lot of strain on the server? It's a small cronjob, so my assumption is it's no sweat to the server.

If I send a batch of e-mails (no more than 20) at one time using qmail, why does it take some e-mails longer than others to arrive at their destination?  Some e-mails arrive in a few minutes -- others can take several hours.  Again, using Perl to send the e-mails.  Is this most likely a qmail issue or an issue related to the user's inbox?


Thanks in advance!
$marc
0
Comment
Question by:marcparillo
[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
2 Comments
 
LVL 22

Accepted Solution

by:
pjedmond earned 125 total points
ID: 17068783
You can get a 2KB perl script written that starts trying to calculat PI or something else to 50 million decimal places, and it will most probably bring most servers to their knees if you do not monitor what is happening. Imagine that the main process takes 1 year to complete. Every minute anotehr process starts, and by the end of the year.....you get the idea.

You need to monitor processor useage:

top

is useful. If it is using too much processing power, then use nice to reduce the amount of processing that the task takes up:

man nice

for more details. You'll then get a better idea of how much processing the task uses.

With respect to email delivery. Most emails will get delivered to the MX server responsible for the domain concerned fairly quickly. At this point, some domains will have a task that runs every say 5 minutes to collect mail and store them on a local server. Other domains may run this server every hour. You then have the user. Some have automated checks for new emails every minute, others every 30 minutes. Allow for a few transfer failures that have to be repeated, and as a result, delivery times vary.

(   (()
(`-' _\
 ''  ''

0
 
LVL 3

Author Comment

by:marcparillo
ID: 17069026
Thank you --
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 81
open source backup solution 1 45
Remote desktop Ubuntu from Windows 10 5 129
Upgraded from Debian 7 to 8.7 and got black screen 20 100
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

697 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