[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1405672897.10255.95.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Fri, 18 Jul 2014 10:41:37 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Denys Fedoryshchenko <nuclearcat@...learcat.com>
Cc: netdev@...r.kernel.org, kaber@...sh.net, davem@...emloft.net
Subject: Re: /proc/net/sockstat invalid memory accounting or memory leak in
latest kernels?
On Fri, 2014-07-18 at 11:12 +0300, Denys Fedoryshchenko wrote:
> More updates. Now i found out how to see if tcp are under memory
> pressure mode, i guess when it is active, speed might degrade. Now
> almost all sockets are released, is it normal that tcp pressure still
> "yes" ?
>
> balancer-backup ~ # cat /proc/net/protocols
> protocol size sockets memory press maxhdr slab module cl co di ac
> io in de sh ss gs se re sp bi br ha uh gp em
> PACKET 1216 0 -1 NI 0 no kernel n n n n
> n n n n n n n n n n n n n n n
> ALG 624 0 0 NI 0 no kernel n n n n
> n n n n n n n n n n n n n n n
> UNIX 832 1 -1 NI 0 yes kernel n n n n
> n n n n n n n n n n n n n n n
> UDP-Lite 800 0 -1 NI 0 yes kernel y y y n
> y y y n y y y y y n y y y y n
> PING 760 0 -1 NI 0 yes kernel y y y n
> n y n n y y y y n y y y y y n
> RAW 768 0 -1 NI 0 yes kernel y y y n
> y y y n y y y y n y y y y n n
> UDP 800 1 0 NI 0 yes kernel y y y n
> y n y n y y y y y n y y y y n
> TCP 1608 24 1823119 yes 208 yes kernel y y y
> y y y y y y y y y y n y y y y y
> NETLINK 992 0 -1 NI 0 no kernel n n n n
> n n n n n n n n n n n n n n n
> balancer-backup ~ # cat /proc/net/sockstat
> sockets: used 51
> TCP: inuse 21 orphan 13 tw 2 alloc 21 mem 1823120
> UDP: inuse 1 mem 0
> UDPLITE: inuse 0
> RAW: inuse 0
> FRAG: inuse 0 memory
tcp believes its under pressure because of some bug on accounting.
If you change /proc/sys/net/ipv4/tcp_mem (3rd value), it might say it
is not under pressure.
I am taking a look, thanks again for the report.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists