有个异步的网络连接,想在发送数据之前知道现时缓冲区所剩下的大小,怎么能做到呀?想用ioctl的,不过man一下提示 NOTE In order to use this call, one needs an open file descriptor. Often the open(2) call has unwanted side effects, that can be avoided under Linux by giving it the O_NONBLOCK flag. 应该怎样才能做到呀?
请教用什么方法可以使top显示按io大小排序.有时候只看到io很高,但不知道哪个pid引起的 或者还有什么别的工具吗? CPU states: 82.8% idle, 6.6% user, 4.8% kernel, 5.7% iowait, 0.0% swap Memory: 4096M real, 700M free, 3284M swap in use, 8117M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 1101 applclon 21 58 0 219M 99M sleep 17:57 2.74% java 212 root ...
请教用什么方法可以使top显示按io大小排序.有时候只看到io很高,但不知道哪个pid引起的 或者还有什么别的工具吗? CPU states: 82.8% idle, 6.6% user, 4.8% kernel, 5.7% iowait, 0.0% swap Memory: 4096M real, 700M free, 3284M swap in use, 8117M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 1101 applclon 21 58 0 219M 99M sleep 17:57 2.74% java 212 root ...
请教用什么方法可以使top显示按io大小排序.有时候只看到io很高,但不知道哪个pid引起的\r\n\r\n或者还有什么别的工具吗?\r\n\r\nCPU states: 82.8% idle, 6.6% user, 4.8% kernel, 5.7% iowait, 0.0% swap\r\nMemory: 4096M real, 700M free, 3284M swap in use, 8117M swap free\r\n\r\n PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND\r\n 1101 applclon 21 58 0 219M 99M sleep 17:57 2...
本人做的一个程序,在ext3文件系统上写大文件,开始都很正常,速度一般1gb/s。但是当文件大小在21G左右的时候,写入速度急剧下降到只有20mb/s不到。试了几次都是这样。 同样的程序在另一台Solaris 10的机器上写了200G都正常(不是ext3)文件系统。 哪位大侠帮忙提供些线索解决这个问题?拜谢! 补充一下是Redhat的linux系统,内核2.6.9-5.ELsmp [ 本帖最后由 zolas 于 2007-8-3 13:41 编辑 ]