Nat报错“printk: xxxx messages suppressed”

Nat忽然报错printk: xxxx messages suppressed dst cache overflow

 

无法ssh ping

 

解决办法

 

先重启 

 

增大 /proc/sys/net/ipv4/route/max_size 大小

 


    通过这个可以看到dst cache的大小
    cat /proc/slabinfo |grep ip_dst_ca

 

 


附其他相关命令:

  查看目前 ip_conntrack buffer 使用状况
  指令: grep conn /proc/slabinfo

  结果实例: ip_conntrack 3024 4090 384 409 409 1 (各值说明如下)
  ip_conntrack         the cache name
  3024         the number of currently active objects
  4090         the total number of available objects
  384         the size of each object in bytes
  409         the number of pages with at least one active object
  409         the total number of allocated pages
  1         the number of pages per slab are given

  man slabinfo 可查询详细说明.

  查出目前 ip_conntrack 记录最多的前五名 IP
  指令: cat /proc/net/ip_conntrack | cut -d ' ' -f 10 | cut -d '=' -f 2 | sort | uniq -c | sort -nr | head -n 5

  结果实例:
  2816         192.168.1.100
  14         163.30.85.129
  6         220.132.142.175
  6         127.0.0.1
  4         218.187.5.223

  由此可知, 192.168.1.100 占用了绝大多数的 buffer, 推断这个 IP 的 User 可能使用了 P2P 软件.

 

 

 

以上多转自http://blog.sina.com.cn/s/blog_66b600260100mndk.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值