GBase 8c
安装配置
问答

内存配置问题、

发表于2025-11-28 17:00:5975次浏览8个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:

【操作系统】:

【CPU】:

【问题描述】*:启动过程中报:

2025-11-28 16:51:34.081 69296295.1 [unknown] 140510510215680 [unknown] 0 dn_6001 01000  0 [BACKEND] WARNING:  Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (4472 Mbytes) is larger.
这个是我内在不足吗?
 

评论

登录后才可以发表评论
用户头像
GBase用户137发表于 8个月前
可以参考安装部署手册中配置系统内核参数:
配置系统内核参数,避免信号量不足无法初始化。参照机器配置,修改系统内核参数值。主要存在于sysctl.conf配置文件中。
编辑配置文件:
vi /etc/sysctl.conf
建议修改如下参数:
net.ipv4.tcp_max_tw_buckets = 10000
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_retries1 = 5
net.ipv4.tcp_syn_retries = 5
net.ipv4.tcp_synack_retries = 5
net.ipv4.tcp_retries2 = 12
vm.overcommit_memory = 0
net.ipv4.tcp_rmem = 8192 250000 16777216
net.ipv4.tcp_wmem = 8192 250000 16777216
net.core.wmem_max = 21299200
net.core.rmem_max = 21299200
net.core.wmem_default = 21299200
net.core.rmem_default = 21299200
net.ipv4.ip_local_port_range = 26000 65535
net.core.somaxconn = 65535
net.ipv4.tcp_syncookies = 1
net.core.netdev_max_backlog = 65535
net.ipv4.tcp_max_syn_backlog = 65535
net.ipv4.tcp_fin_timeout = 60
kernel.sem="40960 2048000 40960 20480"
kernel.shmall = 1152921504606846720
kernel.shmmax = 18446744073709551615
net.ipv4.tcp_sack = 1
net.ipv4.tcp_timestamps = 1
vm.extfrag_threshold = 500
vm.overcommit_ratio = 90
vm.swappiness = 0
保存并退出文件后,执行命令生效:
sysctl -p
最佳回答
用户头像
GBase用户28017发表于 8个月前
@GBase用户137:完美。
GBase用户21182发表于 8个月前
楼上的大佬厉害啊
用户头像
GBase用户28017发表于 7个月前
@GBase用户21182:是啊。
用户头像
GBase用户28017发表于 7个月前
@GBase用户21182:是啊。
星雨楼发表于 8个月前
顶一下
GBase用户51820发表于 2个月前
不清楚啊。
GBase用户51884发表于 2个月前
等答案了啊。