[Mauiusers] SIGSTOP and SIGTSTP don't work

Steve Johnson steve at isc.tamu.edu
Sat Jan 15 10:21:04 MST 2011


I think what you're looking for is mjobctl.

mjobctl -s jobID  # suspend
mjobctl -r jobID  # resume

http://www.adaptivecomputing.com/resources/docs/mwm/commands/mjobctl.php

// Steve



On 01/15/2011 09:03 AM, Mahmood Naderan wrote:
> I tried with both jobID (returned from qstat) and processID (returned
> from top) but none of them worked:
> Output of qstat:
> Job id Name User Time Use S Queue
> ------------------------- ---------------- --------------- -------- - -----
> 344._server_ job1 mahmood 62:51:59 R slow
> 816._server_ job2 mahmood 03:31:25 R slow
> output of top:
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 26900 mahmood 20 0 235m 115m 11m R 100 0.4 0:28.42 job2
> mahmood at server:~$ <mailto:mahmood at server:~$> kill -SIGSTOP 816
> -bash: kill: (816) - No such process
> mahmood at server:~$ <mailto:mahmood at orca:~$> kill -SIGSTOP 26900
> -bash: kill: (26900) - No such process
> and "canceljob" actually *canceled* the job:
>
> mahmood at server:~$ <mailto:mahmood at orca:~$> canceljob 816
>
>
> job '816' cancelled
>
> mahmood at server:~$ <mailto:mahmood at orca:~$> qstat
> Job id Name User Time Use S Queue
> ------------------------- ---------------- --------------- -------- - -----
> 344._server_ job1 mahmood 62:51:59 R slow
>
> That "canceljob" was a bad command...... :(
> what is the difference between canceljob and qdel then???!!!!
> *// Naderan *Mahmood;*
>
>
> ------------------------------------------------------------------------
> *From:* vaibhav agrawal <agrvaibhav at gmail.com>
> *To:* Mahmood Naderan <nt_mahmood at yahoo.com>
> *Cc:* maui <mauiusers at supercluster.org>
> *Sent:* Sat, January 15, 2011 5:27:20 PM
> *Subject:* Re: [Mauiusers] SIGSTOP and SIGTSTP don't work
>
> kill is the command to send the signal.check the documentation. I did
> tried this kill command many times, just verify the signal that needs to
> be send.
>
>
> On Sat, Jan 15, 2011 at 6:30 PM, Mahmood Naderan <nt_mahmood at yahoo.com
> <mailto:nt_mahmood at yahoo.com>> wrote:
>
>      >how abt 'kill -SIGSTOP <job-id>'
>
>      >How about 'canceljob ID' ?
>     When I see "kill" and "cancel", I am worry about the result. Do you
>     have any experience about them? Do you know exactly what happen by
>     running those commands?
>
>     *// Naderan *Mahmood;*
>
>
>     ------------------------------------------------------------------------
>     *From:* vaibhav agrawal <agrvaibhav at gmail.com
>     <mailto:agrvaibhav at gmail.com>>
>
>     *To:* Mahmood Naderan <nt_mahmood at yahoo.com
>     <mailto:nt_mahmood at yahoo.com>>
>     *Sent:* Sat, January 15, 2011 4:22:13 PM
>
>     *Subject:* Re: [Mauiusers] SIGSTOP and SIGTSTP don't work
>
>     how abt 'kill -SIGSTOP <job-id>'
>
>     On Sat, Jan 15, 2011 at 5:58 PM, Mahmood Naderan
>     <nt_mahmood at yahoo.com <mailto:nt_mahmood at yahoo.com>> wrote:
>
>          >How about 'canceljob ID' ?
>         I don't want the job to be canceled. I want to suspend it
>
>         *// Naderan *Mahmood;*
>
>
>         ------------------------------------------------------------------------
>         *From:* andy thomas <andy.thomas at imperial.ac.uk
>         <mailto:andy.thomas at imperial.ac.uk>>
>         *To:* Mahmood Naderan <nt_mahmood at yahoo.com
>         <mailto:nt_mahmood at yahoo.com>>
>         *Cc:* maui <mauiusers at supercluster.org
>         <mailto:mauiusers at supercluster.org>>
>         *Sent:* Sat, January 15, 2011 3:03:41 PM
>         *Subject:* Re: [Mauiusers] SIGSTOP and SIGTSTP don't work
>
>         On Sat, 15 Jan 2011, Mahmood Naderan wrote:
>
>          > Hi,
>          > I tested "qsig -s SIGSTOP <ID>" and "qsig -s SIGTSTP <ID>" to
>         suspend a job but none of them worked. The job is still R
>         (running). Any idea about that?
>
>         How about 'canceljob ID' ?
>
>         Andy
>
>
>
>         _______________________________________________
>         mauiusers mailing list
>         mauiusers at supercluster.org <mailto:mauiusers at supercluster.org>
>         http://www.supercluster.org/mailman/listinfo/mauiusers
>
>
>
>
>     _______________________________________________
>     mauiusers mailing list
>     mauiusers at supercluster.org <mailto:mauiusers at supercluster.org>
>     http://www.supercluster.org/mailman/listinfo/mauiusers
>
>
>
>
>
> _______________________________________________
> mauiusers mailing list
> mauiusers at supercluster.org
> http://www.supercluster.org/mailman/listinfo/mauiusers


More information about the mauiusers mailing list