免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9580 | 回复: 4
打印 上一主题 下一主题

64位系统单个进程分配的最大内存 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-01 10:39 |只看该作者 |倒序浏览
各位好:

   昨天搞了半天,在DELL PE2950 单个4核CPU,16G内存。装了redHat5.

操作系统信息如下:
Linux localhost 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

内存信息:

MemTotal:     16593240 kB
MemFree:      15820072 kB
Buffers:         91992 kB
Cached:         319584 kB
SwapCached:          0 kB
Active:         502832 kB
Inactive:       184976 kB
HighTotal:    15854912 kB
HighFree:     15234576 kB
LowTotal:       738328 kB
LowFree:        585496 kB
SwapTotal:    32764556 kB
SwapFree:     32764556 kB
Dirty:               8 kB
Writeback:           0 kB
AnonPages:      276208 kB
Mapped:          29216 kB
Slab:            50856 kB
PageTables:       4464 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  41061176 kB
Committed_AS:  1378088 kB
VmallocTotal:   116728 kB
VmallocUsed:     17536 kB
VmallocChunk:    94956 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

CPU信息:

root@localhost ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
stepping        : 10
cpu MHz         : 1995.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 3992.88
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
stepping        : 10
cpu MHz         : 1995.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 3990.01
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
stepping        : 10
cpu MHz         : 1995.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 3990.02
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz
stepping        : 10
cpu MHz         : 1995.002
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl vmx tm2 cx16 xtpr lahf_lm
bogomips        : 3989.98
clflush size    : 64
cache_alignment : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:



我用这台机器做mysql数据库集群的数据结点,分配的datamemory最大只能是4G。再加大,集群无法启动,报signal 11的错误。

目前我有几个问题:



1:我的系统是64位的吗?
2:在/proc/meminfo里面看到了16G内存,就代表操作系统支持16G内存吗?
2:对于单个进程,分配内存的上限是多少?

论坛徽章:
0
2 [报告]
发表于 2009-08-03 15:27 |只看该作者
咋没人回复?强烈关注。。。

论坛徽章:
0
3 [报告]
发表于 2009-08-04 11:13 |只看该作者
修改一下内核限制:
echo 0 > /proc/sys/vm/nr_hugepages

论坛徽章:
0
4 [报告]
发表于 2009-08-04 14:02 |只看该作者
原帖由 zcldhd 于 2009-7-1 10:39 发表
各位好:

   昨天搞了半天,在DELL PE2950 单个4核CPU,16G内存。装了redHat5.

操作系统信息如下:
Linux localhost 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux ...

没怎么明白楼主的意思
可以看看/etc/security/limits.conf 这个文件
memlock - 最大锁定内存地址空间
看下ulimit命令能否解决你的问题

论坛徽章:
0
5 [报告]
发表于 2009-08-04 14:06 |只看该作者
datamemory最大只能是4G 这个是在那看到或者设置的的 报错信息是什么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP