Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*\[PATCH\]\s+Improve\s+behaviour\s+of\s+Netlink\s+Sockets\s*$/: 186 ]

Total 186 documents matching your query.

141. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Pablo Neira <pablo@xxxxxxxxxxx>
Date: Fri, 24 Sep 2004 03:19:12 +0200
Hi Herbert, Since netlink is being used for a lot of things now, it may be time to obsolete those assumptions. I'm not against changes. But so far I haven't seen anything concrete about what these ne
/archives/netdev/2004-09/msg02552.html (13,059 bytes)

142. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 23 Sep 2004 22:56:37 -0400
The idea is to reproduce the overun ;-> Probably debug prints slowing things; you could of course do some batching like so: $TC actions add \ action drop index 1 action drop index 2 action drop index
/archives/netdev/2004-09/msg02554.html (12,776 bytes)

143. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 23 Sep 2004 23:04:02 -0400
So lets start by using the following logic: 1) If you made the socket buffers small enough compared to message size/arrival rate, then an overrun will happen corrollary: 2) If you made the message si
/archives/netdev/2004-09/msg02555.html (13,009 bytes)

144. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 13:20:02 +1000
OK, I've just tried 4096 and nothing: 21619 socket(PF_NETLINK, SOCK_RAW, 0) = 3 21619 setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 21619 setsockopt(3, SOL_SOCKET, SO_RCVBUF, [4096], 4) = 0 ..
/archives/netdev/2004-09/msg02557.html (13,862 bytes)

145. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 13:24:40 +1000
There are three possible netlink usages: 1) Request/response: No overruns should occur. 2) Dump: No overruns should occur because of dump only fills in the next one when the previous one is taken off
/archives/netdev/2004-09/msg02558.html (13,225 bytes)

146. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 13:28:30 +1000
Can someone please tell me why we need to do this at all? Most of the dump messages should be close to PAGE_SIZE anyway, no? -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~}
/archives/netdev/2004-09/msg02559.html (12,834 bytes)

147. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Thu, 23 Sep 2004 22:39:09 -0700
It's moreso for the "give me a single entry" requests than for dumps. NLMSG_GOODSIZE is used for all cases.
/archives/netdev/2004-09/msg02561.html (11,988 bytes)

148. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 16:26:04 +1000
I see. NLMSG_GOODSIZE is definitely a waste in that case. I'd let the responder allocate that page skb as they do now. After all what we lack is space on the receive queue, not kernel memory. So long
/archives/netdev/2004-09/msg02573.html (13,377 bytes)

149. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Fri, 24 Sep 2004 10:58:55 -0700
This is the crux of the problem, you don't know how big the response will be until you look at the whole object you are returning. This is because there are usually an unknown number of attributes th
/archives/netdev/2004-09/msg02590.html (12,385 bytes)

150. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 25 Sep 2004 08:06:51 +1000
I understand. What I'm saying is that some of these places already know how big it is going to be. See tcp_diag.c for an example. So we shouldn't impose the copy over head on everyone. I agree comple
/archives/netdev/2004-09/msg02599.html (13,217 bytes)

151. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 25 Sep 2004 08:28:03 +1000
Here is a demonstration of what I meant. Please note that this is totally untested. We could just make the last argument of netlink_unicast into a flag so that it can do this directly. Cheers, -- Vis
/archives/netdev/2004-09/msg02600.html (12,839 bytes)

152. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 08:41:09 -0400
Try harder! ;-> Ok, I will go and lookup my test machine and get back with an exact test case (problem is whenever i have time to scan my emails i am at least 30 minutes away from that box). cheers,
/archives/netdev/2004-09/msg02649.html (12,431 bytes)

153. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 08:46:30 -0400
Cant assume this. A request for an ACK is fine. A get is a different ball game. I think the discussion to have a mini-slab-like allocator for netlink that i see going on in other thread is what we ne
/archives/netdev/2004-09/msg02650.html (13,120 bytes)

154. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 08:53:11 -0400
20 bytes for the header; typical messages and attributes are in the range of 20 bytes. In the problematic case #2 or #3 (from what i have seen) in your previous email, you get events being broadcast
/archives/netdev/2004-09/msg02651.html (12,327 bytes)

155. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 08:59:05 -0400
You are probably talking past each other - to me you seem to be saying the same thing. A "manager" of some form is required. cheers, jamal
/archives/netdev/2004-09/msg02652.html (12,383 bytes)

156. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 07:36:07 +1000
What I meant is that this is a case where the maximum size of the reply can be known at compile time. So assuming that your socket receive size is set correctly, it should never overflow. You still h
/archives/netdev/2004-09/msg02690.html (13,028 bytes)

157. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 22:43:27 -0400
Sorry, keep forgetting to retrieve it from other remote non-networked test machine. The idea is: Create something that generates lots of messages. Make socket buffer small (4096 is good nuf) cheers,
/archives/netdev/2004-09/msg02713.html (12,205 bytes)

158. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 12:46:14 +1000
No that's not what I meant. What I mean is what is the real-world scenario where you're going to be doing 3). Only when we know where the messages are coming from and what they are can we decide on a
/archives/netdev/2004-09/msg02714.html (12,757 bytes)

159. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: jamal <hadi@xxxxxxxxxx>
Date: 27 Sep 2004 23:06:12 -0400
The real world scenario is just that: Massive events generated from the kernel for example Ok, heres a sample testcase i created just now following those same instructions i gave you ;-> -- ifconfig
/archives/netdev/2004-09/msg02715.html (13,319 bytes)

160. Re: [PATCH] Improve behaviour of Netlink Sockets (score: 1)
Author: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 13:23:21 +1000
But ifconfig doesn't use netlink. So I presume you're referring to some other application that's listening for interface/address/route events. Firstly thanks this is exactly what I've been asking for
/archives/netdev/2004-09/msg02716.html (13,721 bytes)


This search system is powered by Namazu