APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > idleout cpu usage ––>Re: idle timeout
Printer Friendly Version




News Group Posts

idleout cpu usage




Subject: Re: idle timeout
References: <a6412k$1011@imsp212.netvigator.com>
<3C87E2E6.4120@computron.com>
<60bd4c6b.0203081827.72740033@posting.google.com> From: spcecdt@deeptht.armory.com (John DuBois) Date: 09 Mar 2002 11:15:51 GMT In article <60bd4c6b.0203081827.72740033@posting.google.com>, Brian K. White <brian@aljex.com> wrote: >So what does that do about my users who's desktops go away on >power-save, or who's flaky net connections break, thus leaving their >process running without a terminal, spinning like mad consuming 100% >cpu for 4 days until enough of these things accumulate that they call >me because the server is too slow? You can probably get that under control by using 'ulimit -t' (see the ksh man page) in the appropriate places. I went through a year's worth of process accounting records and found the processes that consumed the most CPU time that were started from a shell login by a regular user and that weren't clearly processes that had gone into spin loops, and then set a soft CPU time limit that is high enough that given this history, it's unlikely that any process will ever be killed for legitimate CPU consumption. It turned out that 300 seconds was high enough; the users here mostly run lightweight apps. I left the hard CPU time limit unlimited, so I can remove the time limit from my X sessions for the sake of Netscape and such. This means that a process that goes into a spin loop dies after 5 minutes.



>and/or an idleout program that tries to be
>nicer than "kill -9 you all" ideally with a config file that tells it
>what signals to try in what order and and with what timeout and retry
>values, and ideally with the ability to set different actions for
>different programs.

Try ftp://deepthought.armory.com/pub/admin/nidleout
Doesn't do everything you want, but is nicer about killing and far more
configurable than idleout.

        John
-- 
John DuBois  spcecdt@armory.com  KC6QKZ/AE  http://www.armory.com/~spcecdt/
 

If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



ad

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - CPU
       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here