[ofa-general] Re: [PATCH] rdma_cm: Add proc entry to monitor rdma_cm connections

Jason Gunthorpe jgunthorpe at obsidianresearch.com
Tue Mar 31 10:46:18 PDT 2009


On Tue, Mar 31, 2009 at 10:03:41AM -0700, Roland Dreier wrote:
>  > What avout /proc/net?
>  > I think it's very similar to /proc/net/tcp 
> 
> That's a legacy interface.  The upstream kernel has a very strong policy
> that no more non-process-related stuff should go into /proc.

AFAIK, proc/net is the only source for most of the information under
proc/net, it can't be legacy if there is no alternative :) These days
it is actually proc/<pid>/net/XXX due the namespace stuff, so it kinda
is process related.

People are adding new things, ie proc/net/sctp/remaddr was added last
year.

/proc/net/rdma/ really does seem to be the right answer today :|

debugfs is no good because tools like lsof/netstat need to access this
information and distros don't mount it by default.

BTW, Moni, while you are looking at this it would be really nice to
have a proc/<pid>/qp directory or file so that lists of QPs associated
with processes can be produced by lsof.

Regards,
Jason



More information about the general mailing list