FESR Consorzio COMETA - Progetto PI2S2 FEMM Riccardo Bruno, INFN CT Sindoni Salvatore, DIEES UniCT
Acitrezza, First Internaional Grid School for Industrial Applications, FEMM – Previous planning … Understand why the Xvfb fails Tuning the application on the Grid Make the JDL parametric (internally or externally)
Acitrezza, First Internaional Grid School for Industrial Applications, FEMM – Xvfb got core Running a xclock before the wine call wine & FEMM did not fail Avoiding xclock, wine & FEMM failed because the Xvfb got a core Several tests were done directly on a WN logged as one of the available pool accounts in order to understand why such strange behavior
Acitrezza, First Internaional Grid School for Industrial Applications, FEMM – still.wine Local tests on a WN gave us the impression that the problem is due to the generation of the.wine directory when wine first starts Starting wine –-version before to start wine femm.exe… the Xvfb does not fails. Although the.wine generation can be an acceptable answer to the strange wine+FEMM behavior, this does not answer why running xclock before wine+FEMM, the Xvfb does not fail.
Acitrezza, First Internaional Grid School for Industrial Applications, FEMM – JDL and Script #!/bin/bash # echo "[BEGIN]" HOSTNAME=$(hostname -f) USER=$(whoami) ARG1=$1 LOCALDIR=$(pwd) echo "HOST: "$HOSTNAME echo "USER: "$USER echo "ARGS: "$ARG1 echo "LOCALDIR is: "$LOCALDIR echo "HOMEDIR is:"$HOME echo "Listing local dir" ls -lrt echo "Unpacking TAR" tar xvfz femm.tar.gz echo "Starting wine for initializing" wine --version WINE_PID=$! echo "Starting Xvfb" Xvfb :1 & XVFB_PID=$! sleep 2 export DISPLAY=:1 echo "Starting WINE and FEMM" wine femm.exe -lua-script=SyncRel.lua - lua-var=ids=2 -windowhide WINE_PID=$! sleep 2 echo "Listing HOME" ls -lrt echo "Killing Xvfb" kill $XVFB_PID sleep 2 rm -rf /tmp/.X11-unix rm -rf /tmp/.X1-lock rm -rf /tmp/.wine-* echo "[END]"
Acitrezza, First Internaional Grid School for Industrial Applications, FEMM – Future steps Install wine on GILDA, since wine is a powerfull opportunity to run WINDOWS applications on the GRID Try the FEMM JDL and scripts on GILDA Make the final JDL parametric (internally or externally)
Acitrezza, First Internaional Grid School for Industrial Applications, A very simple control on the WN THE SCRIPT … echo "Starting xconsole" export DISPLAY= :0.0 xterm& XTERM_PID=$! touch ctrlfile while [ -e ctrlfile ] do sleep 1 DT=$(date) echo "Timestamp: "$DT >> timestamps done echo "[END]" This solution needs a client having public IP THE JDL Type = "Job"; JobType = "Normal"; Executable = "/bin/bash"; Arguments = "script.sh"; StdOutput = "test.out"; StdError = "test.err"; InputSandbox = {"script.sh"}; OutputSandbox = {"test.out","test.err"}; RetryCount = 4
Acitrezza, First Internaional Grid School for Industrial Applications, Questions…