Re: Netlink overrun / increase rvcbuf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > Is it possible to increase netlink buffering capacity in order to avoid
> > a netlink overrun error ?
> > I'm using netlink to transmit messages from kernel space to an
> > application, which, from time to time, is not fast enough under heavy
> > load ...
> >
> 
> Yes, you can set the size of the socket receive buffer with SO_RCVBUF
> socket option.

Unfortunately, setsockopt is not supported on netlink sockets in kernel
2.4.5 ... 

Thus, I would like to increase sk->rcvbuf, either at netlink level, or
globally by changing SK_RMEM_MAX. Is it a problem to have netlink's
sk->rcvbuf greater than SK_RMEM_MAX ?

include/linux/skbuff.h:#define SK_RMEM_MAX	65535

net/core/sock.c:	sk->rcvbuf	=	sysctl_rmem_default;
                      __u32 sysctl_rmem_default = SK_RMEM_MAX;
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux