netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* SFQ depth limit
@ 2008-06-28 19:02 Denys Fedoryshchenko
  2008-06-29 19:11 ` [PATCH] " Jarek Poplawski
  0 siblings, 1 reply; 11+ messages in thread
From: Denys Fedoryshchenko @ 2008-06-28 19:02 UTC (permalink / raw)
  To: netdev

Hi

Is there any particular reason to limit SFQ depth to 127 packets?
#define SFQ_DEPTH               128

Just to buffer data on 1Gbps rate for 1 second i need 87k packets, let's say just for 10ms buffer - 873 packets, which is out of limit.
Also if i will use external SFQ flow classifier made by Patrick McHardy, let's say for 4096 ip's, i am not sure also if i hit this limit. 
As i understand, if i increase it - it will increase also data structures size in memory.

And probably i hit some unknown issue.
Example:
tc qdisc add dev eth0 handle 1 root sfq
tc filter add dev eth0 protocol ip pref 1 parent 1: handle 1 flow hash keys dst divisor 1024
MegaRouterCore-KARAM ~ #tc -s qdisc show dev eth0
qdisc sfq 1: root limit 127p quantum 1514b
 Sent 12062 bytes 89 pkt (dropped 3, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
MegaRouterCore-KARAM ~ #tc -s qdisc show dev eth0
qdisc sfq 1: root limit 127p quantum 1514b
 Sent 12824 bytes 94 pkt (dropped 3, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
MegaRouterCore-KARAM ~ #tc -s qdisc show dev eth0
qdisc sfq 1: root limit 127p quantum 1514b
 Sent 13586 bytes 99 pkt (dropped 3, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
MegaRouterCore-KARAM ~ #tc -s -d qdisc show dev eth0
qdisc sfq 1: root limit 127p quantum 1514b flows 127/1024
 Sent 15552 bytes 114 pkt (dropped 8, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
MegaRouterCore-KARAM ~ #tc -s -d qdisc show dev eth0
qdisc sfq 1: root limit 127p quantum 1514b flows 127/1024
 Sent 16232 bytes 118 pkt (dropped 9, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0

after that host is dead...



-- 
------
Technical Manager
Virtual ISP S.A.L.
Lebanon

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-07-27  0:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-28 19:02 SFQ depth limit Denys Fedoryshchenko
2008-06-29 19:11 ` [PATCH] " Jarek Poplawski
2008-06-29 19:38   ` Denys Fedoryshchenko
2008-07-24  4:34   ` David Miller
2008-07-24  8:45     ` Patrick McHardy
2008-07-24  9:49       ` Jarek Poplawski
2008-07-24  9:57         ` Patrick McHardy
2008-07-24 10:53           ` [PATCH] pkt_sched: sch_sfq: revert "dump a real number of flows" patch Jarek Poplawski
2008-07-26  9:29             ` David Miller
2008-07-26 10:58               ` Jarek Poplawski
2008-07-27  0:24                 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).