Fedora and threading limit
Guolin Cheng
guolin at alexa.com
Wed Apr 28 17:16:24 UTC 2004
Just got a problem on Fedora Core 1 box, I can only open 256 threads per
process. But on my former Redhat 8.0, I can open 1533 threads per
process. From post
http://www.redhat.com/archives/fedora-list/2003-December/msg04136.html
<http://www.redhat.com/archives/fedora-list/2003-December/msg04136.html>
, I still can not quite understand, Since I can only use 2GB stack
space. (256*8MB). Not 3GB.
The source of the thread-testing C file is from website
http://www.linuxquestions.org/questions/showthread.php?s=&threadid=17368
0.
Any other easy ways to change system-wide threading limit? At least from
Fedora Core 1's 256 to Redhat 8.0's 1533? Thanks A lot.
--Guolin Cheng
bash-2.05b$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 6143
virtual memory (kbytes, -v) unlimited
bash-2.05b$ /home/guolin/threadTest
Creating threads ...
Address of c = 1056775 KB
Address of c = 1064967 KB
Address of c = 1073159 KB
Address of c = 1081351 KB
Address of c = 1089543 KB
Address of c = 1097735 KB
Address of c = 1105927 KB
Address of c = 1114119 KB
Address of c = 1122311 KB
Address of c = 1130503 KB
Failed with return code 11 creating thread 256.
bash-2.05b$ ulimit -s 2048
bash-2.05b$ /home/guolin/threadTest
Creating threads ...
Address of c = 1050631 KB
Address of c = 1052679 KB
Address of c = 1054727 KB
Address of c = 1056775 KB
Address of c = 1058823 KB
Address of c = 1060871 KB
Address of c = 1062919 KB
Address of c = 1064967 KB
Address of c = 1067015 KB
Address of c = 1069063 KB
1000 threads so far ...
Failed with return code 11 creating thread 1023.
bash-2.05b$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040428/fe1e3357/attachment-0001.htm>
More information about the fedora-list
mailing list