由 Seraphim 在 08-26-2003 16:05 发表:
用RH9配置netfilter作网络地址转换,为何CPU占用很大?
机器配置PIII450,内存192M,Rehat Linux9
用iptalbes配置了netfilter作网络地址转换,使局域网内全部的PC以此机器为网关上网,局域网内共有将近50台PC。
top的结果:
16:47:08 up 3:42, 2 users, load average: 0.93, 0.83, 0.66
36 processes: 34 sleeping, 2 running, 0 zombie, 0 stopped
CPU states: 0.3% user 68.1% system 0.0% nice 0.0% iowait 31.4% idle
Mem: 190692k av, 146440k used, 44252k free, 0k shrd, 7452k buff
101152k actv, 4k in_d, 2692k in_c
Swap: 1052248k av, 1164k used, 1051084k free 113652k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
4 root 35 19 0 0 0 SWN 61.4 0.0 51:38 0 ksoftirqd_CPU
该结果以CPU时间排序,红色部分是最高的进程。占用60%以上的CPU!
这种情况是否正常?
netfilter的NAT表配置如下:
/sbin/iptables -t nat -A POSTROUTING -s 192.1.1.0/24 -o eth1 -j SNAT --to-source 219.238.183.92
219.238.183.92是Linux所在机器的静态IP,192.1.1.0/24为局域网段
Web:http://www.itpub.net/index.php?referrerid=12521
Email:[email protected]
WEBLOG:http//blog.csdn.net/kamus/
我有一所房子
面朝大海, 春暖花开
由 Snoopy 在 08-26-2003 16:11 发表:
16:08:41 up 2:16, 3 users, load average: 0.41, 0.29, 0.28
79 processes: 78 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 3.9% user 5.3% system 0.0% nice 0.0% iowait 90
16:09:18 up 2:17, 3 users, load average: 0.29, 0.27, 0.27
79 processes: 75 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 4.8% user 12.6% system 0.0% nice 0.0% iowait 82.6% idle
Mem: 513804k av, 498348k used, 15456k free, 0k shrd, 17576k buff
366204k actv, 0k in_d, 10748k in_c
Swap: 1044184k av, 21088k used, 1023096k free 308716k cached
我也是!!
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Seraphim 在 08-26-2003 16:57 发表:
你也是是什么意思?
是没关系?
还是你也不知道为什么?
Web:http://www.itpub.net/index.php?referrerid=12521
Email:[email protected]
WEBLOG:http//blog.csdn.net/kamus/
我有一所房子
面朝大海, 春暖花开
由 cx6445 在 08-27-2003 09:29 发表:
这种情况绝对不正常,这种配置可以轻松搞定2、3百台机器的上网
由 Seraphim 在 08-27-2003 09:48 发表:
那可能是什么原因?
Web:http://www.itpub.net/index.php?referrerid=12521
Email:[email protected]
WEBLOG:http//blog.csdn.net/kamus/
我有一所房子
面朝大海, 春暖花开
由 Seraphim 在 08-27-2003 13:35 发表:
收邮件浏览网页都很正常,但是外发邮件,特别是添加了附件的,超过100K的,就非常慢,在OE中经常就超时失败了,请问这是什么原因?
跟使用NAT有关系吗?
以前同样的配置,使用NT+Winroute,速度很快的
Web:http://www.itpub.net/index.php?referrerid=12521
Email:[email protected]
WEBLOG:http//blog.csdn.net/kamus/
我有一所房子
面朝大海, 春暖花开
由 Seraphim 在 08-27-2003 13:53 发表:
以下是在局域网内ping这台linux服务器的结果,可以看到响应时间及其不稳定,感觉就是负载过大造成的。
[zhangleyi@Seraphim zhangleyi]$ ping 192.1.1.254
PING 192.1.1.254 (192.1.1.254) 56(84) bytes of data.
64 bytes from 192.1.1.254: icmp_seq=1 ttl=64 time=145 ms
64 bytes from 192.1.1.254: icmp_seq=3 ttl=64 time=1.68 ms
64 bytes from 192.1.1.254: icmp_seq=4 ttl=64 time=350 ms
64 bytes from 192.1.1.254: icmp_seq=5 ttl=64 time=390 ms
64 bytes from 192.1.1.254: icmp_seq=6 ttl=64 time=100 ms
64 bytes from 192.1.1.254: icmp_seq=7 ttl=64 time=610 ms
64 bytes from 192.1.1.254: icmp_seq=8 ttl=64 time=300 ms
64 bytes f