LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-27-2012, 12:57 PM   #1
Ed Bascom
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
limiting simultaneous batch streams on Linux server


Linux does not provide a way to constrain the number of concurrent batch processes (jobs submitted via "at"). I need to limit these processes because our interactive booking environment is being impacted when too many jobs are running simultaneously in batch.
Is there and add-on solution someone can recommend to do this on RHEL 5.6?
 
Old 03-27-2012, 02:19 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Actually if you use "batch" rather than "at" it will limit jobs to run only to the level of CPU load (.8 by default) specified by atd.

You can change the level with atd -l.

Type "man at" and "man atd" for more details.
 
Old 03-27-2012, 03:19 PM   #3
Ed Bascom
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks, but CPU load is not my issue - it is file contention when too many batch processes are run at the same time.
I need to limit the number of batch streams that are open.
 
Old 03-27-2012, 08:34 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Maybe this http://vicerveza.homeunix.net/~viric/soft/ts/
Quote:
Control how many jobs may run at once in any queue (taking profit of multicores).
 
1 members found this post helpful.
Old 03-28-2012, 07:07 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are the at jobs being run all using the same script/binary? If it is a script you could modify the script itself to defer its run if it sees so many other copies already running. If it is a binary you could write a wrapper script to do that. It sounds to me as if your issue is not the number of at jobs per se but rather the number of copies of the same program running kicked off by at.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software audio mixing (simultaneous audio streams) in Slackware? malloc Slackware 19 05-11-2011 09:25 PM
server lag with high number of simultaneous connections ljohnny Red Hat 6 05-16-2007 12:15 PM
How many simultaneous hits could my server sustain? linuxhippy Slackware 5 03-16-2006 05:11 PM
How do I limit and monitor simultaneous downloads from a download server farmerjoe Programming 4 06-09-2005 10:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration