From: "Mathieu Lonjaret" <mathieu.lonjaret@gmail.com>
To: 9fans@9fans.net
Subject: [9fans] thread STACK size
Date: Wed, 19 May 2010 11:04:22 +0200 [thread overview]
Message-ID: <35dbc9ae832cb8869392d87a68e02dcf@iram.fr> (raw)
Hi all,
A while ago, while working on btfs, I stumbled upon some sort of
overflow (http://9fans.net/archive/2009/07/77) which was in fact due
to the thread STACK being too small (and hence if I understood
correctly things would get written out of it, in the heap).
To be on the safe side, I have it set to 16384 now, but as I think I'm
getting near something usable with btfs, I'd like to go back to a more
fitting value. I think it's pretty important to have it as low as
possible since the number of threads/coroutines will grow linearly
with the number of peers connected (to be honest, I don't even know if
that can even scale in terms of memory use).
So the question is, how can I evualuate what's the minimal value I can
set that to without getting into trouble again? Is there anything
smarter than just trial and error?
Thanks,
Mathieu
next reply other threads:[~2010-05-19 9:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 9:04 Mathieu Lonjaret [this message]
2010-05-19 9:20 ` Sape Mullender
2010-05-19 9:55 ` Federico G. Benavento
2010-05-19 10:51 ` Francisco J Ballesteros
2010-05-19 13:56 ` erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35dbc9ae832cb8869392d87a68e02dcf@iram.fr \
--to=mathieu.lonjaret@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).