From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12176 invoked from network); 29 Apr 2000 01:03:23 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 29 Apr 2000 01:03:23 -0000 Received: from smtpsrv1.isis.unc.edu (smtpsrv1.isis.unc.edu [152.2.1.138]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA06819 for ; Fri, 28 Apr 2000 21:03:22 -0400 Received: from email.unc.edu (lambic.chem.unc.edu [152.2.48.185]) by smtpsrv1.isis.unc.edu (8.9.3/8.9.1) with ESMTP id VAA04181 for ; Fri, 28 Apr 2000 21:03:20 -0400 (EDT) Message-ID: <390A3819.70C88C67@email.unc.edu> Date: Fri, 28 Apr 2000 21:17:13 -0400 From: Dave Moore X-Mailer: Mozilla 4.72 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Strange stack size problem References: <3909E616.D2FE7664@altatech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Forgive me if this is a naive suggestion and your question is actually deeper, but here goes: I had a similar problem with a "too small" stack on an IBM SP2 (ugly statically allocated FORTRAN code), and although it took me a long time to figure it out (the docs were sketchy), it turned out that the maximum stack size could be set at link-time with a simple compiler flag (something like -bx:maxstack=). Now, it may be totally different in Linux, and I will eventually have to port said ugly FORTRAN code there, so I have more than a passing interest in this issue. Please note that I am by no means an expert ... and the only reason I even TOUCHED FORTRAN code is because I have to .. its nasty legacy code that I have no time to rewrite. Hope this is your "magic bullet" (please let me know if it is) Dave Moore ryan wrote: > Ok, here's my setup: > > -12 UP2000 Alpha boxen in a cluster > - RedHat 6.1 > - 256MB ram each > - latest version of PBS > - kernel 2.2.14 > > I need to increase the maximum stack size available to the users of the > cluster. I've tried the obvious things: > > - tweaking PAM > - changing the default in the kernel and recompiling > - creating an /etc/initscript file to set the stack size > - editing the files in /etc/security as appropriate > > This works fine on Intel machines, giving me more stack space for my PBS > jobs. For some reason it does _not_ work on the Alphas, which still > insist that the stack size is 8MB. I've been trying to figure out what > causes this and I've found a few interesting things: > > - It only happens on Alphas (as already stated) > - Passing the kernel 'init=/bin/sh' starts bash, which sees the new > stack size correctly. > - Doing an 'exec /sbin/init' from there will start init, after which > the stack size will be correctly set for all users, root or mortal ( > haven't tried with PBS yet though). This works even without the above > changes > - Only happens when the kernel runs /sbin/init as per default. > > Any ideas? I thought it might be RedHat's init, but I recompiled that > from the pristine source and had the same problem. > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com