Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Prologue/Epilogue script: msg#00114

clustering.torque.user

Subject: Re: Prologue/Epilogue script

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>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation