Operating System - Linux
1838260 Members
3877 Online
110125 Solutions
New Discussion

Regarding meaning for "cat /proc/net/sockstat" results

 
Minoru Asano
Frequent Advisor

Regarding meaning for "cat /proc/net/sockstat" results

Hello,

I would like to know regarding "cat /proc/net/sockstat" results.

[ENVIRONMENT]
RHEL ES 3 update4

[SITUATION]
If we execute "cat /proc/net/sockstat" command, the following results
is appeared:

sockets: used 416
TCP: inuse 78 orphan 0 tw 36 alloc 337 mem 8429
UDP: inese 46
RAW: inuse 0
FRAG: inuse 0 memory 0

[QUESTION]
- What does they mean ?
I guess like following:
inuse : established TCP socket number.
orphan : ??
tw : time wait for TCP socket establish ( queuing number )
alloc : all TCP socket number ( for example, ESTABLISH, CLOSE_WAIT, TIME_WAIT, etc)
mem : total memory for TCP socket ( unit is KB ? )

[QUESTION]
- Could you suggest me about correct meaning ?

Thank you for advice.
Best Regards.
/Minoru.Asano
2 REPLIES 2
Peter Godron
Honored Contributor

Re: Regarding meaning for "cat /proc/net/sockstat" results

Minoru Asano
Frequent Advisor

Re: Regarding meaning for "cat /proc/net/sockstat" results

Hello,
Thank you for quick response.

To make sure, can I ask question again ?

- What is "tcp_orphan_count" ?
- What is unit for "tcp_memory_allocation" ? kilobyte ? or byte ?

Thank you for advice.
Best Regards.
/Minoru.Asano