All of lore.kernel.org
 help / color / mirror / Atom feed
* netlink & rhashtable status
@ 2015-05-13  5:30 Eric Dumazet
  2015-05-13  5:40 ` Herbert Xu
  0 siblings, 1 reply; 48+ messages in thread
From: Eric Dumazet @ 2015-05-13  5:30 UTC (permalink / raw)
  To: David Miller, Thomas Graf, Herbert Xu; +Cc: netdev


linux-3.17, 3.18, 3.19 and 4.0.2 have issues with netlink/rhashtable,
making things like getaddrinfo() not working after a while :

socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=24658, groups=00000000}, [12]) = 0
sendto(3, "\24\0\0\0\26\0\1\3)\320RU\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = -1 ECONNREFUSED (Connection refused)


lpaa23:~# tc qd
Cannot send dump request: Connection refused
lpaa23:~# ip ro ls
Cannot send dump request: Connection refused


Before the problem we have following visible sockets.
 
lpaa23:~# cat /proc/net/netlink 
sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks     Drops     Inode
ffff883ff23e7400 0   0      00000000 0        0        0 2        0        3       
ffff883fff0f5800 4   0      00000000 0        0        0 2        0        13314   
ffff881ff0f41800 8   0      00000000 0        0        0 2        0        11308   
ffff883ff0902400 9   0      00000000 0        0        0 2        0        10241   
ffff883ff167c800 10  0      00000000 0        0        0 2        0        9719    
ffff881ff13cfc00 11  0      00000000 0        0        0 2        0        2051    
ffff881fde863800 15  7460   00000001 0        0        0 2        0        509     
ffff883fff055000 15  4294963199 00000001 0        0        0 2        0        30754   
ffff881ff2204c00 15  0      00000000 0        0        0 2        0        5       
ffff881ff13cf400 16  0      00000000 0        0        0 2        0        2054    
ffff881ff0a0f000 20  0      00000000 0        0        0 2        0        2084    


When problem happens we have : (note the first socket disappeared)

lpaa23:~# cat /proc/net/netlink 
sk       Eth Pid    Groups   Rmem     Wmem     Dump     Locks     Drops     Inode
ffff883fff0f5800 4   0      00000000 0        0        0 2        0        13314   
ffff881ff0f41800 8   0      00000000 0        0        0 2        0        11308   
ffff883ff0902400 9   0      00000000 0        0        0 2        0        10241   
ffff883ff167c800 10  0      00000000 0        0        0 2        0        9719    
ffff881ff13cfc00 11  0      00000000 0        0        0 2        0        2051    
ffff881fde863800 15  7460   00000001 0        0        0 2        0        509     
ffff883fff055000 15  4294963199 00000001 0        0        0 2        0        30754   
ffff881ff2204c00 15  0      00000000 0        0        0 2        0        5       
ffff881ff13cf400 16  0      00000000 0        0        0 2        0        2054    
ffff881ff0a0f000 20  0      00000000 0        0        0 2        0        2084    


We probably need to find out what fixes are needed for stable kernels,
if not already done, sorry if I missed something.

Thanks

^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2015-06-27  7:09 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13  5:30 netlink & rhashtable status Eric Dumazet
2015-05-13  5:40 ` Herbert Xu
2015-05-13  6:15   ` Eric Dumazet
2015-05-13  6:20     ` Herbert Xu
2015-05-13 13:04       ` Eric Dumazet
2015-05-13 16:18         ` Eric Dumazet
2015-05-13 16:35           ` David Miller
2015-05-14  2:55             ` Herbert Xu
2015-05-14  2:53           ` Herbert Xu
2015-05-14  3:17             ` Eric Dumazet
2015-05-14  3:34               ` Herbert Xu
2015-05-14  3:58                 ` Eric Dumazet
2015-05-14  4:13                   ` Eric Dumazet
2015-05-14  4:16                     ` Herbert Xu
2015-05-14  4:21                       ` Herbert Xu
2015-05-14  4:38                         ` Eric Dumazet
2015-05-14  5:03                           ` Herbert Xu
2015-05-14  5:56                         ` Red Hat INTERNAL-ONLY kernel discussion list <rhkernel-list@redhat.com> Herbert Xu
2015-05-14  5:58                         ` netlink: Disable insertions/removals during rehash Herbert Xu
2015-05-14  6:02                           ` netlink: Kill bogus lock_sock in netlink_insert Herbert Xu
2015-05-15 16:49                             ` David Miller
2015-05-15 18:01                               ` Eric Dumazet
2015-05-16 16:50                                 ` Eric Dumazet
2015-05-16 20:58                                   ` David Miller
2015-05-15 17:02                             ` David Miller
2015-05-16 12:32                               ` Herbert Xu
2015-05-16 13:40                                 ` [net] netlink: Make autobind rover an atomic_t Herbert Xu
2015-05-16 13:50                                   ` [net] netlink: Reset portid after netlink_insert failure Herbert Xu
2015-05-16 21:09                                     ` David Miller
2015-05-16 21:08                                   ` [net] netlink: Make autobind rover an atomic_t David Miller
2015-05-17  2:45                                     ` [net-next] netlink: Use random autobind rover Herbert Xu
2015-05-18  3:44                                       ` David Miller
2015-05-14 14:37                           ` netlink: Disable insertions/removals during rehash Eric Dumazet
2015-05-15  0:06                             ` Herbert Xu
2015-05-20 23:53                               ` Thomas Graf
2015-05-21  0:31                                 ` Eric Dumazet
2015-05-15 17:02                           ` David Miller
2015-05-16 13:16                             ` Herbert Xu
2015-05-16 21:10                               ` David Miller
2015-06-04 16:27                                 ` Guenter Roeck
2015-06-04 18:59                                   ` David Miller
2015-06-04 20:44                                     ` Eric Dumazet
2015-06-04 20:58                                     ` Guenter Roeck
2015-06-05  3:52                                   ` Herbert Xu
2015-06-05  5:27                                     ` Guenter Roeck
2015-06-26 10:44                         ` netlink & rhashtable status Konstantin Khlebnikov
2015-06-27  7:09                           ` Herbert Xu
2015-05-14  4:17                     ` Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.