From: Roger Pau Monne <roger.pau@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Simon Rowe <Simon.Rowe@eu.citrix.com>,
David Vrabel <david.vrabel@citrix.com>
Subject: Re: [PATCH] xs: set read_thread stacksize
Date: Thu, 21 Jun 2012 10:09:48 +0100 [thread overview]
Message-ID: <4FE2E4DC.5030500@citrix.com> (raw)
In-Reply-To: <1338449525.7864.14.camel@zakaz.uk.xensource.com>
Ian Campbell wrote:
> On Wed, 2012-05-30 at 13:10 +0100, Simon Rowe wrote:
>> On Wednesday 30 May 2012 10:40:15 Ian Campbell wrote:
>>
>>> If this little trick applies to both NetBSD and uclibc too then I guess
>>> it would be OK, otherwise I think autoconf is necessary.
>> It doesn't look to my untrained eye that xenstore is autoconf-aware. The
>> makefile unilaterally sets USE_PTHREAD for example.
>
> It has autoconf stuff available to it, I think, it just hasn't had cause
> to use it yet...
>
> (USE_PTHREAD is a bit of an odd one anyway, it refers only to the client
> library/cmdline tools and is for building against libc's which don't
> have pthreads)
>
>> Shall I just drop this test for now and if/when xenstore is updated to use
>> autoconf it can be addressed then?
>
> I'd like to here from Roger about what this means for NetBSD and uclibc,
> if it works on those then I think it is fine to do this.
Sorry for the delay, I just received this today (don't know why). I've
been looking at NetBSD and uClibc, and both have pthread_attr_setstacksize.
What I don't really like is the hardcoded (16 * 1024) value, how do you
know this is greater than PTHREAD_STACK_MIN?
Frankly I don't understand why do we have to touch this, even if you
requested 256MB of stack it won't we allocated until you get a page
fault, so you are only using the physical memory you need.
next prev parent reply other threads:[~2012-06-21 9:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-29 15:56 [PATCH] xs: set read_thread stacksize Simon Rowe
2012-05-29 16:39 ` David Vrabel
2012-05-29 19:39 ` Ian Campbell
2012-05-30 7:56 ` Simon Rowe
2012-05-30 9:40 ` Ian Campbell
2012-05-30 12:10 ` Simon Rowe
2012-05-31 7:32 ` Ian Campbell
2012-06-21 9:09 ` Roger Pau Monne [this message]
2012-06-21 9:18 ` Ian Campbell
2012-06-21 9:39 ` Roger Pau Monne
2012-06-21 10:18 ` Ian Campbell
2012-06-21 10:27 ` Roger Pau Monne
2012-06-21 10:32 ` Ian Campbell
2012-06-21 17:19 ` Ian Jackson
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=4FE2E4DC.5030500@citrix.com \
--to=roger.pau@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=Simon.Rowe@eu.citrix.com \
--cc=david.vrabel@citrix.com \
--cc=xen-devel@lists.xen.org \
/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).