RE: VMS process priorities and system processes

  • Permalink
  • submit to reddit
  • Email
  • Follow



> -----Original Message-----
> From: Albrecht Schlosser [mailto:ajs856@tiscali.de]=20
> Sent: July 15, 2005 6:55 AM
> To: Info-VAX@Mvb.Saic.Com
> Subject: VMS process priorities and system processes
>=20
> Hi,
>=20
> I'm looking for a way to give some application and server=20
> processes different=20
> priorities:
>=20
> highest:  some server processes
> high   :  some other server processes
> medium :  some communication processes
> low    :  some other processes
> lowest :  client processes
>=20
> This would result in a process priority "window" of 5=20
> different priorities.=20
> These priorities should all be higher than normal=20
> (interactive) user priorities,=20
> which are by default 4. Batch priorities are still lower=20
> (from 1 to 3).
>=20
> What I'm concerned about: if I would use priorities 5-9 (or=20
> higher), then some=20
> processes would have higher priorities than some system=20
> processes, as can be=20
> seen here (from a running OpenVMS Itanium 8.2 system):
>=20
> process name          state   username  pri/bpri image
> ------------------------------------------------------------------
> OPCOM                   HIB   SYSTEM      8/ 6   OPCOM
> ERRFMT                  HIB   SYSTEM      8/ 7   ERRFMT
> AUDIT_SERVER            HIB   AUDIT$SERV 10/ 8   AUDIT_SERVER
> TCPIP$INETACP           HIB   INTERNET   10/ 8   TCPIP$INETACP
> IPCACP                  HIB   SYSTEM     10/ 8   IPCACP
> TP_SERVER               HIB   SYSTEM     10/ 8   TPSERV
> QUEUE_MANAGER           HIB   SYSTEM     10/ 8   QMAN$QUEUE_MANAGE
> SECURITY_SERVER         HIB   SYSTEM     10/ 8   SECURITY_SERVER
> JOB_CONTROL             HIB   SYSTEM      9/ 8   JBC$JOB_CONTROL
> TCPIP$FTP_1             LEF   TCPIP$FTP  10/ 8   TCPIP$FTP_SERVER
> LATACP                  HIB   SYSTEM     14/12   LATACP
> LANACP                  HIB   SYSTEM     14/12   LANACP
> SWAPPER                 HIB   SYSTEM     16/16
>=20
> I think that realtime priorities would not be needed, but=20
> what about all these=20
> processes with (base) priorities from 6 to 8, e.g.=20
> TCPIP$INETACP, IPCACP, or=20
> TPSERV. I would prefer to give lower priorities to the=20
> application processes=20
> than to these system processes, but the "window" from 4 to 6=20
> is too small.
>=20
> What do you do WRT process priorities? Raise system process=20
> priorities? What=20
> should be done (or not be done) to keep a stable and=20
> responsive system?
>=20
> Additional background information: Of course, the high=20
> priority server processes=20
> are tested well and stable, but some other processes might=20
> come into a CPU loop=20
> or similar (e.g. once there was a process with a read timeout=20
> of 0 seconds,=20
> which came from a (missing) user input timeout value :-( ).
>=20
> In such cases a system manager should still be able to log in=20
> and suspend/stop=20
> such bad behaving processes. And network activities (many=20
> processes connect via=20
> TCPIP services) should never be blocked by other processes.
>=20
> Any suggestions what to do?
>=20
> Regards
>=20
> Albrecht
>=20

It would appear that you want to ensure some processes of the same
priority do not impact other processese e.g. process runaway stuff.=20

As others have stated, you can get into trouble by purposely mixing
priorities on specific priorities.

As a suggestion, I would suggest you consider using the OpenVMS class
scheduler to do this.

Reference:
Sysman> Help class

http://h71000.www7.hp.com/doc/732FINAL/6048/6048pro_005.html#startsubcom
mand_431
"The class scheduler provides the ability to limit the amount of CPU
time that a system's users receive by placing users in scheduling
classes. Each class is assigned a percentage of the overall system CPU
time. As the system runs, the combined set of users in a class is
limited to the percentage of CPU execution time allocated to their
class.=20

Users might get some additional CPU time if the qualifier /WINDFALL is
enabled for their scheduling class. Enabling the qualifier /WINDFALL
allows the system to give a small amount of CPU time to a scheduling
class when the scheduling class's allotted time has been depleted, but a
free CPU is available."

Regards

Kerry Main
Senior Consultant
HP Services Canada
Voice: 613-592-4660
Fax: 613-591-4477
kerryDOTmainAThpDOTcom
(remove the DOT's and AT)=20

OpenVMS - the secure, multi-site OS that just works.



0
Reply kerry.main (1446) 7/16/2005 8:12:05 PM

See related articles to this posting


Main, Kerry wrote:
> 
>>-----Original Message-----
>>From: Albrecht Schlosser
>>Sent: July 15, 2005 6:55 AM
>>To: Info-VAX@Mvb.Saic.Com
>>Subject: VMS process priorities and system processes
>>
>>Hi,
>>
>>I'm looking for a way to give some application and server 
>>processes different 
>>priorities:
>>
>>highest:  some server processes
>>high   :  some other server processes
>>medium :  some communication processes
>>low    :  some other processes
>>lowest :  client processes
>>
>>This would result in a process priority "window" of 5 
>>different priorities. 

-- snip --

>>Additional background information: Of course, the high 
>>priority server processes 
>>are tested well and stable, but some other processes might 
>>come into a CPU loop 
>>or similar (e.g. once there was a process with a read timeout 
>>of 0 seconds, 
>>which came from a (missing) user input timeout value :-( ).
>>
>>In such cases a system manager should still be able to log in 
>>and suspend/stop 
>>such bad behaving processes. And network activities (many 
>>processes connect via 
>>TCPIP services) should never be blocked by other processes.
>>
>>Any suggestions what to do?
>>
>>Regards
>>
>>Albrecht
>>
> 
> 
> It would appear that you want to ensure some processes of the same
> priority do not impact other processese e.g. process runaway stuff.

There are two goals: First of all the system should operate with reasonable 
performance for all users under normal conditions. The second goal is to 
minimize the impact of misconfigured or bad behaving ("run away") processes that 
could otherwise block critical server processes.

> As others have stated, you can get into trouble by purposely mixing
> priorities on specific priorities.

I don't really understand this sentence.

> As a suggestion, I would suggest you consider using the OpenVMS class
> scheduler to do this.
> 
> Reference:
> Sysman> Help class
> 
> http://h71000.www7.hp.com/doc/732FINAL/6048/6048pro_005.html#startsubcom
> mand_431
> "The class scheduler provides the ability to limit the amount of CPU
> time that a system's users receive by placing users in scheduling
> classes. Each class is assigned a percentage of the overall system CPU
> time. As the system runs, the combined set of users in a class is
> limited to the percentage of CPU execution time allocated to their
> class. 
> 
> Users might get some additional CPU time if the qualifier /WINDFALL is
> enabled for their scheduling class. Enabling the qualifier /WINDFALL
> allows the system to give a small amount of CPU time to a scheduling
> class when the scheduling class's allotted time has been depleted, but a
> free CPU is available."

Interesting suggestion. This didn't come to my mind, though I read about it 
somewhere some time ago. I'll check if it can be of use for us.

> Regards
> 
> Kerry Main
> Senior Consultant
> HP Services Canada
> Voice: 613-592-4660
> Fax: 613-591-4477
> kerryDOTmainAThpDOTcom
> (remove the DOT's and AT) 
> 
> OpenVMS - the secure, multi-site OS that just works.

I second this ;-)

Albrecht
0
Reply ajs856 (48) 7/17/2005 2:06:35 PM
comp.os.vms 20892 articles. 11 followers. Post

1 Replies
111 Views

Similar Articles

[PageSpeed] 34


  • Permalink
  • submit to reddit
  • Email
  • Follow


Reply:

Similar Artilces:

RE: VMS process priorities and system processes #2
> -----Original Message----- > From: Albrecht Schlosser [mailto:ajs856@tiscali.de]=20 > Sent: July 17, 2005 10:07 AM > To: Info-VAX@Mvb.Saic.Com > Subject: Re: VMS process priorities and system processes >=20 [snip..] > > As others have stated, you can get into trouble by purposely mixing > > priorities on specific priorities. >=20 > I don't really understand this sentence. >=20 Oops, my apologies - slippery fingers. The statement should have read "you can get into trouble by manually mixing priorities on specific processes." Fwiw, whe...

RE: VMS process priorities and system processes #3
> -----Original Message----- > From: Richard Maher [mailto:maher_rj@hotspamnotmail.com]=20 > Sent: July 17, 2005 3:03 PM > To: Info-VAX@Mvb.Saic.Com > Subject: Re: VMS process priorities and system processes >=20 > Hi Albrecht, >=20 > I think I'm in agreement with you regarding class schedulers=20 > (and Row Cache > memory schedulers) and all other forms of bollocks=20 > nanny-state Dr, Zhivago > "far more equitable comrade" socialist interference. (Oh here=20 > come all those > wankers from the other thread(s)) "The some of the ...

Re: VMS process priorities and system processes #4
I wonder if a product like PerfectTune from Raxco or the one from Networking Dynamics would help? [No economic interest in any] ...

Re: VMS process priorities and system processes #5
Albrecht Schlosser <ajs856@tiscali.de> wrote on 07/18/2005 03:07:10 PM: > Larry Kilgallen wrote: > > > In article <gjodbd.hms.ln@news.hus-soft.de>, Albrecht Schlosser > <ajs856@tiscali.de> writes: > > > > > >>Yes, the real problem is when one of these processes "runs away" > in a CPU loop > >>or when a user does something CPU intense with a higher priority > than one of the > >>critical server processes. We found out recently that a critical > server process > >>ran with priority 3, and u...

VMS process priorities and system processes
Hi, I'm looking for a way to give some application and server processes different priorities: highest: some server processes high : some other server processes medium : some communication processes low : some other processes lowest : client processes This would result in a process priority "window" of 5 different priorities. These priorities should all be higher than normal (interactive) user priorities, which are by default 4. Batch priorities are still lower (from 1 to 3). What I'm concerned about: if I would use priorities 5-9 (or higher), then some proce...

system process priority
Hi, I have a driver xy that builds packets with incoming data from a bus and then signal an event for each Rx packet. I have also a miniport driver that sits on the driver xy. So this is a miniport with a WDM lower edge. In the miniport driver, I create a system thread with the function PsCreateSystemThread. This thread waits for the event signaled by the driver xy, it processes the received packets and pass them to NDIS upper layer. The thread is created in the system process (hProcess is NULL when calling PsCreateSystemThread) and in the thread, I set the priority to the hig...

Re:priority of a server process
Dear all, First off thanks to all those who have helped me in the past;Hopefully I have graduated from being a newbie to a UNIX guru and can now answer others =) Heres my question:I have written a "server" process that continuously spins in real-time.The process runs as superuser but then the Solaris 8 SPARC kernel seems to gradually reduce the CPU time of my process, and other processes it spawned off. It does this till CPU time drops down to 0.0.This isnt very good because this process is supposed to constantly run without stopping. (On linux this is not the case)....

Re: Forms (printed) processing on VMS?
This is a multipart message in MIME format. --=_alternative 0059F827852574B2_= Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Jan-Erik S=F6derholm <jan-erik.soderholm@telia.com> wrote on 08/27/2008=20 12:12:33 PM: > Hi. >=20 > Many years back I used JetForm for printed form > processing on VMS (mVAX 3100/90 at the time). > This works just OK. JetForm Design was used on > a Windows PC to "design" the forms and then > JetForm Merge was run on the VMS box to "merge" > the application data wit...

Re: Complicated system, process hangs when called from cmucl.
Tim Bradshaw wrote: > (defun rd/sorted/simple (list) > ;; simple version: test is EQL, KEY is IDENTITY > (if (null list) > ;; if the list is empty just return it. This means that the code > ;; below can always assume at least one eltl, and thus avoid > ;; boundary > ;; cases. > '() > (cons (first list) > (loop with prev = (first list) > for curr in list > unless (eql curr prev) > collect curr > and do (setf prev curr))))) ...

Re: CDRECORD alters process priority and leaves it high?
From: vaxinf@chclu.chemie.uni-konstanz.de (Eberhard Heuser-Hofmann) > I never saw any improvement when I altered the priority. Nowadays all > recorders have a buffer underrun option which starts working when the > input stream is empty. This helps you to burn DVDs/CDs even on a MicroVAX > II/III. I have an older Yamaha drive which still can make a bad disc when its buffer is exhausted. Before I installed the CDRECORD image with ALTPRI, I had seen problems as an unprivileged user which went away when I was SYSTEM. (This is on an AlpSta 200 4/233, but a busy system is a busy s...

Re: Get LINUX Process ID from Call System()
On Thu, 5 Mar 2009 11:26:52 -0500, Paul Walker <walker.627@OSU.EDU> wrote: >I am using Call System to execute a SAS program on LINUX. Something like: > >data _null_; > Call System('sas programname.sas'); >run; > >It's actually a bit more complicated a call than that, but that is the >essence of it. > >What I am trying to figure out is, how can I get the process ID (issued by >the LINUX operating system) for the program I submit using Call System? > >The reason why I want to know this is the following: sometimes the system >has a h...

Re: Get LINUX Process ID from Call System() #2
SYSTASK allows this control all from the SAS job that issued the systask statement. Should be much easier. On 3/5/09, Paul Walker <walker.627@osu.edu> wrote: > I am using Call System to execute a SAS program on LINUX. Something like: > > data _null_; > Call System('sas programname.sas'); > run; > > It's actually a bit more complicated a call than that, but that is the > essence of it. > > What I am trying to figure out is, how can I get the process ID (issued by > the LINUX operating system) for the program I submit using Call System? >...

Re: Get LINUX Process ID from Call System() #3
Getting the Process ID for Linux and Unix systems is the sasCommunity.org tip of the day scheduled for March 8 (this coming Sunday). http://www.sascommunity.org/wiki/Tip_of_the_Day:March_8 Mike Raithel submitted this tip. A new tip appears each day on the Main Page as well as on: http://www.sascommunity.org/wiki/Tip_of_the_Day You can scroll thru the tips, select a random tip. The Tip of the Day page (second link in this email) has an overview of the Tip of the Day sasCommunity.org project and describes how anyone can help by reviewing or submitting tips. Regards, -donh -----Original M...

Re: SAS/IntrNet processing time
Paul, Is this something you need to do one-time to track a problem? Or is this an ongoing requirement to capture this information? For some of these steps you may be able to get the information out of the web server log for each machine. Next is the Firewall Machine where the Application Broker is running? Not sure I understand what the distinction is between the PM and the JM. I assume the JM is where the SAS/IntrNet Application Server is running. But what is the PM machine doing. One quick thought on capturing some information is that you could perhaps write a wrapper for the Applicatio...

Distingushing X process in all the system processes
Hello, How can I distinguish the X related proccesses (X server or X clients) among the all processes in the system? For example, I think the follows are some candidate to distinguish the X related processes: 1) They use specific system calls to manupulate the display. (Ex: XFlush to flush out the request buffer in X client.) 2) Specific network port number(or UNIX domain sockets) is used to communicate between X server and X clients. 3) They refer specific environmental variables such as DISPLAY. What do you think of this? Any ideas? On 13 Dec 2006 00...

system waiting for launched process AND forked processes
Hello, We have written a small client-server program in c/socket. To launch the server, we call the program which internally fork. The original process returns immediately but the forked process stays alive and listen to incoming socket connection. It's all fine when running this from bash (we're on ubuntu) but when using ruby (with either system, backtick or #x) it's blocking until both the original process and the forked process terminate. Is it what we should expect when calling system? If yes, how could we work around that? Thanks -- Posted via http://www.ruby-forum.com/. ...

system call starting next process before first process is finished.
Hello, I have a c++ program which has infinite loop. Inside the loop I have some code which gets the data file when it arrives it starts a process using system call. When there are two files available, it starts two processes with two files at one given time, without waiting first to finish. It works fine but I want to wait on the the system call. i.e I want the system to call to finish first process and then it should continue and if there is second file then it should start second process by using system call. Please help me in fisxing this problem Thanks in advance Ravi Bhave +++++++++++...

Re: re: agile processes
> Daniwrote: Maar waarom noem jezelf dan agile_tester?? :roll: Omdat een tester in een agile methode een toegevoegde waarde heeft: - waar vind je een klant die bijzonder toegewijd is aan het project, - en die er veel tijd voor vrij kan maken - en die in staat is zelfstandig geautomatiseerde acceptatietests op te zetten - en die in staat is om load, performance, stress en benchmark tests uit te voeren? Die klant vind je zelden! Daarnaast is een tester: [list:9380fcaae2]- iemand die geacht wordt een sceptische blik op het project te hebben (en daarin het project met beide benen op de gron...

Question: processing HTML, re-write default processing action of many tags
I know you could use the def start_a ..... def end_a ..... to process the <a href=...> anchor </a> tags, but is there a default method for processing ALL tags? If I just want change some parts of the hyperlink and want to keep other parts of the HTML could I just print them out? There should be such a method. Can't find it... Thank you. Hubert Hung-Hsien Chang <hubert@cs.nyu.edu> wrote: > I know you could use the > > > def start_a > .... > > def end_a > .... > > to process the <a href=...> anchor </a> tags, but is t...

RE: [ace-bugs] inability of task in one process to issue a signal to another process
Hi Howard, You might be experiencing some side-effects of the old Linux threads library, in which threads were effectively just cloned processes with shared-memory. As such because a different thread is actually a different process you could have trouble with signals - this usually manifests itself in the fact that only the "thread" that spawned the child process will receive SIGCHLD from it, but it could manifest itself in some other ways. On the other hand if you are using the new Linux native threads library then this will not be the case. HTH Cheers, Russell....

RE: [ace-bugs] inability of task in one process to issue a signal to another process #2
This is a multi-part message in MIME format. ------_=_NextPart_001_01C5684A.A929300D Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable After much investigation, I have discovered that the problem is with how the process is spawned. My code is using the ACE_Sig_Guard class prior to calling spawn, in order to protect the call to fork. Unfortunately, the child process is inheriting the process mask put in place by the ACE_Sig_Guard. Therefore, the child process, even though it installs its own signal handler, never sees the signal...

System processes
IS there anyway to stop matlab.exe and matlab server from loading when I start windows?? It takes alot of ram and hardisk activity, and slows my system down a bit. Thanks Hi rudran, take alook here: Cem Girit, "Why Matlab.exe is always running?" #, 12 Oct 2005 11:25 am </WebX?14@@.ef17f60> Regards, Stefan ...

Re: Re: error processing variables
>Your problem is that the def statement reassignes the name "toHPU" to a >function instead of a string. So when the code runs, you're passing a >function object to s.copy2. So...how do fix it? >> import shutil >> >> #variables >> s = shutil >> >> toHPU = "/etc/sysconfig/network/toHPU.wifi" >> wlan = "/etc/sysconfig/network/ifcfg-wlan-id-00:0e:38:88:ba:6d" >> toAnyWifi = "/etc/sysconfig/network/toAny.wifi" >> wired = "/etc/sysconfig/network/ifcfg-eth-id-00:0b:db:1b:e3:88" ...

RE: RE: Open running processes
[DeRRudi] |=20>=20Tim=20Goldenwrote: |=20 |=20>=20Assuming=20that=20you're=20answering=20my=20question:=20why=20use=20= mmap=20and |=20>=20not=20just=20two=20events?=20I=20understand=20what=20your=20overal= l=20plan=20is, |=20>=20and=20it=20looks=20like=20you=20have=20a=20way=20to=20solve=20it.=20= It=20just=20seemed |=20>=20that=20you=20might=20be=20able=20to=20achieve=20the=20same=20thing= =20with=20two |=20>=20events:=20one=20for=20maximize=20and=20one=20for=20minimize.=20Why= =20would |=20>=20this=20be=20better?=20Well,=20only=20because=20it=20seems=20to=20m= e=20s...