Re: [ppc] Default stack size on ppc64

2015-03-26 Thread David Woodhouse
On Thu, 2015-03-26 at 08:57 +, Richard W.M. Jones wrote: > Is pthread_create used even for the main thread in the process (I > thought the kernel created that). In any case threads aren't being > used explicitly by this process. > > Anyway I guess the guard page is just a hole that causes the

Re: [ppc] Default stack size on ppc64

2015-03-26 Thread Richard W.M. Jones
On Wed, Mar 25, 2015 at 07:57:25PM -0500, Steven Munroe wrote: > On Wed, 2015-03-25 at 19:45 +, Richard W.M. Jones wrote: > > On Wed, Mar 25, 2015 at 06:30:25PM +, David Woodhouse wrote: > > > If the compiler is single-threaded, and increasing the stack ulimit > > > fixes the problem, that

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread Richard W.M. Jones
On Wed, Mar 25, 2015 at 08:03:31PM +, David Woodhouse wrote: > On Wed, 2015-03-25 at 19:45 +, Richard W.M. Jones wrote: > > On Wed, Mar 25, 2015 at 06:30:25PM +, David Woodhouse wrote: > > > If the compiler is single-threaded, and increasing the stack ulimit > > > fixes the problem, th

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread David Woodhouse
On Wed, 2015-03-25 at 19:45 +, Richard W.M. Jones wrote: > On Wed, Mar 25, 2015 at 06:30:25PM +, David Woodhouse wrote: > > If the compiler is single-threaded, and increasing the stack ulimit > > fixes the problem, that implies that the default stack ulimit is less > > than the 8MiB-64KiB

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread Richard W.M. Jones
On Wed, Mar 25, 2015 at 06:30:25PM +, David Woodhouse wrote: > If the compiler is single-threaded, and increasing the stack ulimit > fixes the problem, that implies that the default stack ulimit is less > than the 8MiB-64KiB that it takes to reach the guard page... Just so I'm clear, is the

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread Richard W.M. Jones
On Wed, Mar 25, 2015 at 06:30:25PM +, David Woodhouse wrote: > On Tue, 2015-03-24 at 11:35 -0500, Steven Munroe wrote: > > I am not sure how ocaml is generating code for PPC64, you could look in > > to split stack support, but at this time GCC does not implement split > > stack. > ...

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread David Woodhouse
On Tue, 2015-03-24 at 11:35 -0500, Steven Munroe wrote: > I am not sure how ocaml is generating code for PPC64, you could look in > to split stack support, but at this time GCC does not implement split > stack. ... for PPC64. I wouldn't want to do it in OCaml before it's supported in GCC

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread Richard W.M. Jones
On Wed, Mar 25, 2015 at 05:54:58PM +, Richard W.M. Jones wrote: > OCaml uses its own code generator. However the description of > -fsplit-stack from GCC sounds interesting. Are there any more details > of how exactly it works? Does it catch the segfault from hitting the > guard page and do s

Re: [ppc] Default stack size on ppc64

2015-03-25 Thread Richard W.M. Jones
On Tue, Mar 24, 2015 at 11:35:30AM -0500, Steven Munroe wrote: > On Tue, 2015-03-24 at 12:19 +, Richard W.M. Jones wrote: > > For the OCaml packages on ppc64/ppc64le, we keep having bugs like this > > one: https://bugzilla.redhat.com/show_bug.cgi?id=1204876 > > > > The OCaml compiler is quite