|

楼主 |
发表于 2009-9-23 19:30:48
|
显示全部楼层
help again
按照您的方法修改了,两边都修改了。但是好像还是不work。
修改完参数后需要重启什么服务么?
另外,发现一个新问题,不知道和现在这个问题是否相关。
就是,我重启networking服务会导致eth0断掉
/etc/init.d/networking restart
必须再手动ifup eth0才行。
我记得从前debian没这种现象。lenny到底做了什么手脚?
Post by alonersir;2029513
我用sort做了排序,然后用diff比较,看起来似乎就是我前面说过的问题:
diff sysctla_net_de1 sysdebian.txt1
7,8c7,8
< net.core.rmem_default = 111616
< net.core.rmem_max = 111616
---
> net.core.rmem_default = 112640
> net.core.rmem_max = 131071
11,12c11,12
< net.core.wmem_default = 111616
< net.core.wmem_max = 111616
---
> net.core.wmem_default = 112640
> net.core.wmem_max = 131071
16c16
< net.core.xfrm_larval_drop = 0
---
> net.core.xfrm_larval_drop = 1
22a23
> net.ipv4.conf.all.arp_notify = 0
43a45
> net.ipv4.conf.default.arp_notify = 0
64a67
> net.ipv4.conf.eth0.arp_notify = 0
85a89
> net.ipv4.conf.lo.arp_notify = 0
105c109
< net.ipv4.icmp_ratelimit = 250
---
[color="Red"]> net.ipv4.icmp_ratelimit = 1000
177c181
< net.ipv4.route.gc_thresh = 4096
[color="Red"]---
> net.ipv4.route.gc_thresh = 32768
179c183
< net.ipv4.route.max_size = 65536
---
[color="Red"]> net.ipv4.route.max_size = 524288
186a191
> net.ipv4.rt_cache_rebuild_count = 4
206c211
< net.ipv4.tcp_max_orphans = 8192
---
[color="Red"]> net.ipv4.tcp_max_orphans = 32768
210c215
< net.ipv4.tcp_mem = 47616 63488 95232
---
[color="Red"]> net.ipv4.tcp_mem = 82368 109824 164736
220c225
< net.ipv4.tcp_rmem = 8192 87380 87380
---
[color="Red"]> net.ipv4.tcp_rmem = 4096 87380 3514368
232c237
< net.ipv4.tcp_wmem = 4096 16384 87380
---
[color="Red"]> net.ipv4.tcp_wmem = 4096 16384 3514368
234c239
< net.ipv4.udp_mem = 48672 64896 97344
---
[color="Red"]> net.ipv4.udp_mem = 82368 109824 164736
你看,你的值实在是太大了,先手动修改一下试试看,我上面的回复做了一次修改,估计你没有看到;) ,,最好两边的debian都修改,祝好运。
命令如下:
修改:
echo 8192 8192 8192 > /proc/sys/net/ipv4/tcp_rmem
echo 8192 8192 8192 > /proc/sys/net/ipv4/tcp_wmem
检查:
cat /proc/sys/net/ipv4/tcp_{r,w}mem
猜想一下:如果你把两边的值设置成完全一样也许是可行的,这样就相当于回到你安装系统之前。
哎,第三次编辑,执行sysctl时候的那个错误在我的debian下面也有,但是centos下面没有。 |
|