Process with S state(Interruptable) in RHEL and gives Advertise error after restarting/Killing the p


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Process with S state(Interruptable) in RHEL and gives Advertise error after restarting/Killing the p
# 1  
Old 11-02-2017
Process with S state(Interruptable) in RHEL and gives Advertise error after restarting/Killing the p

Hello,
In our Production system one process is in S state(interruptible)and after killing and restarting the process gives 'advertise error'.
This error goes after rebooting the Server.
I have RHEL 5.9 (tikanga) OS in our server.
We tried debugging the issue with the help of 'strace' command line but I am not able to understand the output file generated by the Strace.
I have attached the output file of Strace command
Can somebody help me out.
# 2  
Old 11-02-2017
Your attachment does not show the output from the 'Strace' command.

However, The interruptable S state means it is waiting on a resource that is not currently available and/or has been put to sleep by the scheduler for a set waiting time.

I attach a very brief and widely available RedHat document on this subject.

Do post back any further questions.

Last edited by hicksd8; 11-03-2017 at 09:47 AM..
# 3  
Old 11-03-2017
Hello Hicksd8,
The output is from Strace command only,
Command is: strace -o <out_file> /(path of exe)
I read the article you attached, but in our condition every time we running the process it is giving me "Advertise error".

# 4  
Old 11-03-2017
"Advertise Error" is a RFS (Receive Flow Steering) specific error but am I right in saying that you only get this error when you kill the process and then try to restart it. The problem is probably that the new process is trying to advertise a resource still advertised by the killed process.

The question is why the uninterruptable S state process is worrying you in the first place. What is happening that prompts you to mess with it? Why don't you just leave it alone?

Reference: Search for "Linux error 68 EADV"
# 5  
Old 11-03-2017
Quote:
Originally Posted by hicksd8
"Advertise Error" is a RFS (Receive Flow Steering) specific error but am I right in saying that you only get this error when you kill the process and then try to restart it. The problem is probably that the new process is trying to advertise a resource still advertised by the killed process.

The question is why the uninterruptable S state process is worrying you in the first place. What is happening that prompts you to mess with it? Why don't you just leave it alone?

Reference: Search for "Linux error 68 EADV"
Yes you got it right, every time I am starting the Process it is giving me "Advertise Error", and the process is not behaving the way it supposed to, until the reboot of Server.
So I had to check the state of the process and I got this. Living with it is kind of difficult.
So can you please tell me how to get rid of the advertise error.

Thanks

Last edited by Rohits; 11-03-2017 at 07:14 AM..
# 6  
Old 11-03-2017
The point is that when the system reboots it starts this process (for whatever reason, do you know what this process is trying to do?) and the CPU says that it is calling for a resource that is not available (which could be caused by a number of things, eg, misconfiguration). The process is not waiting on an interrupt (eg, I/O or network packet arrival or keyboard input) so the CPU puts the process to sleep indefinitely and will wake it up itself when it is possible to run the process (ie, the resource has become available). If the resource never becomes available, then the process will permanently sleep until the system is shutdown.

So to get rid of the "advertise error" don't kill the original process and don't try to restart the process. When you restart the process the CPU says that you want the same resource that this process (now killed but still on the CPU queue) is waiting for. Don't "advertise" for that resource because I haven't got it available and, if I did, there's another process waiting for it.

So why are you worried about this uninterruptable sleeping process?????
Is the system misbehaving? Is some application screwing up? Are you getting an error message somewhere? If so what? Let us all see the original error, not the process restart error.

Moto is: "If it ain't broke, don't try and fix it!"
# 7  
Old 11-03-2017
Quote:
Originally Posted by hicksd8
The point is that when the system reboots it starts this process (for whatever reason, do you know what this process is trying to do?) and the CPU says that it is calling for a resource that is not available (which could be caused by a number of things, eg, misconfiguration). The process is not waiting on an interrupt (eg, I/O or network packet arrival or keyboard input) so the CPU puts the process to sleep indefinitely and will wake it up itself when it is possible to run the process (ie, the resource has become available). If the resource never becomes available, then the process will permanently sleep until the system is shutdown.

So to get rid of the "advertise error" don't kill the original process and don't try to restart the process. When you restart the process the CPU says that you want the same resource that this process (now killed but still on the CPU queue) is waiting for. Don't "advertise" for that resource because I haven't got it available and, if I did, there's another process waiting for it.

So why are you worried about this uninterruptable sleeping process?????
Is the system misbehaving? Is some application screwing up? Are you getting an error message somewhere? If so what? Let us all see the original error, not the process restart error.

Moto is: "If it ain't broke, don't try and fix it!"
Is some application screwing up?
Ans: Yes the problem is my application is not working, every time this error occurs i had to restart my server, and this application does some redundancy check and automatic database update on 2 redundant systems.
This error does not occur frequently, but when it occurs we have no other option but to restart the server.
My goal is not to debug the S state but to remove the "advertise error" without rebooting the server.
Can you help me??
And thanks for replying instantly.

Rohit
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

2. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

3. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

4. Shell Programming and Scripting

Need help in restarting process

Hi friends, I have one unix command which is used to check the network status manually. followig is the command check_Network this command give follwoing status Network 1 is ok Network 2 is ok network 3 is ok network 4 is ok . . . . Network 10 is... (8 Replies)
Discussion started by: Nakul_sh
8 Replies

5. Solaris

SSH : Restarting too quickly, changing state to maintenance

Hi, I'm new to Solaris. I have an issue with ssh service. When I restart the service it exits with an exit status of 0 $svcadm restart svc:/network/ssh:default $echo $? 0 $ However, the service goes into maintenance mode after restart. I'm able to connect even though the service is in... (3 Replies)
Discussion started by: maverick_here
3 Replies

6. UNIX for Dummies Questions & Answers

Restarting a process

Hi, How is it possible to restart only your process. I can get the process killed but I am not able to start it. For eg : i first did this ps -ef|grep _out --displays all the process with _out in the name then I killed kill -15 36044 -- process id. Now how can i start the same... (1 Reply)
Discussion started by: TH3M0Nk
1 Replies

7. UNIX and Linux Applications

Unix pkill error; does wily obstruct me killing the process?

have two scripts on Unix; one that starts some processes and the other one for killing a process. At first, I ran the .sh without WILY in it and it worked perfectly; in this way, I could also ran my stopper process. However I need WILY in this so I added it to my script but this time, a message... (1 Reply)
Discussion started by: nerdogan551
1 Replies

8. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

9. Shell Programming and Scripting

Killing of a process and send a mail if the process doesnot come up within 2 minutes

Hi Friends, I am new to this forum as well as new to shell scripting. I have a problem here and i need someone to solve this. Let us consider there are two processes(abc & def).There is a script which kills these two processes(i.e killtheprocess abc). Here abc is the argument . There is a... (1 Reply)
Discussion started by: Prince89
1 Replies

10. Shell Programming and Scripting

Restarting a Crashed Process

Hello, I host a couple of Call of Duty gameing servers. There are some hackers who love the crash them. When they crash them it simply causes a segmentaion fault and kills the PID. I was wondering it you could help me write a script to simply restart the program after it has been crashed. The... (9 Replies)
Discussion started by: Phobos
9 Replies
Login or Register to Ask a Question