Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: limit interactive login sessions?
  1996-07-30  4:00 Mohan Kannapareddy
@ 1996-07-30  4:00 ` Mike O'Connor
  1996-07-31  4:00 ` Bob Vickers
  1 sibling, 0 replies; 4+ messages in thread
From: Mike O'Connor @ 1996-07-30  4:00 UTC (permalink / raw)



In article <Pine.OSF.3.91.960730144753.14885B-100000-100000@pms167.pd9.ford.com>,
Mohan Kannapareddy  <mkannapa@pms167.pd9.ford.com> wrote:
:	I am looking for a way to limit an interactive login session
:	for say 1000s of CPU time. Basically, I would like everyone
:	whose jobs take more than 1000s CPU time to run in batch mode.
:	The current batch environment is Crays NQE.
:	How do I limit "non-root" process interactive limit? 
:	I am running the Digital UNIX version 4.0

You could give your users a PD shell like tcsh which allows an admin to
set unchangeable shell limits in the global shell inits.  You test for
an interactive shell and set the limit if interactive.
 
--
 Michael J. O'Connor                                 Internet: mjo@dojo.mi.org
 InterNIC WHOIS: MJO                                 http://www.coast.net/~mjo

"Ho! Ha-ha! Guard! Turn! Parry! Dodge! Spin! Ha! Thrust! BOING!"   -Daffy Duck



^ permalink raw reply	[flat|nested] 4+ messages in thread

* limit interactive login sessions?
@ 1996-07-30  4:00 Mohan Kannapareddy
  1996-07-30  4:00 ` Mike O'Connor
  1996-07-31  4:00 ` Bob Vickers
  0 siblings, 2 replies; 4+ messages in thread
From: Mohan Kannapareddy @ 1996-07-30  4:00 UTC (permalink / raw)




Greetings
	I am looking for a way to limit an interactive login session
	for say 1000s of CPU time. Basically, I would like everyone
	whose jobs take more than 1000s CPU time to run in batch mode.
	The current batch environment is Crays NQE.
	How do I limit "non-root" process interactive limit? 
	I am running the Digital UNIX version 4.0
	Thanks in Advance
	cheers
	Mohan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: limit interactive login sessions?
@ 1996-07-31  4:00 Robert Hermsen
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Hermsen @ 1996-07-31  4:00 UTC (permalink / raw)






Aan 30-07-96 20:52, in bericht 
<Pine.OSF.3.91.960730144753.14885B-100000-100000@pms167.pd9.for, Mohan 
Kannapareddy <mkannapa@pms167.pd9.ford.com> schreef:


    > Greetings
    >   I am looking for a way to limit an interactive login session
    >   for say 1000s of CPU time. Basically, I would like everyone
    >   whose jobs take more than 1000s CPU time to run in batch mode.
    >   The current batch environment is Crays NQE.
    >   How do I limit "non-root" process interactive limit? 
    >   I am running the Digital UNIX version 4.0
    >   Thanks in Advance
    >   cheers
    >   Mohan

We had a similar problem, trying to limit the number of concurrent users on our 
system. A practical solution was to write a shell-script, which you can 
automatically run using cron, that is checking for processes that use exessive 
amounts of CPU time, and logging or killing them. In case of killing, be sure 
to check that the killing signal doesn't result in corrupted user data. Good 
luck in programming your scripts. 
:-)




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: limit interactive login sessions?
  1996-07-30  4:00 Mohan Kannapareddy
  1996-07-30  4:00 ` Mike O'Connor
@ 1996-07-31  4:00 ` Bob Vickers
  1 sibling, 0 replies; 4+ messages in thread
From: Bob Vickers @ 1996-07-31  4:00 UTC (permalink / raw)
  To: mkannapa


Mohan Kannapareddy <mkannapa@pms167.pd9.ford.com> wrote:
>
>Greetings
>	I am looking for a way to limit an interactive login session
>	for say 1000s of CPU time. Basically, I would like everyone
>	whose jobs take more than 1000s CPU time to run in batch mode.
>	The current batch environment is Crays NQE.
>	How do I limit "non-root" process interactive limit? 
>	I am running the Digital UNIX version 4.0
>	Thanks in Advance
>	cheers
>	Mohan

You want to use the ulimit command in /etc/profile and the limit command in the
C-shell startup file (probably /etc/csh.login). See the man pages for sh, ksh,
bash, csh, tcsh ...

On OSF 3.2 the Bourne shell only lets you set soft limits, not hard limits. I
don't know whether this is still true in DUnix 4.0.

Bob
-- 
==============================================================================
Bob Vickers			R.Vickers@dcs.rhbnc.ac.uk
Department of Computer Science, Royal Holloway College, University of London
WWW:	http://www.dcs.rhbnc.ac.uk/~bobv/
Phone:	+44 1784 443691




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-07-31  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-07-31  4:00 limit interactive login sessions? Robert Hermsen
  -- strict thread matches above, loose matches on Subject: below --
1996-07-30  4:00 Mohan Kannapareddy
1996-07-30  4:00 ` Mike O'Connor
1996-07-31  4:00 ` Bob Vickers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox