is there any way to find out how much tcp buffer currently linux handling? (kernel tunning)

fosiul01
fosiul01 used Ask the Experts™
on
Hi
i know w hich parameter change to tune tcp .. example

net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216


but what i want to know is :
is there any way you can see, or is there any statistics data in the system to find out.. how much tcp buffer it has used in a given time ??

example :
you increased your RAM to 20GB, and you can monitor the uses script.
so suppose your maximum tcp send buffer is 16MB

how will you know that when you  actually need to increase the size ??
or is there any way to know that how much RAM its actually using per connection ???

I know Application or oracle they say that you need to set certain amount of tcp buffer.
unless an application states..
how will you know the uses ??

hope it does make sense

thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Could be the "mem" value in /proc/net/sockstat.

But I'm not sure about the unit being used. KB? Pages?

Maybe a start ...
Top Expert 2009

Author

Commented:
Sorry for late reply.
I was thinking that aswell.

do you know , if there is any way to see how much or how many semaphore the system is using ??

i know oracle has a set of setting
but how will you know that you need to modify the defualt semaphonr setting?
Most Valuable Expert 2013
Top Expert 2013

Commented:
ipcs -s
Top Expert 2009

Author

Commented:
I just created a nother quesiton, pls answer into that one ..
so that i can give you point in their ..

http://www.experts-exchange.com/OS/Linux/Q_27732974.html

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial