Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using 2.6.15-gentoo-r1 and need pthread stack size<SOLVED>
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
redwing26
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 156
Location: movl "scotland",%ebp

PostPosted: Sat Feb 04, 2006 8:57 pm    Post subject: using 2.6.15-gentoo-r1 and need pthread stack size<SOLVED Reply with quote

Hi Im using cedega and when I start it .......it informs me that I have pthreads but there stack size is to small ....how can I increase the pthread stack size?

Thanks
David


Last edited by redwing26 on Tue Feb 07, 2006 7:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
redwing26
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 156
Location: movl "scotland",%ebp

PostPosted: Sun Feb 05, 2006 11:07 pm    Post subject: Reply with quote

just went on gentoo irc and got told to do make menuconfig /stack .......sounds like bs though can someone tell me how I increase my pthread stack size please?
Back to top
View user's profile Send private message
redwing26
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 156
Location: movl "scotland",%ebp

PostPosted: Mon Feb 06, 2006 7:46 pm    Post subject: Reply with quote

someone told me to alter /etc/limits but that doesnt alter my pthread stack size from the default 2048 how do I alter my pthread stack size? why is there no documentation on this? and why is the default so small?
Back to top
View user's profile Send private message
redwing26
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 156
Location: movl "scotland",%ebp

PostPosted: Mon Feb 06, 2006 8:53 pm    Post subject: pthread stacksize default sucks for cedega Reply with quote

After much more reading it appears the correct way to alter the pthread stack size is to compile glibc and pass the pthread stack size to the configure script


what I hope to do is hack the glibc ebuild and put the line in configure to actually set a pthread stack size rather than accepting the default

how would I go about doing this??

./configure pthread stack size = 4096

^ I know thats not the command could someone tell me what is as at least from what ive read the only way to alter the default pthread stack size is to recompile glibc setting the pthread flag .........I would have apprecaite if someone could either correct me if there is a better way or at least make sure when they are giving me info to alter files that it is to actually ALTER my CURRENT PTHREAD STACKSIZE and not just referring me to pages that get me to do stuff that turns out to be completely irrelevant ........ive been on alot of forums about this and many need to know how to fix this
David
Back to top
View user's profile Send private message
redwing26
Apprentice
Apprentice


Joined: 20 Jan 2006
Posts: 156
Location: movl "scotland",%ebp

PostPosted: Tue Feb 07, 2006 7:01 pm    Post subject: Reply with quote

emerging glic does work BUT if you have your CHOST var = i386 in make.conf your dydtem will NEVER be compiled with nptl support! so make sure its not i386 then

USE="nptl nptlonly" in make.conf
emerge glibc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum