Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2012
    Location
    San Jose, California, United States
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Angry having lots of problems with foreground/background process in cenOS

    So short story, I have 2 scripts I want to run in parallel a certain amount of times/ also in parallel .
    This is what I have:

    for i in {1..100}; do /root/tests/sendmail.pl $num & done
    for i in {1..200}; do /root/tests/spamrbl.pl & done

    so first script is done 100 times, second 200 ...

    The problem I am having is that the script isn't running continually. It like sleeps every second or so for some reason. CPU usage goes up then down then up then down..

    The script sends messages to a client. So sendmail sends a message and spamrbl sends a spam message. What I am doign is setting alarm so the main subroutine is called over and over again for 60 seconds. I dont know if this is why it is hiccuping or if it has to do
    with the background junk.

    Any help would be use




  2. #2
    Join Date
    Dec 2011
    Posts
    71
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    2
    You're running 300 separate processes simultaneously! I've never tried that, but I expect it would be very challenging for any scheduler. On top of that, there's limited bandwidth between your machine and the mail server.

    Of course I don't know what your scripts are doing, but if each process is negotiating a separate connection to the server from the same IP address, that might possibly cause the server to take notice and throttle you. And if I understood, then each of the first 100 is sending as many messages as it can in a minute.

    You're obviously trying to simulate something or stress test some capability. What's your objective?

 

 

Similar Threads

  1. Display Problems
    By Storm in forum Linux Hardware
    Replies: 1
    Last Post: 11-08-2012, 10:45 AM
  2. IOwait problems
    By ancarius in forum Ubuntu
    Replies: 0
    Last Post: 10-18-2012, 04:17 AM
  3. Problems with 5.1 digital out on Ubuntu 12.04
    By cholten99 in forum Linux Audio / Video
    Replies: 0
    Last Post: 10-17-2012, 01:41 PM
  4. Two problems after changing the kernel
    By colt in forum General Linux
    Replies: 0
    Last Post: 02-25-2012, 09:57 PM
  5. Replies: 0
    Last Post: 12-28-2011, 09:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,597
Threads: 3,922
Posts: 9,456
Top Poster: Fred (1,486)
Welcome to our newest member, SK!P0!D

» Links



Powered by vBadvanced CMPS