Re: [PATCH] UDPCP Communication Protocol

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Friday, December 31, 2010 - 4:54 am

Le vendredi 31 décembre 2010 à 12:23 +0100, Stefani Seibold a écrit :

Only if user land is buggy it breaks. Where is your user land code so
that I can show you the bug ?

This dst refcount avoidance is absolutely crucial and we worked hard on
it.


Silently doing a revert is not an option. How must I tell this to you ?



You can fix it. Really. If not, you can pay me and I'll fix it for you.


Where do you see an "accuse" ? Because you tried to silently "fix" the
thing without telling us how the damn thing was broken ? Come on !


Thats pretty simple. dst refcount was the only contention point in UDP
stack. Yes, its not a joke.

Re introducing an atomic_inc() at each incoming packet, and atomic_dec()
each time user process dequeues the packet can have a huge impact.

One order of magnitude actually. Depending on number of cpus fighting on
this cache line, this ranges from 20% to 4000% slowdown.

Some people handle thousands of UDP sockets on one machine. Your UDPCP
apparently handle very few sockets (you have one central linked list),
so your use case probably dont care of performance.



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] UDPCP Communication Protocol, stefani, (Fri Dec 31, 2:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:00 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:15 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:22 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 3:29 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:35 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 3:41 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Fri Dec 31, 4:23 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:25 am)
Re: [PATCH] UDPCP Communication Protocol, Eric Dumazet, (Fri Dec 31, 4:54 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stephen Hemminger, (Fri Dec 31, 10:46 am)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:28 pm)
Re: [PATCH] UDPCP Communication Protocol, Stefani Seibold, (Sat Jan 1, 2:40 pm)