Linux: monitor memory used for network buffers


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Linux: monitor memory used for network buffers
# 1  
Old 01-20-2010
Linux: monitor memory used for network buffers

/proc/net/sockstat has mem value, Is it memory used for network buffers?
Is it KB or MB?

Code:
 
$ cat /proc/net/sockstat 
sockets: used 8278
TCP: inuse 1090 orphan 2 tw 18 alloc 1380 mem 851
UDP: inuse 6574
RAW: inuse 1
FRAG: inuse 0 memory 0

or any other command to montior network buffer usage?
# 2  
Old 01-20-2010
Hi,

If I understand correctly the linux source I just read, the FRAG mem parameter (memory used at the for the IP fragments re-assembly) is in bytes. I need to check for the other mem parameters, but I would expect to be in bytes too.

Cheers,
Loïc.

Last edited by Loic Domaigne; 01-20-2010 at 05:33 PM.. Reason: grammar
# 3  
Old 01-20-2010
Byte is way too small, There is no reason 1090 connections only use 851 byte.
The system has following buffer parameter in byte per connection.
Code:
net.ipv4.tcp_rmem = 4096        87380   174760
net.ipv4.tcp_wmem = 4096        16384   131072

# 4  
Old 01-21-2010
Hi Honglus,

unless I am mistaken, it seems that the mem parameters for TCP and UDP is the number of kernel pages allocated. However, the memory parameter of FRAG seems to be the memory allocated bytes for fragmentation re-assembly...

"Very intuitive, and well documented" indeed. (use sarcastic tone)

Cheers,
Loïc.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

I would like to monitor network traffic for a computer on my network

My son does homework on a school laptop. I was thinking about setting up a gateway on my home network, so that I can monitor web traffic and know if he is doing his homework without standing over his shoulder. Ideally I would like to use the Raspberry Pi Model b that I already have. However, I... (15 Replies)
Discussion started by: gandolf989
15 Replies

2. UNIX for Dummies Questions & Answers

What to monitor for memory usage?

hi guys I am having a doubt about memory monitoring on linux system what I should be monitoring? memory usage? o swap usage? I am using some monitoring tools but I am confused to what monitor for alerting for example this case looks the memory usage is very high and it's like that all... (2 Replies)
Discussion started by: karlochacon
2 Replies

3. Linux

Monitor memory

Suppose our application limit use for up to 20GB of data. How to monitor the usage? Do we need to consider swap? Thanks. (2 Replies)
Discussion started by: zhshqzyc
2 Replies

4. UNIX for Advanced & Expert Users

linux memory buffers & cache usage

18:45:47 # free -m total used free shared buffers cached Mem: 96679 95909 770 0 1530 19550 -/+ buffers/cache: 74828 21851 Swap: 12287 652 11635 Hi all. The below output is from a RHEL 4.5... (0 Replies)
Discussion started by: drummerrob
0 Replies

5. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

6. UNIX for Dummies Questions & Answers

Monitor Memory of a process

Hi, I need to monitor the memory usage of a particular process continuously. As of now I am using the following command: ps -fu <user name> -o pid,comm,vsz | grep <process_name> | grep -v grep The output of this command gives me what i need except i want the output to keep getting updated... (3 Replies)
Discussion started by: archana485
3 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. Programming

Help in developing a Network Appliation to monitor pc in a network

I am developing a Network Appliation to monitor computers in a network. Specs are App monitors the current web page viewed in each system App also can shutdown the computer in the network App can show all process run by each computer in the network I am now confused how to start my... (2 Replies)
Discussion started by: valaparambil88
2 Replies

9. HP-UX

monitor memory usuage

Hi, We have HP-UX 11.23 and i want to use glance utility to monitor the memory usuage. Can someone tell me how to sort by memory usuage in glance utility? Thx (1 Reply)
Discussion started by: rockcapri
1 Replies
Login or Register to Ask a Question