Fedora and threading limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, 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=173680.

 

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$


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux