From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111c93,4c7db6e3ffa1d275,start X-Google-Attributes: gid111c93,public From: EKK Subject: stacksize and ALphaUP2000 Date: 2000/01/13 Message-ID: <387DDBB3.F194BA44@ekkinc.com>#1/1 X-Deja-AN: 572198648 Content-Transfer-Encoding: 8bit Organization: EKK Inc X-Server-Date: 13 Jan 2000 18:31:33 GMT Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Hi, below follows a thread forwarded to me on the subject. Is there a problem with the stacksize setting for the kernel running on the Alpha UP2000 motherboard based system? I am currently running kernel 2.2.12. When I set the stacksize to something huge, i.e. unlimited, like I do on all my Pentium-based systems, I can run big number-crunching programs. On the Alpha though, the system seems to come to a huge slowdown every once in a while... top seems to take about 20-40% of the CPU!!! everything is dead-slow, including shutting down. After I reboot, I am able to start an analysis and run it. After it has run, the system seems normal for a while, then after gzip and various trivial tasks, it starts to slow down again and then I have to reboot, etc. I tried re-setting the stacksize to something lower, about 512M, but I should probably set it down to about 8M (as it is by default?) The problem with that is I can then no longer run some graphics applications. My questions: 1.) How does stacksize affect maximum size of arrays in my programs, i.e. I have some big (~10000000) arrays, and stacksize seems to limit this. 2.) Is there a way around this, i.e. something I can put inside my program, that is more efficient and can handle a lower stacksize. 3.) The x386 kernel seems to be ok with stacksize=unlimited. Is there a way to fix the alpha kernel, perhaps manipulating some of the .h files within the kernel source code? Help, my machine hasn't worked quite right for a long time now!! Thank you, AG >>Resent-Date: 25 Dec 1999 00:02:05 -0000 >>Resent-Cc: recipient list not shown: ; >>MBOX-Line: From axp-list-request@redhat.com Fri Dec 24 19:02:05 1999 >>From: "Konrad Podloucky" >>X-Mailer: XFMail 1.3 [p0] on Linux >>Date: Fri, 24 Dec 1999 23:57:22 +0100 (CET) >>Reply-To: konrad@pelimbert.tssc.univie.ac.at >>To: RedHat AXP List >>Subject: UP2000 crashes -- update >>Resent-From: axp-list@redhat.com >>X-Mailing-List: archive/latest/2875 >>X-Loop: axp-list@redhat.com >>Resent-Sender: axp-list-request@redhat.com >>X-URL: http://www.redhat.com >> >>Hi, it's me again, >> >>I found out that the guys using running that big number >>crunching program on the UP2000, which regularly caused the >>machine to commit suicide with "Too many files open", always set >>the stack size to unlimited. Now I tried setting the limit to >>16M et voil�: the sucker's running stable for days now... >> >>Funnily on other Alphas (LX, SX) setting the stack size to >>unlimited doesn't wreak havoc and I don't really see the >>connection between that and too many open files. If somebody >>could shed some light on this I'd be really grateful. >> >>Another detail I found out: Usually when you tried to kill the >>program (unlimited stack size this time) with a simple SIGTERM >>the machine would immediately go beserk with "Too many files >>open". >> >>For me this still looks like a kernel problem on the UP2000, but >>I don't have the expertise to say for certain. I'd be glad, >>however to be proven wrong. >> >>Konrad >> >> >>________________________________________________________________ >> .~. Konrad Podloucky >> /V\ Running GNU/Linux 2.2.13 on an Alpha >> // \\ GnuPG/PGP-key available by request >>/( )\ Please boycott amazon.com! For details, see: >> ^^-^^ http://linuxtoday.com/story.php3?sn=13652 >> >>-- >>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 -- Alessandro Giachino, Software Engineer EKK Inc. 2065 West Maple C309 tel. 248-624-9957 Walled Lake MI 48390 fax. 248-624-7158 _____________________________________________ http://www.ekkinc.com