- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Regarding meaning for "cat /proc/net/sockstat" res...
Operating System - Linux
1758566
Members
2122
Online
108872
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2007 07:56 PM
01-08-2007 07:56 PM
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.
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 whether my guess correct or not ?
Thank you for advice.
Best Regards.
/Minoru.Asano
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.
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 whether my guess correct or not ?
Thank you for advice.
Best Regards.
/Minoru.Asano
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2007 07:22 AM
01-12-2007 07:22 AM
Re: Regarding meaning for "cat /proc/net/sockstat" results
I read a bit of net/ipv4/proc.c and include/net/tcp.h from a 2.6 kernel. At line 66 the following code:
seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %d\n",fold_prot_inuse(&tcp_prot), atomic_read(&tcp_orphan_count),tcp_tw_count, atomic_read(&tcp_sockets_allocated), atomic_read(&tcp_memory_allocated));
My guess whould be the same as yours:
- TCP in use: total established connections
- Orphan: Orphaned tcp connections (not attached to any user file handle)
- TW: TIME_WAIT connections
- Alloc: TCP sockets allocated (all types)
The kernel uses mostly pages or bytes but if they are in relation with configurable tcp kernel parameters I think the value is in bytes.
If you want to be really sure, you can try to mail the code author (his address is at line 58 of net/ipv4/proc.c in the latest 2.6 kernel).
seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %d\n",fold_prot_inuse(&tcp_prot), atomic_read(&tcp_orphan_count),tcp_tw_count, atomic_read(&tcp_sockets_allocated), atomic_read(&tcp_memory_allocated));
My guess whould be the same as yours:
- TCP in use: total established connections
- Orphan: Orphaned tcp connections (not attached to any user file handle)
- TW: TIME_WAIT connections
- Alloc: TCP sockets allocated (all types)
The kernel uses mostly pages or bytes but if they are in relation with configurable tcp kernel parameters I think the value is in bytes.
If you want to be really sure, you can try to mail the code author (his address is at line 58 of net/ipv4/proc.c in the latest 2.6 kernel).
Linux system administrator
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP