Sorry for a late reply and thank you for all! <br>Lorenzo and I will go over modifications on monday and will test out those codes. <br>Thanks and enjoy the rest of the weekend! <br>Taka<br><br><br><div class="gmail_quote">
On Fri, Jun 8, 2012 at 4:34 PM, David Kelly <span dir="ltr"><<a href="mailto:davidk@ci.uchicago.edu" target="_blank">davidk@ci.uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is a portion of a script that that copies some frequently used data to a node's shared memory. I think it is pretty similar to the script that Glen sent earlier.<br>
<br>
dssatdir=/dev/shm/dssat<br>
dssattmp=/dev/shm/dssat.tmp<br>
<br>
if [ ! -d $dssatdir ]; then<br>
if mkdir $dssattmp 2>/dev/null; then<br>
echo $$ copying<br>
savewd=$PWD<br>
cd $dssattmp<br>
<br>
mkdir -p refdata<br>
cp $refdata/* refdata/<br>
<br>
mkdir -p campaign<br>
cp $campaign/*.MZX campaign/<br>
<br>
mkdir -p binpath<br>
cp $binpath/*.EXE binpath/<br>
<br>
cd $savewd<br>
mv $dssattmp $dssatdir<br>
else<br>
while [ ! -d $dssatdir ]; do<br>
# echo $$ sleeping<br>
sleep 1;<br>
done<br>
fi<br>
fi<br>
<div><div class="h5"><br>
<br>
<br>
----- Original Message -----<br>
> From: "Lorenzo Pesce" <<a href="mailto:lpesce@uchicago.edu">lpesce@uchicago.edu</a>><br>
> To: "Michael Wilde" <<a href="mailto:wilde@mcs.anl.gov">wilde@mcs.anl.gov</a>>, "Swift Devel" <<a href="mailto:swift-devel@ci.uchicago.edu">swift-devel@ci.uchicago.edu</a>>, <a href="mailto:swift-user@ci.uchicago.edu">swift-user@ci.uchicago.edu</a><br>
> Cc: "Kazutaka Takahashi" <<a href="mailto:kazutaka@gmail.com">kazutaka@gmail.com</a>><br>
> Sent: Friday, June 8, 2012 2:39:19 PM<br>
> Subject: [Swift-devel] ram disk with swift<br>
> Mike,<br>
> We were talking about putting the input files for Taka's calculations<br>
> (the X.mat files), which are rather small ~ 60Kb or so, in ram disk<br>
> and try to use them for all the apps (that use the same file). giving<br>
> the size, we could even load up all of them for each node<br>
> (7*3*60=1.2MB, that is zero) to reduce traffic towards /lustre and<br>
> thus avoid the meta-data slow downs that Beagle seems to have.<br>
><br>
> If we copy files in /tmp (as far as I understand it would be ramdisk)<br>
> on the each node through swift, would it be there for all the apps?<br>
><br>
> Thanks,<br>
><br>
> Lorenzo<br>
</div></div>> _______________________________________________<br>
> Swift-devel mailing list<br>
> <a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>What is essential is invisible to the eye<br><br>