LWN.net Logo

TSO sizing and the FQ scheduler

TSO sizing and the FQ scheduler

Posted Aug 29, 2013 12:01 UTC (Thu) by k3ninho (subscriber, #50375)
Parent article: TSO sizing and the FQ scheduler

>Whenever a new flow is added, a pass is made over the associated red-black tree to clean out flows that have been detached for a sufficiently long time — three seconds in the current patch.

Given the discussion is of flow rates and queues which reflect known information about the state of the network, it seems crazy that this is a fixed number. Maybe the maths has been done offline to find the 99th percentile of an appropriate lognormal for TCP flow duration, but the approach of sampling and making predictions which is used in the other components of this patch suggests that calculating an estimate of the mean at clean-up time could inform the clean-out expiry timer. That might be best done with some floating point maths, unfortunately a kernel no-no. But like many statisticians say, 'we can make an approximation'..!

K3n.


(Log in to post comments)

TSO sizing and the FQ scheduler

Posted Sep 3, 2013 9:11 UTC (Tue) by DavidS (subscriber, #84675) [Link]

I'd rather guess that the three seconds come from "if a connection hadn't had packets in three seconds, the scheduler might as well treat the next packet like a new one."

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds