CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Slow bash on OpenSuse 103_64 (https://www.cfd-online.com/Forums/openfoam-installation/57424-slow-bash-opensuse-103_64-a.html)

lr103476 March 18, 2008 04:30

Hi guys, Just installed Op
 
Hi guys,

Just installed OpenFOAM on a freshly installed OpenSuse 10.3_64 machine.

After sourcing the .OpenFOAM-1.4.1/bashrc the bash shell becomes terribly slow, especially when compiling. (It doesn't matter which compiler, system or the one provided).

Did someone experience and/or solve the same issue???

Regards, Frank

olesen March 18, 2008 04:53

My machines are always too slo
 
My machines are always too slow too ;)

I did notice a few minor issues with bash 3.2.25, but these were mostly problems with PS1 escape sequences messing up the commandline editing.

- Check if the $PATH and other environments look sensible. Perhaps something has change in how the /etc/profile.d/... are getting sourced and you have a horribly long path, etc.

- You might try ksh/pdksh and see it that changes anything.

- Maybe you have other issues (network, automounter, etc) that are the true culprits and that have only shown up with your update.

lr103476 March 18, 2008 05:11

I slow response in the shell i
 
I slow response in the shell is a real pain. Without sourcing the OpenFOAM bashrc / cshrc there is not problem at all.

Csh is slightly faster compared to bashrc, but the problem remains. It is not only the responsivity, but programs are running slower after sourcing openfoam......:-( very strange.

gschaider March 18, 2008 07:38

Hi Frank! Do they permanent
 
Hi Frank!

Do they permanently run slower or do they just take longer to start up? In the second case I would think that Mark is right with hs last hint (automounter etc). If for instance you installed OpenFOAM in your /home, the /home is on a NFS-fileserver and that fileserver is slow .....

Another thing: SuSE 10.3 is fairly recent, isn't it? Chances are good that the vendor-installed gcc is sufficient. Remove the OpenFOAM-gcc (and his libs) from your path and try it that way. Maybe these libs don't like each other ...

And one last thing. Are you running the 32 or the 64 bit version of OF?

Bernhard

lr103476 March 18, 2008 07:56

Hi Bernhard! Without sourci
 
Hi Bernhard!

Without sourcing OpenFOAM, everything works the way it should, so our network mounter should not be a problem.

I am using the gcc provided with opensuse 10.3, which is 64 bit. Therefore, I am using the 64 bits version of OpenFOAM.

After sourcing the OpenFOAM bash, a simple hello world c-code compiles 3x slower. Not only compiling, the startup of all programs is slower and they are running slower too. Without openfoam everything works really fast.....

I think that there are some lines in OpenFOAM-1.4.1/.bashrc or .OpenFOAM-1.4.1/bashrc which are colliding with my system.....

gschaider March 18, 2008 08:32

Hi Frank! I have no idea wh
 
Hi Frank!

I have no idea what could be wrong. My next best idea would be to start a distro-flame-war ("Get CentOS, man") but that would help nobody (but it would keep everyone entertained)

Two last ideas:
- To completly rule out a network problem move the OF-Installation to a local disk (/opt or something like this). If the problem persists a network problem can be excluded from the list of suspects (and move the installation back)
- Do in an OpenFOAMified bash "export | sort >vanille.environ". Do the same in a foamified shell. Diff the files.
From the diff try to rebuild in an untainted shell a "minimal" OF environment (start with PATH and LD_LIBRARY_PATH - if the compilation of hello world starts to suck then you've got to disect the Paths)

Bernhard

lr103476 March 18, 2008 11:04

Thanks Mark and Bernhard, the
 
Thanks Mark and Bernhard, the problem is solved.

All our computers are migrated to a new system running opensuse 10.3 with nfs mounted home dirs. All my openfoam stuff is on an extra harddrive, which is linked in my home/fmbos/openFOAM.... Apparently, following symbolic links through the home dirs is extremely slow. I solved this issue by changing $HOME in .OpenFOAM-1.4.1/bashrc by /media/sdb, the real location. Now all necessary foam related files are accessed directly and everything is compiling with similar speeds as before....

Frank


All times are GMT -4. The time now is 18:37.