Re: [PATCH] Improve behaviour of Netlink Sockets
From: jamal <hidden>
Date: 2004-09-21 11:47:45
On Mon, 2004-09-20 at 17:59, Herbert Xu wrote:
quoted
jamal wrote:quoted
Agreed. For a test i typically have something adding say 10K items (actions in my case, but could be ipsec policies) and then try to dump them. On my xeon i get an overrun after about 6K items are dumped.Good. That's something we can look at easily. Dumping is meant to be self-controlling as each packet naturally stops the next one from being sent until the user has done a recvmsg.
A get which results in a huge response (cant think of anything that fits there - I have some stuff i havent released yet which applies) will also have the same. Note by "large" implies it will overflow socket buffer (and a setsock to increase the size will delay the problem from happening). Note, that an overrun in a dump results in lost messages. Maybe we can detect that and reset the cb pointers appropriately? Have to look at the code. cheers, jamal