Is orphan process handling by Solaris os and Linux os same?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Is orphan process handling by Solaris os and Linux os same?
# 1  
Old 05-08-2017
Is orphan process handling by Solaris os and Linux os same?

In solaris, orphan process is put to sleep mode and does not consume any CPU resources. In Linux, orphan process is kept in running state consuming all CPU and Ram resources. Is it the case? Is there a difference on how these operating systems will handle orphan processes?

The route cause of asking this question is, we were having one application on solaris , we migrated that on RHEL 6. On solaris, that application was running perfectly fine even if after orphan processes generated. After migrated it on Linux, it is started freezing, giving performance issues, consuming more RAM and CPU utilisation is 99%. It did not happened on solaris.

Last edited by rbatte1; 05-08-2017 at 04:40 AM.. Reason: More clarification. rbatte1 removed needless font & colour formatting
# 2  
Old 05-08-2017
Moderator's Comments:
Mod Comment This thread has been moved from the What is on Your Mind? forum to a technical forum.

You state in your post that Solaris systems and Linux systems behave completely differently when a parent process terminates without waiting for its children to terminate and then ask if they behave differently when a parent process terminates without waiting for its children to terminate??? Although I find it hard to believe that many of the differences that you stated as facts are true; if you believe that those facts are true, I do not understand why you are asking the question.

Is this a homework assignment?

What code are you running that exhibits the differences you are seeing on Solaris systems and Linux systems?

What Solaris release(s) are you using?

What Linux distribution(s) are you using? Which version(s) of those Linux distribution(s) are you using?
# 3  
Old 05-08-2017
Thanks for your response.
In Linux (RHEL 6), when a process becomes orphan, it consumes all the CPU resources. No resources are left for the application to run.

In Solaris (10), when a process becomes orphan, we do not see any load on the server. We have no issues to run the application.

If possible, I would like to understand why the same orphan process consumes more resources in Linux and not in solaris.
# 4  
Old 05-08-2017
Dispite different implementations, Solaris 10 and RHEL 6 should behave the same in principal:
if a parent process terminates, the child process is hooked to pid 1 (init). It depends on the client process' code (application) what happens then.
So you should examine your application with tools like strace.
This User Gave Thanks to MadeInGermany For This Post:
# 5  
Old 05-08-2017
We have applied strace command, found some error on recv() system call, that is failing returning -1 , error "temporarily resources are unavailable "
# 6  
Old 05-08-2017
Well, that's a start, what were they reading from?
# 7  
Old 05-09-2017
The same application in solaris is migrated to Linux. We have not done anything more. except this migration. Then also same application performance is not good in Linux. It was good in solaris. I would like to know what is the reason.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Handling inode on solaris 9

Dear all, yesterday I had a big problem on Solaris 9. I cannot write anymore on /var. I checked the inode usage, and I see that for /var was at 100% with ifree = 0. I deleted some unused files (like old log on /var/tmp and /var/log), now I have ifree=19641 and 99% iused: root@ciy01 # df -F ufs... (12 Replies)
Discussion started by: Lord Spectre
12 Replies

2. UNIX for Advanced & Expert Users

cronjobs orphan processes

Our cron job stats its started on Oct20 % ps -ef | grep cron root 1442044 1 0 Oct 20 - 25:23 /usr/sbin/cron All the below jobs aixmf,aixgh are triggered from cron only. user pid ppid date time cmd gaix 1581282 1 35 16:33:01 - 20:56... (1 Reply)
Discussion started by: karnan
1 Replies

3. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

4. Linux

Cron ORPHAN (no passwd entry)

I am using the standard vixie-cron am seeing the following my logs : crond: (username) ORPHAN (no passwd entry) Ordinarily this is a simple matter, there is no corresponding user, but I am using central authentication and the username does exist and is usable via the standard nsswitch mechanism, so... (2 Replies)
Discussion started by: humbletech99
2 Replies

5. UNIX for Dummies Questions & Answers

Socket Handling Differences Between Linux & Unix?

Sorry if this is a stupid question! I have been developing a Java application that I am deploying on both Unix and Linux servers, which uses lots of socket handling. When the server side connection is dropped by the server un-gracefully I have been seeing close_waits and null connections. ... (0 Replies)
Discussion started by: Vinnie
0 Replies

6. UNIX for Advanced & Expert Users

how to remove db2 orphan processes

Hi Guys, I'm working on a AIX 5.3 environment and I've been quite a few times in a situation where we can remove db2 orphan processes therefore our only alternative has been to reboot the entire server. Now I wonder is there is any other possible way that we can use to remove those processes... (5 Replies)
Discussion started by: hariza
5 Replies

7. Programming

handling abnormal process termination

hi i m writin a program in which i keep track of all the child processes the program has generated and if a child process has an abnormal termination i need to do certain task related to that child process. for handlin child process i used waitpid: temp_cpid=waitpid(-1,&stat,WUNTRACED); ... (4 Replies)
Discussion started by: mridula
4 Replies

8. Programming

Linux g++ 2.95.3 exception handling

Anybody happen to be familiar with any deficiencies with g++ 2.95.3 regarding exception handling, specifically in multi-threaded / multi-module (shared library) based applications? I'm seeing behavior where thrown exceptions are not caught, but basically ignored causing the application to... (0 Replies)
Discussion started by: earl
0 Replies

9. HP-UX

Inter Process File Handling Problem

Hi All, i am running a oracle procedure which writes a file . The same file is picked up by another script which runs in a cron after every 5 minutes. Now the problem is that sometimes my script picks up a file while the procedure is still writing data in the file. is there is any way i... (4 Replies)
Discussion started by: saurabhjain
4 Replies

10. Shell Programming and Scripting

Script to kill stranded/orphan process by users.

I have customers on our AIX/UNIX node startup a process that becomes stranded or orphaned and must be killed. I would like to create a script to check for these orphan processes and kill them. I can have cron run this job. The customers process will run and after 24 hours time out leaving an... (4 Replies)
Discussion started by: rjohnson
4 Replies
Login or Register to Ask a Question