<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: killing a process which has Processor utilization for scheduling in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284593#M335876</link>
    <description>&lt;!--!*#--&gt;Hi Sushant,&lt;BR /&gt;&lt;BR /&gt;Okay answer some of the questions?&lt;BR /&gt;&lt;BR /&gt;1. Are you facing any performance issues on this server?&lt;BR /&gt;&lt;BR /&gt;2. If yes paste the output for TOP,glance , sar,swapinfo -tam?&lt;BR /&gt;&lt;BR /&gt;3. if you have kmeminfo script then please use it and let me know the output?&lt;BR /&gt;&lt;BR /&gt;4. Do you suspect any application issues on this server?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vivek Bhatia</description>
    <pubDate>Fri, 10 Oct 2008 17:33:13 GMT</pubDate>
    <dc:creator>Vivek Bhatia</dc:creator>
    <dc:date>2008-10-10T17:33:13Z</dc:date>
    <item>
      <title>killing a process which has Processor utilization for scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284591#M335874</link>
      <description>Hi All,&lt;BR /&gt;I am trying to kill a number of processes using kill command.&lt;BR /&gt;Below is the ps -eaf of the processes I want to kill.&lt;BR /&gt;Here you can see that the second proecess i.e pid = 20410, is the parent for all other processes. And also it has  cpu(Processor utilization for scheduling) as 1 ( column 4)  &lt;BR /&gt;&lt;BR /&gt;  misjit 20424 20410  0 04:31:43&lt;BR /&gt;  misjit 20410     1  1 04:31:41&lt;BR /&gt;  misjit 20423 20410  0 04:31:43&lt;BR /&gt;  misjit 20433 20410  0 04:31:43&lt;BR /&gt;  misjit 20430 20410  0 04:31:43&lt;BR /&gt;  misjit 20435 20410  0 04:31:43&lt;BR /&gt;  misjit 20434 20410  0 04:31:43&lt;BR /&gt;  misjit 20427 20410  0 04:31:43&lt;BR /&gt;  misjit 20413 20410  0 04:31:41&lt;BR /&gt;  misjit 20432 20410  0 04:31:43&lt;BR /&gt;&lt;BR /&gt;So, if I kill parent process, then all chld process should be killed.&lt;BR /&gt;When I try the command "kill 20410", The processes are  NOT getting killed( The cpu column is changing to 0). But second time I try the same command "kill 20410", all the processes getting killed !.&lt;BR /&gt;Can anybody explain me why?..&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Oct 2008 08:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284591#M335874</guid>
      <dc:creator>sushant keerti</dc:creator>
      <dc:date>2008-10-10T08:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: killing a process which has Processor utilization for scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284592#M335875</link>
      <description>I don't know why that behaviour occurs.&lt;BR /&gt;&lt;BR /&gt;But I've always been told to kill the child processes before killing the parent.  To avoid Zombies...this sounds like some Halloween them...killing/zombies :)&lt;BR /&gt;&lt;BR /&gt;So I just line all the child processes up beside the kill command&lt;BR /&gt;&lt;BR /&gt;kill 20424 20423 20433 etc.&lt;BR /&gt;&lt;BR /&gt;Then kill the parent&lt;BR /&gt;&lt;BR /&gt;kill 20410&lt;BR /&gt;&lt;BR /&gt;That's always worked for me 99%.  But this opens another question along with your original....is the way I mentioned the correct way?  Is there a better way?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Note:  My method above doesn't always work as the parent might spawn new child processes.&lt;BR /&gt;&lt;BR /&gt;In that scenario I just put the process ID of the parent last in the kill command beside the child process ID's  (I've always assume it kills the processes in order from left to right...a bad assumption????)</description>
      <pubDate>Fri, 10 Oct 2008 08:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284592#M335875</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-10T08:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: killing a process which has Processor utilization for scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284593#M335876</link>
      <description>&lt;!--!*#--&gt;Hi Sushant,&lt;BR /&gt;&lt;BR /&gt;Okay answer some of the questions?&lt;BR /&gt;&lt;BR /&gt;1. Are you facing any performance issues on this server?&lt;BR /&gt;&lt;BR /&gt;2. If yes paste the output for TOP,glance , sar,swapinfo -tam?&lt;BR /&gt;&lt;BR /&gt;3. if you have kmeminfo script then please use it and let me know the output?&lt;BR /&gt;&lt;BR /&gt;4. Do you suspect any application issues on this server?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Vivek Bhatia</description>
      <pubDate>Fri, 10 Oct 2008 17:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284593#M335876</guid>
      <dc:creator>Vivek Bhatia</dc:creator>
      <dc:date>2008-10-10T17:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: killing a process which has Processor utilization for scheduling</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284594#M335877</link>
      <description>&amp;gt;Here you can see that the second process i.e pid = 20410&lt;BR /&gt;&lt;BR /&gt;No we can't. :-) That's why you need to use this command to see a hierarchical listing:&lt;BR /&gt;UNIX95=EXTENDED_PS ps -Hfu misjit&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if I kill parent process, then all child process should be killed.&lt;BR /&gt;&lt;BR /&gt;No, they usually are adopted by init as orphans.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Kevin: But I've always been told to kill the child processes before killing the parent.&lt;BR /&gt;&lt;BR /&gt;Yes.  Also kill them at the same time so the parent doesn't make more.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;To avoid Zombies...this sounds like some Halloween them...killing/zombies :)&lt;BR /&gt;&lt;BR /&gt;These aren't zombies, these are orphans, parent is init.&lt;BR /&gt;But you forgot to mention zombie masters, since you can't kill zombies. :-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;In that scenario I just put the process ID of the parent last in the kill command ... (I've always assume it kills the processes in order from left to right.)&lt;BR /&gt;&lt;BR /&gt;That's what I do.  Copy from bottom up.</description>
      <pubDate>Sat, 11 Oct 2008 03:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/killing-a-process-which-has-processor-utilization-for-scheduling/m-p/4284594#M335877</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-11T03:14:01Z</dc:date>
    </item>
  </channel>
</rss>

