From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Padiyath Sreekumaran Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Stack overflow - help needed Date: Tue, 26 Apr 2005 11:22:23 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1114507152 3651 80.91.229.2 (26 Apr 2005 09:19:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2005 09:19:12 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Apr 26 11:19:08 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DQMCs-00072n-8B for gotm-tru64-unix-managers@gmane.org; Tue, 26 Apr 2005 11:18:14 +0200 Original-Received: (qmail 11664 invoked by uid 49509); 26 Apr 2005 09:23:07 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11649 invoked by uid 49501); 26 Apr 2005 09:23:07 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.5/5.0):. Processed in 2.587414 secs); 26 Apr 2005 09:23:07 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 26 Apr 2005 09:23:04 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IFJ00JUJREF4U@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Apr 2005 05:23:04 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0IFJ00502RDMKW@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Apr 2005 05:22:42 -0400 (EDT) Original-Received: from psi12.psi.ch (psi12.psi.ch [129.129.190.112]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with SMTP id <0IFJ002H6RDLZG@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Apr 2005 05:22:34 -0400 (EDT) Original-Received: from 129.129.190.114 by psi12.psi.ch (InterScan E-Mail VirusWall NT) ; Tue, 26 Apr 2005 11:22:31 +0200 Original-Received: by psi14.psi.ch with Internet Mail Service (5.5.2657.72) id ; Tue, 26 Apr 2005 11:22:30 +0200 Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2657.72) X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.0.2 Xref: news.gmane.org gmane.os.tru64.managers:8238 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8238 Hello, The question was: > Hello, > OS = Tru64 V5.1A > One of the user got an error message during the execution of a > program: > > stack overflow > . > . > Core dumped. > > The present configuration: > sysconfig -q proc output > > $sysconfig -q proc > proc: > max_proc_per_user = 256 > max_threads_per_user = 1024 > per_proc_stack_size = 4194304 <------------------- > max_per_proc_stack_size = 48000000 <--------------------- > per_proc_data_size = 2147483648 max_per_proc_data_size = 2147483648 > max_per_proc_address_space = 2147483648 > per_proc_address_space = 2147483648 > executable_stack = 0 > autonice = 0 > autonice_time = 600 > autonice_penalty = 4 > open_max_soft = 4096 > open_max_hard = 4096 > ncallout_alloc_size = 8192 > round_robin_switch_rate = 0 > sched_min_idle = 0 > give_boost = 1 > maxusers = 2048 > num_wait_queues = 2048 > num_timeout_hash_queues = 2048 > enhanced_core_name = 0 > enhanced_core_max_versions = 16 > exec_disable_arg_limit = 0 > dump_cores = 1 > dump_setugid_cores = 0 > > limit output: > ============= > > $limit > cputime unlimited > filesize unlimited > datasize 2097152 kbytes > stacksize 46875 kbytes > coredumpsize unlimited > memoryuse 3068192 kbytes > vmemoryuse 2097152 kbytes > descriptors 4096 > > Can I just increase the process stack values(proc stack and max stack) > without increasing the other values? What is the maximum size I can > define > for stack in a 3G memory machine? > ---------------------------------------------------------------------------- ------- I found in the meantime that another user was also a running a job on the machine which was taking most of the stack space.HP told me how I have to increase the stack and Dr.Blinn gave me the following answer: "You already have a very large stack size defined. The user can unlimit the stack size default in their process using the shell unlimit command or the ulimit program so that they can use up to the currently defined max_per_proc_stack_size but if they've got a run-away recursion or some other kind of program bug, doing so is unlikely to make the problem go away. So you should tell the user to investigate why their program is overflowing the stack. It's probably a program bug, and if it's a user written program, that's even more likely to be the cause of the problem." HP gave the following solution: ================================= proc: per_proc_stack_size = 268435456 max_per_proc_stack_size = 1073741824 per_proc_data_size = 2147483648 max_per_proc_data_size = 8589934592 per_proc_address_space = 4294967296 max_per_proc_address_space = 8589934592 I have not yet taken any action since a long job is running on the machine. Thanks for your help and suggestions. Regards, Kumar ------------------------------------------------------------------ Padiyath Sreekumar | Tel: +41.56.310.3643 Paul Scherrer Institut | email: kumar.padiyath@psi.ch AIT | Office: WHGA/U132 WHGA/U132 | Fax: +41.56.310.3649 CH-5232 Villigen PSI | Switzerland | -----------------------------------------------------------------