原帖由 woodie 于 2006-6-2 19:00 發(fā)表
..........
其中pipe后面的數(shù)字和/proc/后面的數(shù)字是不斷地增大的,為什么?這個(gè)容易理解,watch命令不斷地重新調(diào)用ls命令,新的ls命令的進(jìn)程號(hào)不斷地變大;用來接收ls命令輸出的管道也自然每次都是新的,不過這里的數(shù)字代表什么含義,我還不清楚 ...
原帖由 Cygnus 于 2006-6-2 23:28 發(fā)表
1 -> pipe:[280311]
In which 280311 is pipe's kernel buffer size
原帖由 yjh777 于 2006-6-5 18:11 發(fā)表
... that num may be pipe's fd(file descriptor) ...
原帖由 waker 于 2006-6-6 08:28 發(fā)表
美比是 pipe的kernel vfs vnode
不是說一切皆文件么?![]()
原帖由 r2007 于 2006-6-6 09:45 發(fā)表
[code]根據(jù)以上的實(shí)測(cè)
pipe:[3273895]和lsof中的節(jié)點(diǎn)號(hào)是一樣的,難道是巧合?
原帖由 waker 于 2006-6-6 10:15 發(fā)表
什么是最好的算法?
step1:俺猜x=1是方程的一個(gè)解
step2:將x=1代入方程,兩邊在誤差范圍內(nèi)守恒,所以x=1是方程的一個(gè)有效解
這是俺一直以來的一個(gè)信條[img]http://72891.cn/images/smilies/icon_ ...
NODE is the node number of a local file;
or the inode number of an NFS file in the server host;
or the Internet protocol type - e. g, ``TCP'';
or ``STR'' for a stream;
or ``CCITT'' for an HP-UX x.25 socket;
or the IRQ or inode number of a Linux AX.25 socket device.
原帖由 woodie 于 2006-6-6 10:11 發(fā)表
cygnus的建議是對(duì)的,我也用lsof看了下。結(jié)果還是同意waker和r2007的看法,此處應(yīng)該是內(nèi)核vnode。
謝謝各位!
原帖由 Cygnus 于 2006-6-7 10:29 發(fā)表
請(qǐng)恕老夫眼拙了. 君不見 size 與 node 在 lsof 的輸出中乃是 side by side 嗎.
對(duì)由此而引起的誤導(dǎo)表示極度之遺憾. 哈哈.
歡迎光臨 Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |