Hi again,

Could you please put this into a feature request?

Having said that, there is another important consideration for Alchemi
users.
This relates to the upcoming changes in Alchemi's Executor code, which
will run GThreads inside a tight sandbox. In such cases, you may not be
able to spawn off a seperate Process, since the threads may not be
assigned sufficient privileges. This is actually a good time to start
discussion about questions such as:
(i) what level of sandboxing is considered acceptable in a real
production environment
    for eg: if a GThread is fully sandboxed, and has only 'Internet'
permissions, it will not be able to do much more than just use CPU. My
idea is to give it some more permissions, such as ability to write to
its working directory on disk. Other than that, nothing else may be
allowed. We could then add policies to allow for execution of 'unsafe'
threads, such as those that spawn off a Process, (including the GJob),
IF and only if, it is in the GAC / is digitally signed or something.
(ii) in continuation with (i) above, I would like to know why people are
using a GThread to spawn off a process, as opposed to a GJob.  Are there
additional things that need to be done? Do we need to extend the GJob
framework to support more scenarios for pre- and post- processing? If
so, we can do that, and allow only GJob to run with more privileges than
a normal users' GThread, so that it can spawn processes etc.

Also, I have not looked into how we can sandbox un-managed (i.e
non-.Net) code in Windows, yet. Any suggestions will be welcome...

I would like to know what others think about this...

Cheers
Krishna.

John Dehart wrote:
> Yes, I have notices the same thing. I am executing Perl files that 
> call several programs in succession and the CPU usage shows 0%. It 
> would seem that we should track the CPU usage of the spawned 
> processes. Not sure if its is a bug.... maybe it should be on a wish list.
>  
> JKD
>
> ----- Original Message ----
> From: Matt Valerio <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wednesday, September 6, 2006 10:08:41 AM
> Subject: [Alchemi-users] CPU usage
>
> Hey everyone,
>
> I have a number of scientific simulations that I have been running on 
> a 13-node Alchemi grid.  I am spawning a separate executable 
> System.Threading.Process from within my GThread's Execute method.
>
> This works fine, except for the fact that the console shows 0% CPU 
> usage.  I suspect that since the GThread is using 0% (and the 
> simulator.exe is using 100%) it is only reporting the CPU usage of the 
> GThread and not of any child processes.  Has anyone else noticed this?
>
> Should I submit this as a bug?
>
> Thanks!
> -Matt


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users

Reply via email to