Chinaunix

标题: 如何查看linux内核线程? [打印本页]

作者: hnzpzg    时间: 2010-07-29 15:39
标题: 如何查看linux内核线程?
有没有工具可以查看linux内核线程的状态?
作者: Godbach    时间: 2010-07-29 16:04
ps的结果不够用吗?
作者: T-Bagwell    时间: 2010-07-29 16:22
ps -aux可以了
[]里的就是kernel thread 了
作者: hnzpzg    时间: 2010-07-29 16:47
PID  Uid     VmSize Stat Command
    1 root        248 S   init
    2 root            SW  [keventd]
    3 root            RWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    7 root            SW  [mtdblockd]
    8 root        364 S   -sh
  420 root        192 S   udhcpd /var/udhcpd.conf
  479 root        192 S   iapp br0 wlan0
  500 root        344 S   wscd -start -c /var/wsc.conf -w wlan0 -fi /var/wscd-w
  516 root        188 S   iwcontrol wlan0
  600 root        176 S   disc_server br0
  607 root        224 S   dnrd --cache=off -s 192.168.2.254 -s 192.168.2.254
  627 root        212 S   mini_upnpd -wsc /tmp/wscd_config
  631 root        344 S   webs
  632 root        176 S   reload
  810 root        220 S   /bin/igmpproxy eth1 br0 -D
  813 root        208 S   udhcpc -i eth1 -p /etc/udhcpc/udhcpc-eth1.pid -s /usr
  891 root        224 R   ps
请教,里面的那个进程是进行数据转发的?我把用户进程杀掉后仍然可以上网,我的路由器时通过NAT转换上网的,哪个进程负责NAT转换呢
作者: Godbach    时间: 2010-07-29 16:51
NAT转换是网络方面的功能。不用启动内核线程的
作者: Godbach    时间: 2010-07-29 16:52
建议说一下你想做什么
作者: hnzpzg    时间: 2010-07-29 16:59
我的路由器nat转换的连接数最大为300,内存16m,cpu180m,mips核,路由器在上网时如果有人下载就会出现拥塞,别人上不了网,甚至ping不通,我怀疑是连接数限制设置太小的原因,我想看看路由器在处理nat链接的数据转发时,是不是为每个连接建立了进程?这个进程是在内核态还是用户态?,另外连接数多大比较合理?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2