Article ID: 119826, created on Jan 26, 2014, last review on May 7, 2014

  • Applies to:
  • Virtuozzo 6.0
  • Virtuozzo containers for Linux

Symptoms

Number of numothersocks seems to be much higher in a newly created container on PCS6 than it was on Virtuozzo 4.0. Why?

Cause

PVCfL 4.0 had limited support of IPv6, which is why such sockets were not counted properly.

Furthermore, 2.6.32 kernels do better sockets accounting, and there are two sockets type: TCP and 'other', meaning - any other type of socket is counted there.

Resolution

For systems with the kernel 2.6.32 (PVC 4.7, PSBM 5.0, PCS 6.0), non-TCP sockets' usage can be taken from the container's /proc/bc/CTID/slabinfo file on the node, and usage of NETLINK sockets is to be taken from the inside of a container.

To confirm the difference in numothersocks calculation, you can use the following commands, for the container #51 in this example:

[root@PCS6 ~]# CTID=51
[root@PCS6 ~]# grep numothersock /proc/bc/$CTID/resources
numothersock                  145                  147  9223372036854775807  9223372036854775807                    0
[root@PCS6 ~]# awk '/^RAW|^UNIX|^UDP|^ICMP/{print; n+=$2}END{printf"\nTotal: %d\n",n}' /proc/bc/$CTID/slabinfo
RAWv6: 27
UNIX: 84
RAW: 25
UDP: 2

Total: 138
[root@PCS6 ~]# vzctl exec $CTID "awk '//;END{printf\"\\nTotal: %d\\n\",NR-1}' /proc/net/netlink"
sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks     Drops
ffff8802ad820800 0   0      00000000 0        0        (null) 2        0       
ffff8802e7bd5000 6   0      00000000 0        0        (null) 2        0       
ffff8802181e4000 9   0      00000000 0        0        (null) 2        0       
ffff880168ec3800 10  0      00000000 0        0        (null) 2        0       
ffff88046d0e2c00 15  0      00000000 0        0        (null) 2        0       
ffff8802a1161800 15  134    00000001 0        0        (null) 2        0       
ffff88041f409000 16  0      00000000 0        0        (null) 2        0       

Total: 7

That is, total sum 138 + 7 is 145, and that number is shown as the current usage of numothersock for the container.

Search Words

numothersock

high numothersock

e8e50b42231236b82df27684e7ec0beb 2897d76d56d2010f4e3a28f864d69223 d02f9caf3e11b191a38179103495106f c62e8726973f80975db0531f1ed5c6a2 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF