SendQSocketBuffer - file /proc/sys/net/ipv4/tcp_wmem

RecvQSocketBuffer - file /proc/sys/net/ipv4/tcp_rmem

class insights.parsers.sendq_recvq_socket_buffer.RecvQSocketBuffer(context)[source]

Bases: insights.parsers.sendq_recvq_socket_buffer.SocketBuffer

Parse the file /proc/sys/net/ipv4/tcp_rmem

Parameter ipv4/tcp_rmem is the amount of memory in bytes for read (receive) buffer per open socket. This is a vector of 3 integers: [min, default, max]. These parameters are used by TCP to regulate receive buffer sizes. TCP dynamically adjusts the size of the receive buffer from the defaults listed below, in the range of these values, depending on memory available in the system.

Read more on http://man7.org/linux/man-pages/man7/tcp.7.html

Sample input::

4096 87380 6291456

Examples

>>> recvq_buffer_values.raw
'4096 87380 6291456'
>>> recvq_buffer_values.minimum
4096
>>> recvq_buffer_values.default
87380
>>> recvq_buffer_values.maximum
6291456
raw

The raw content of receive buffer sizes from tcp_rmem

minimum

Minimum size of the receive buffer used by each TCP socket

default

The default size of the receive buffer for a TCP socket

maximum

The maximum size of the receive buffer used by each TCP socket

class insights.parsers.sendq_recvq_socket_buffer.SendQSocketBuffer(context)[source]

Bases: insights.parsers.sendq_recvq_socket_buffer.SocketBuffer

Parse the file /proc/sys/net/ipv4/tcp_wmem

Parameter ipv4/tcp_wmem is the amount of memory in bytes write (transmit) buffer per open socket. This is a vector of 3 integers: [min, default, max]. These parameters are used by TCP to regulate send buffer sizes. TCP dynamically adjusts the size of the send buffer from the default values listed below, in the range of these values, depending on memory available.

Read more on http://man7.org/linux/man-pages/man7/tcp.7.html

Sample input::

4096 16384 4194304

Examples

>>> sendq_buffer_values.raw
'4096 16384 4194304'
>>> sendq_buffer_values.minimum
4096
>>> sendq_buffer_values.default
16384
>>> sendq_buffer_values.maximum
4194304
raw

The raw content of send buffer sizes from tcp_wmem

minimum

Minimum size of the send buffer used by each TCP socket

default

The default size of the send buffer for a TCP socket

maximum

The maximum size of the send buffer used by each TCP socket

class insights.parsers.sendq_recvq_socket_buffer.SocketBuffer(context)[source]

Bases: insights.core.Parser

Base class for SendQSocketBuffer & RecvQSocketBuffer

parse_content(content)[source]

This method must be implemented by classes based on this class.