- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Login with a high priority
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 06:59 PM
04-20-2005 06:59 PM
Login with a high priority
Is there an (undocumented) feature to allow high priority login (t.i. with a process priority of e.g. 16) ? And I don't mean changing the sysuaf prio.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:07 PM
04-20-2005 07:07 PM
Re: Login with a high priority
how about AMDS/Availability manager - no login required to stop looping processes or just lower their priority or suspend them.
And force a crash, so you could analyse the reason for the loop ;-)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:17 PM
04-20-2005 07:17 PM
Re: Login with a high priority
Yes it's a solution but :
1) AMDS could not lower the priority because the processes wasn't listening
2) I like to investigate before I crash the system
No, I would like a high pri login.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:44 PM
04-20-2005 07:44 PM
Re: Login with a high priority
Can you modify your priorty in the UAF (to 16) then drop it
manually once you login? The login process starts out with
a higher priority then drops it to the UAF value later in
the login process.
At least this way you should always be able to login in a
reasonable time then investigate the other high priority
process.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:45 PM
04-20-2005 07:45 PM
Re: Login with a high priority
What we use over here is what we call the "noodrem" (emergency break in English).
We define a dedicated LAT service on each node bound to a LAT port.
We then start a detached process (with prio 20) that listens on the LAT port.
Whenever someone tries to connect to the service, the process prompts for a password and if valid lets the user in, and goes into dialogue with her/him, executing whatever DCL command is given.
Using this mechanism we were able to intervene even on systems that had CPU eating (application) processes at prio 15.
Hope this helps,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:52 PM
04-20-2005 07:52 PM
Re: Login with a high priority
I thought of that. But what about detached processes that don't execute login.com ?
I also dont't want to be in high prio during login unless I need it.
No. Now you can do username/cli/disk/table/new_pass (help login). I hoped on something like /prio= to be undocumented.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:58 PM
04-20-2005 07:58 PM
Re: Login with a high priority
Another solution could be that a system parameter indicated the priority of a console login. Of course this would be no solution for work stations.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 07:59 PM
04-20-2005 07:59 PM
Re: Login with a high priority
Maybe I have misunderstood your problem?
You encounter a need to login because of a looping process.
You attempt an interactive login but it takes too long
because of this looping process.
You want to be able to login quickly to investigate the
looping process.
If you have "special" username for this purpose with a priority
of 16 in the UAF then you will be able to do this.
I don't understand the reference to detached processes and
the use of login.com
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 08:00 PM
04-20-2005 08:00 PM
Re: Login with a high priority
Since a new process is considered to reside in state COMO (outswapped), SWAPPER is involved in creating the process - and SWAPPER runs in prio 16....
Nor would it help much if the runaway process runs on even higher priority. You would face the same problem, if not worse, since SWAPPER wouldn't even be able to swap the process in!
The _only_ solution would be a redesign of the whole login process, bypassing swapper. I don't think THAT is a reasonable solution.
As an alternative, you _could_ think of a (high priority), memory resident listener process you could connect to, that allows you to do the things you need to do (login, for instance).
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 08:03 PM
04-20-2005 08:03 PM
Re: Login with a high priority
LOGINOUT is started using a base priority of DEFPRI (SYSGEN parameter) - hardcoded.
You could suppress execution of your LOGIN.COM using /NOCOMMAND (i.e. enter Username: wim/NOCOMMAND) - saving some time.
Or have an 'emergency' account with higher base prio in SYSUAF.
Maybe consider to play with Loginout callouts ?
If AMDS can't reduce the priority of the looping process, then nothing else can. As indicated by STOP/ID failing to stop your looping process as well.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 08:18 PM
04-20-2005 08:18 PM
Re: Login with a high priority
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 08:47 PM
04-20-2005 08:47 PM
Re: Login with a high priority
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 10:08 PM
04-20-2005 10:08 PM
Re: Login with a high priority
And with DCL it is difficult to generate a real cpu loop that makes login slow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:00 PM
04-20-2005 11:00 PM
Re: Login with a high priority
rlogin doesn't use the prio out of the sysuaf.
What observation makes you say this ?
And with DCL it is difficult to generate a real cpu loop that makes login slow
Just set the base priority of your DCL loop process at real-time prioriy (16 or higher), this will prevent any process getting scheduled at a lower prio. Make sure you do this on a test system and then try to reduce the prio with AMDS.
WARNING: a looping process at prio 16 or higher will prevent ALL other processes from getting scheduled. It will effectively make your system appear 'hung', driver activity, cluster-connections etc. continue to work. As should AMDS !
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:17 PM
04-20-2005 11:17 PM
Re: Login with a high priority
I did a show proc after login. All sessions via decnet and lat have 20. rlogin only 4.
I tried jobs at prio 18 with a search command in a loop. After 15 batch jobs it was still not as slow as I was looking for.
But I left it running for some time and eventually it was very slow. But before that, I could do logins without any problem (taking 30 sec = 3 minuts).
There was no big difference in login time between a user with base prio 20 and 4 (in sysuaf).
I tested on an alpha 500 with VMS 7.3 and 8.2.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:21 PM
04-20-2005 11:21 PM
Re: Login with a high priority
In a decterm session
$ create cpuhog.com
$loop: goto loop
^Z
$ set process/priority=12
$ @cpuhog
This will slow it down
(I have tried this. To exit just ^C)
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:23 PM
04-20-2005 11:23 PM
Re: Login with a high priority
so RLOGIN does not seem to go through SYSUAF.
If you use SEARCH to produce a 'loop', your process will do enough IOs and wait at LEF to get other processes a chance to run. If you would just program a DCL loop like:
$ loop:
$ GOTO loop
at prio 16 or higher, you would lock out your system. But it would be a good test case for AMDS ;-)
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:26 PM
04-20-2005 11:26 PM
Re: Login with a high priority
$L1: GOTO L1
at priority 18
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2005 11:45 PM
04-20-2005 11:45 PM
Re: Login with a high priority
Prio=4 process didn't get 1 cycle.
Prio=20 sessions did (of course).
The reset button of the 500 stopped functioning.
AMDS was able to lower the priority.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 01:20 AM
04-21-2005 01:20 AM
Re: Login with a high priority
btw... low priority processes can significantly reduce the login time for high priority processes if they happen to be holding a bucket lock on sysuaf or rightlist.
Typically you'd see this with batch jobs calling vmsmail.
Some high priority looping jobs may pre-empt the CPU fom a batch job holding a critical lock giving it no opportunity to release it again, hurting a third process trying to login.
RMS bucket locks are transitory, and will come and go as needed without process control, but it does require cpu cycles to make them go.
Sysgen param pixscan tries to address this, giving low priority jobs an occasional priority boost.
If such lock is slowing you down (but admittedly it does not sound applicable here), then global buffers on sysuaf/rightslist may help because as of 7.3-2 ? those will also enable concurrent reads on buckets!
Maybe I should point out that newadditional benefit in: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=861351
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 05:09 AM
04-21-2005 05:09 AM
Re: Login with a high priority
Lawrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 05:36 AM
04-21-2005 05:36 AM
Re: Login with a high priority
Lawrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2005 06:39 PM
04-21-2005 06:39 PM
Re: Login with a high priority
Any login to the same username would then not have to to any process creation.
If you tried this and it still took a long time to login, it would point to a delay in login authorisation, possibly due to locks on sysuaf and rightslist (as mentioned by someone else)
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2005 06:47 AM
04-25-2005 06:47 AM
Re: Login with a high priority
Alternatives:
1. Keep a session open for the purpose of being able to change priority of a CPU runaway. Have a symbol defined to increase priority of the session.
User must have ALTPRI priv.
Still may not be able to get in even without having to login.
2. Keep a session open with a high priority exclusively for the purpose of being able to lower priority of a CPU runaway.
Lawrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2005 07:05 AM
04-25-2005 07:05 AM
Re: Login with a high priority
Reminds me a bit about the system management training I attended around 1986. The teacher said that one could set his priority to 16 and then he would 'always' get the CPU. Well, didn't take too long until all students were running at priority 31. And it took even a shorter time until the teacher had to reboot the poor VAX-11/730 :-(