From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32631 invoked by alias); 23 May 2004 20:03:49 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 32585 invoked from network); 23 May 2004 20:03:43 -0000 Received: from unknown (HELO lycos.com) (209.202.220.170) by sourceware.org with SMTP; 23 May 2004 20:03:43 -0000 Received: from Unknown/Local ([?.?.?.?]) by mailcity.com; Sun, 23 May 2004 20:03:35 -0000 To: ecos-discuss@sources.redhat.com Date: Mon, 24 May 2004 04:08:00 -0000 From: "Anthony Tonizzo" Message-ID: Mime-Version: 1.0 X-Sent-Mail: on Reply-To: atonizzo@lycos.com X-Sender-Ip: 192.86.86.213 Organization: Lycos Mail (http://www.mail.lycos.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Error on Cyg_Counter::add_alarm X-SW-Source: 2004-05/txt/msg00268.txt.bz2 Matt: >I had some problems with alarms several months ago in >the FreeBSD stack, but I can't remember the details. Fortunately it turns out to have been a very simple mistake. The stack space allocated for the process was too small, and when the second task kicked in, it was probably overwriting the stack of the first. I still wonder how I got away with this for so long, but once it was increased to a much bigger size all issues disappeared. Which brings up an interesting subject, which I am sure can be of interest to many, especially those working in somewhat "restricted spaces": How do you estimate the amount of stack space needed for a given task? I can estimate what _my_own_ stack requirements are, but how much more do I have to plan for the "ecos" stuff? When I ran these tasks I assumed that 8K were going to suffice, but evidently that was not the case. Now, bitten once, I jacked up the size to 32K, but that is probably an overkill, and I can get away with it because my system has several megabytes of memory. But besides the fact that having a lot of memory doesn't mean that you have to throw it away, a lot of folks out there do not have this luxury and have to make much more reasoned assessments. Is there a rule of thumb that the "gurus" out there use? Thanks Tony ____________________________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss