[Swift-devel] Unix command from Swift run-time

Emalayan Vairavanathan svemalayan at yahoo.com
Mon Apr 23 13:00:30 CDT 2012


Hi Mike, 


"If the head node can indeed access Mosa"
We made some modifications in Mosa for our experiments and now only metadata access can be done from head-node in BG/P.

Thank you for your suggestion and it make sense. I will try that and get back to you if I have questions.

Thank you
Emalayan




________________________________
 From: Michael Wilde <wilde at mcs.anl.gov>
To: Emalayan Vairavanathan <svemalayan at yahoo.com> 
Cc: MosaStore <mosastore at googlegroups.com>; swift-devel at ci.uchicago.edu 
Sent: Monday, 23 April 2012 10:48 AM
Subject: Re: [Swift-devel] Unix command from Swift run-time
 
Emalayan,

If the head node can indeed access Mosa, and you want the getIP app to execute only on the head node, then define the site "localhost" in the same way you would if running on a single local workstation, and only list getIP in your tc file as being installed on site "localhost".

If I understand your need correctly, that should make Swift only run getIP on the head node.

- Mike


----- Original Message -----
> From: "Emalayan Vairavanathan" <svemalayan at yahoo.com>
> To: swift-devel at ci.uchicago.edu
> Cc: "MosaStore" <mosastore at googlegroups.com>
> Sent: Monday, April 23, 2012 12:43:02 PM
> Subject: [Swift-devel] Unix command from Swift run-time
> Hi All,
> 
> 
> I have a question.
> 
> 
> I need to do the following to integrate MosaStore with extended
> attributes + Swift+ Application.
> 
> 
> 1) Execute a Unix command to find the location of a file from my
> swift-program.
> 
> 2) Then need to use the output of this command as an input to the
> swift-app (remote) procedure so that it will be scheduled where the
> file is located (see below).
> 
> 
> 
> app read_file (file input, string machine){
> readperf @input "machine=" + machine;
> }
> 
> One way is to get the location of a file in another swift-app
> procedure as below. But this will be executed locally/remotely through
> a worker.
> 
> app (file outputFile) getIP (string filename){
> 
> }
> 
> Given that Swift run-time has access to Mosa on the head-node is there
> any other way to do this task with low cost (may be directly executing
> this command without going through a worker? ). Can I use external
> mappers / variable declared as external type / some other way ?
> 
> 
> 
> If you have an example program in the repository please point me to
> that.
> 
> 
> 
> Thank you Emalayan.
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel

-- 
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20120423/27634428/attachment.html>


More information about the Swift-devel mailing list