SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SMP and Jobs

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
SMP and Jobs
Author Message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post SMP and Jobs Reply with quote

Hello,

Configuration: Windows NT SP6a

Compaq Server with 2 Pentium Processors

24x7 Automation Suite 3.3

Dos Batch Files and VB Applications

Problem: Running several jobs concurrently on a SMP enabled server. The jobs DO run concurrently but when run through 24x7 they do not load balance across the processors hence increasing run-time. When run individually through explorer jobs load balance across the two processors and run times stay fairly consistant.

Thank You,

John



Fri Jul 12, 2002 11:41 am View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: SMP and Jobs Reply with quote

Additional Information: Attempted to as run jobs detached because I was hoping that since it starts another instance of the scheduler that might be a workaround but the same problem accures. I just have 3 schedulers using the same processor. ;)

John

Fri Jul 12, 2002 11:51 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: SMP and Jobs Reply with quote

By default Windows binds all child processes to the CPU of the parent process (in this case the job queue processor). By default 24x7 queue processor always runs on the first CPU.

Download bindcpu utility we have for 24x7. This utility can be used to run bind child processes to different cpus.

http://www.softtreetech.com/24x7/extras/bindcpu.exe

To run your batch file schedule a command as below

BINDCPU [affinity mask] [batch file name]

For the affinity mask use 1, 2, 4, 8, etc...

To bind to the first CPU use mask 1 to bind to the second CPU use mask 2

: Additional Information: Attempted to as run jobs detached because I was
: hoping that since it starts another instance of the scheduler that might
: be a workaround but the same problem accures. I just have 3 schedulers
: using the same processor. ;)

: John

Fri Jul 12, 2002 12:09 pm View user's profile Send private message
John Natale



Joined: 13 Sep 2000
Posts: 107

Post Re: SMP and Jobs Reply with quote

Thank You! The BINDCPU utility seems to have done the trick.

It might be a nice enhancement if the scheduler itself could determine if you were running on a multi-processor system and then dynamically bind the job to the least busy processor (kind of like the least busy agent option). That would allow you to write more generic jobs since you wouldn't need to determine manually what processor the job will bind to during execution and have to modify the job if the enviroment changes.

Just a suggestion since I don't know how much code would need to be modified for such an implementation.

Once again thank you for the util! ;)

John

Fri Jul 12, 2002 1:45 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.