This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Error on Cyg_Counter::add_alarm
- From: "Anthony Tonizzo" <atonizzo at lycos dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 23 May 2004 13:03:35 -0700
- Subject: Re: [ECOS] Error on Cyg_Counter::add_alarm
- Organization: Lycos Mail (http://www.mail.lycos.com:80)
- Reply-to: atonizzo at lycos dot com
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