免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8212 | 回复: 19

redhat9中支持的最大线程 [复制链接]

论坛徽章:
0
发表于 2004-05-22 10:07 |显示全部楼层
在redhat9总,内核为2.4.20,查看/usr/include/bits/local_lim.h文件,里面的最大线程是1万多,但实际的程序中最大线程只有1千多,始终上不去,不知道大家对这个是否 有研究!
跟glibc是否有关系??

另外2.6内核对线程的支持应该上比较好吧!

论坛徽章:
0
发表于 2004-05-22 14:53 |显示全部楼层

redhat9中支持的最大线程

用root 用户身份登录,
ulimit -n 10000  //修改可以打开的文件数
ulimit -u 10000  //修改可以运行的进程数
看看是不是这个原因

论坛徽章:
0
发表于 2004-05-23 11:29 |显示全部楼层

redhat9中支持的最大线程

ulimit -u 10000 修改的是进程数目,
linux对一个进程所产生的线程有限制,我希望能把折合线程数目给调上去!

论坛徽章:
0
发表于 2004-05-23 13:05 |显示全部楼层

redhat9中支持的最大线程

65532 trend

论坛徽章:
0
发表于 2004-05-23 21:19 |显示全部楼层

redhat9中支持的最大线程

65532 trend ??

不是很明白……
能否说清楚点??



[/quote]

论坛徽章:
0
发表于 2004-05-24 07:29 |显示全部楼层

redhat9中支持的最大线程

http://lists.svlug.org/pipermail/svlug/2000-March/025709.html

http://lists.debian.org/debian-user/2003/07/msg00169.html

论坛徽章:
0
发表于 2004-05-24 11:39 |显示全部楼层

redhat9中支持的最大线程

As NPTL is an 1-on-1 library, for each thread you create, a kernel thread is
also created. This has two implication:

- If you don't run your test as 'root' user, you are ruled by the 'ulimit -u'
limit. On fedora core 1, this limit is 4087. To overrun this limit, either
run the case as root change in /etc/security/limits.conf

- The second implication of the kernel threads is the amount of physical RAM
used. The kernel does not allow more than ( num_physpages / 16) concurrent
(kernel) threads. This is the value for mono-CPU box. I could only augment
this limit by adding some RAM in my box.


在2.4内核中要获得最大线程
1,以root运行该程序
2,增大物理内存

论坛徽章:
0
发表于 2004-05-25 09:03 |显示全部楼层

redhat9中支持的最大线程

什么叫线程啊?????

论坛徽章:
0
发表于 2004-05-25 17:00 |显示全部楼层

redhat9中支持的最大线程

[quote]原帖由 "MM和钱"]什么叫线程啊?????[/quote 发表:



MM,你穷的只有钱了。

论坛徽章:
0
发表于 2004-05-26 16:17 |显示全部楼层

redhat9中支持的最大线程

我们在7.3下开过6000个thread,没做任何修改,不过在root用户下..
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP