Re: [RFC] net_sched: mark packet staying on queue too long

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Tuesday, January 4, 2011 - 8:02 am

Le mardi 04 janvier 2011 à 15:19 +0100, Jesper Dangaard Brouer a écrit :

Not at all, I had to install an AQM here at work, I chose SFQ because
the machines only handle tcp flows (and limited number of flows)


Yes I did, but after some reading, I think there is an issue with BLUE,
regarding number of cache misses and complexity because of Bloom filter
(and double hashing)
For workloads with many flows, all bits are marked very fast.

I'd like to try kind of a SFQRED implementation, ie :

classify flows, then instead of using plain pfifo queues (currently done
in SFQ), use N pseudo RED queues.

RED is a bit complex because it tries to make the probability estimation
given queue backlog average. It has to use expensive time services (on
some machines at least, if TSC not available)

My idea was to take into account the delay packets stay in its queue, so
that no extra state is needed : Only take a timestamp when packet is
enqueued, compute delta when dequeued, get 

Px = delta * Prob_per_time_unit;
and drop/mark packet with Px probability.

Ram usage of SFQRED would be the same than SFQ, and cost roughly the
same (because we could use jiffies based time sampling, (and HZ=1000 for
a ms unit)).



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH net-2.6] net_sched: always clone skbs, Changli Gao, (Mon Dec 20, 7:35 am)
Re: [PATCH net-2.6] net_sched: always clone skbs, Eric Dumazet, (Mon Dec 20, 7:37 am)
Re: [PATCH net-2.6] net_sched: always clone skbs, David Miller, (Mon Dec 20, 11:27 am)
Re: [PATCH net-2.6] net_sched: always clone skbs, Jarek Poplawski, (Mon Dec 20, 4:20 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, Eric Dumazet, (Mon Dec 20, 4:28 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, Jarek Poplawski, (Mon Dec 20, 4:52 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, Changli Gao, (Mon Dec 20, 5:21 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, David Miller, (Mon Dec 20, 8:55 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, Changli Gao, (Tue Dec 21, 7:17 am)
Re: [PATCH net-2.6] net_sched: always clone skbs, Jarek Poplawski, (Tue Dec 21, 3:37 pm)
Re: [PATCH net-2.6] net_sched: always clone skbs, Jarek Poplawski, (Thu Dec 23, 4:04 pm)
[RFC] net_sched: mark packet staying on queue too long, Eric Dumazet, (Sun Jan 2, 2:27 pm)
Re: [RFC] net_sched: mark packet staying on queue too long, Stephen Hemminger, (Mon Jan 3, 10:58 am)
[PATCH] sch_red: report backlog information, Eric Dumazet, (Mon Jan 3, 11:11 am)
Re: [PATCH] sch_red: report backlog information, David Miller, (Mon Jan 3, 1:13 pm)
Re: [RFC] net_sched: mark packet staying on queue too long, Jesper Dangaard Brouer, (Tue Jan 4, 7:19 am)
Re: [RFC] net_sched: mark packet staying on queue too long, Eric Dumazet, (Tue Jan 4, 8:02 am)
Re: [RFC] net_sched: mark packet staying on queue too long, Stephen Hemminger, (Tue Jan 4, 9:05 am)