[opensuse-programming] Problem with large buffer on 10.2 when OK on 10.0 - solved!
Hello, Thanks for the help. We mainly run scientific code that is written by scientists rather than programmers and our machines are *usually* set up to be fairly forgiving of progamming style. "ulimit -s" shows that the stack size is limited to 8Mb on the 10.2 nodes and unlimited on the 10.0 nodes. Hence the program was crashing when it tried to allocate an 8Mb buffer on th 10.2 nodes. Now I just have to work out why the upgrade to 10.2 changed the limits. Cheers. Dr Justin Finnerty Lange Strasse 11 - 26122 - Oldenburg ___________________________________________________________ Yahoo! Messenger - with free PC-PC calling and photo sharing. http://uk.messenger.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Wednesday 07 March 2007 05:47, justin finnerty wrote:
Hello,
Thanks for the help. We mainly run scientific code that is written by scientists rather than programmers and our machines are *usually* set up to be fairly forgiving of progamming style.
...
Now I just have to work out why the upgrade to 10.2 changed the limits.
But you're well advised to change the code to allocate that space either statically or dynamically. It's an abuse of the stack to do what that code does now.
Cheers.
Dr Justin Finnerty
Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On 07 March 2007, justin finnerty wrote:
"ulimit -s" shows that the stack size is limited to 8Mb on the 10.2 nodes and unlimited on the 10.0 nodes. Hence the program was crashing when it tried to allocate an 8Mb buffer on th 10.2 nodes.
Now I just have to work out why the upgrade to 10.2 changed the limits.
Perhaps the config files in /etc/security/limits.conf or /etc/sysconfig/ulimit may be useful to look at. -- Regards, Verdi --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
participants (3)
-
justin finnerty
-
Randall R Schulz
-
Verdi March