|
|
Choosing A Webhost: |
Re: Prologue/Epilogue script: msg#00114clustering.torque.user
Jeff, Here is what we use: #!/bin/ksh if [ "$1" = "root" ] then echo "$0: cannot kill root!" exit 1 fi if [ -z "$1" ] then echo "$0: kill who?" exit 1 fi HN=$(hostname) for i in $(ps aux | grep "^$1 " | grep -v grep | awk '{print $2}') do if ps -p $i >/dev/null 2>&1 then echo "killing $HN $i" kill $i 2>&1 fi if ps -p $i >/dev/null 2>&1 then echo "KILLING $HN $i" kill -9 $i 2>&1 fi done Hope that helps. Adam Emerich "Insanity: doing the same thing over and over again and expecting different results." -Albert Einstein "Jeffrey B. Layton" <laytonjb@charter To .net> Adam Emerich/Rochester/IBM@IBMUS cc 04/23/2007 08:36 torqueusers-bounces@xxxxxxxxxxxxxxx AM g, torqueusers@xxxxxxxxxxxxxxxx Subject Re: [torqueusers] Prologue/Epilogue Please respond to script laytonjb@charter. net Adam Emerich wrote: > Jeff, > > We have scripts that kill all the user's processes as the job exits. This > is how we ensure that only the user who currently has the node scheduled to > him is running on the node. As for killing jobs in the prologue, unless > you do not have the ability to have multiple users on a node, this would > seem like it could cause problems. > I'm assuming that even if you get only 1 core on the node, you "own" the node (you may need the memory per core for a code). > Let me know if you are interested in the 'killuser' script. > You bet! Thanks! Jeff
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Prologue/Epilogue script, Jeffrey B. Layton |
|---|---|
| Next by Date: | Re: Send a job to PBS and get it to have other name than STDIN, Matias Alberto Gavinowich |
| Previous by Thread: | Re: Prologue/Epilogue script, Jeffrey B. Layton |
| Next by Thread: | Re: Prologue/Epilogue script, Steve Traylen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |