LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-02-2012, 03:07 AM   #1
yinonby
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Rep: Reputation: Disabled
can ps command get stuck?


Hello,
I have heard that in some scenario "ps -ef" can get stuck.
If this is true, then:
{
Why exactly does this happen?
or
How can I simulate it?
}

10x

Last edited by yinonby; 01-02-2012 at 07:38 AM.
 
Old 01-02-2012, 11:50 AM   #2
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
I have run 'ps -ef' 'ps -e' 'ps aux' n number of times without the command getting stuck. I think I have been running this command since the past 3 years or so. Do not believe _everything_ you hear. As far as stimulation is concerned I believe no software is perfect and so passing some arguments can crash ps. But then you would need to go through the man pages, the local docs (for your version of ps) and finally the source code.
BTW welcome to LQ.
 
Old 01-03-2012, 06:14 AM   #3
yinonby
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks you, honeybadger, for your response. However, there is some evidance online, of people who got this scenario:
http://serverfault.com/questions/172...s-aux-is-stuck
http://serverfault.com/questions/257...-ef-gets-stuck
http://unix.stackexchange.com/questi...-ef-gets-stuck

So I was hoping someone here knows this really-rare-issue.
 
Old 01-03-2012, 07:55 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
The links that you have mentioned, from there you could see the Load average for the system is too high. There are possible reasons when system Load average is high the console may response slowly when you execute commands
 
Old 01-03-2012, 08:31 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...and to simulate that and more there's a stand-alone binary called "stress". Real easy.
 
Old 01-11-2012, 08:43 AM   #6
yinonby
LQ Newbie
 
Registered: Jan 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you for your notes.
Indeed the average load was high, but the ps command was not delayed but rather stuck.
I will try the "stress" and let you know whether it did it.
 
Old 01-19-2012, 07:37 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
]$ locate stress

first item searching Freecode (The Site Formerly Known As Freshmeat) http://freecode.com/search?q=stress&submit=Search
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i simulate the cp command by modifying this C code? (C people i want help!) linuxFreshMan Programming 2 11-24-2009 10:36 PM
how can i simulate the cp command by modifying this C code? (C people i want help!) linuxFreshMan Linux - General 1 11-24-2009 01:35 PM
How to simulate scp command using ssh? vickylife Linux - Newbie 3 11-18-2008 05:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration