?
Solved

Cpu  "runaways"

Posted on 2002-06-25
4
Medium Priority
?
315 Views
Last Modified: 2010-04-20
Since changing from SCO-UNIX to Linux, we noticed that it is easier to produce cpu "runaways". For example, if you start a telnet session to the server, then start the shell utility "top", then ungracefully exit top (by killing the telnet session)...the "top" process continues to run but in what appears to be a race condition (uses all available cpu). I can do this (runaway) also with our propietary app, but some apps/tools do not do this , like netconfig... The "runaways" appear to be pleasent ones, just consiming cpu as it is available (look nasty, but dont seem to load down the system).
0
Comment
Question by:medent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7108696
> .. look nasty, but dont seem to load down the system
And what is the question?

Probably your shell is configured to hangup background processes, see:
  bash: huponexit
  csh:  hup, nohup
  ksh:  nohup
  sh:   N/A :-)
  zsh:  NO_HUP
0
 

Author Comment

by:medent
ID: 7110249
That sure sounds like the answer, but it did not work.  I tried adding shopt -s huponexit to /etc/bashrc, and verified it was really on before starting the test app (netconfig). Perhaps huponexit is broke in bash?
Additional Info:
This problem I am having does not effect the root user, regardless of the shopt settings, only regular users and when I su to root (from a regular user).
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 900 total points
ID: 7111753
does root use bash?
do you do a  su root  or  su - root ?
0
 

Author Comment

by:medent
ID: 7113655
The problem was caused by having "trap" statement in the .bash_profile. The trap was part of a fu-fu to get an extra password to appear when a user was detected as a dialup modem. I will seek an alternative, and post a seperate question. I learned some valuable info from your input, Thank You .
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question