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: Stack overflow - help needed Date: Fri, 22 Apr 2005 09:58:50 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1114156579 24014 80.91.229.2 (22 Apr 2005 07:56:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 07:56:19 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Apr 22 09:56:13 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DOt0e-0001B8-C8 for gotm-tru64-unix-managers@gmane.org; Fri, 22 Apr 2005 09:55:32 +0200 Original-Received: (qmail 26974 invoked by uid 49509); 22 Apr 2005 07:59:51 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26959 invoked by uid 49501); 22 Apr 2005 07:59:51 -0000 Original-Received: from 160.91.4.119 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.119):SA:0(-2.4/5.0):. Processed in 1.712737 secs); 22 Apr 2005 07:59:51 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 Original-Received: from emroute1.cind.ornl.gov (160.91.4.119) by sws1.ornl.gov with SMTP; 22 Apr 2005 07:59:49 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IFC00B518VORL@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 22 Apr 2005 03:59:48 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute1.cind.ornl.gov by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IFC00L028ULIK@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 22 Apr 2005 03:59:17 -0400 (EDT) Original-Received: from psi12.psi.ch (psi12.psi.ch [129.129.190.112]) by emroute1.cind.ornl.gov (PMDF V6.2-X27 #30899) with SMTP id <0IFC00L148U9GX@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 22 Apr 2005 03:58:59 -0400 (EDT) Original-Received: from 129.129.190.113 by psi12.psi.ch (InterScan E-Mail VirusWall NT) ; Fri, 22 Apr 2005 09:58:56 +0200 Original-Received: by psi13.psi.ch with Internet Mail Service (5.5.2657.72) id ; Fri, 22 Apr 2005 09:58:55 +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 email.cind.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:8228 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8228 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? Thanks in advance, 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 | -----------------------------------------------------------------