lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 03 Mar 2011 16:18:17 +0100
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Fabio Checconi <fchecconi@...il.com>
Cc:	Stephen Hemminger <shemminger@...tta.com>,
	David Miller <davem@...emloft.net>,
	Luigi Rizzo <rizzo@....unipi.it>, netdev@...r.kernel.org,
	Paolo Valente <paolo.valente@...more.it>
Subject: Re: [PATCH] sched: QFQ - quick fair queue scheduler (v2)

Le jeudi 03 mars 2011 à 11:40 +0100, Eric Dumazet a écrit :
> Le jeudi 03 mars 2011 à 09:27 +0100, Eric Dumazet a écrit :
> 
> > I am going to test an updated version, thanks for all these hints !
> > 
> 
> Same problem in qfq_qlen_notify()
> 
> Should use :
> 
> struct qfq_sched *q = qdisc_priv(sch);
> 
> 
> After a stress (and no more trafic) I still have some packets in
> backlog:
> 
> (8 packets here)
> 
> # tc -s -d qdisc show dev dummy0
> qdisc cbq 1: root refcnt 2 rate 1000Mbit cell 8b (bounded,isolated) prio no-transmit/8 weight 1000Mbit allot 1514b 
> level 2 ewma 5 avpkt 1000b maxidle 0us 
>  Sent 109916000 bytes 549580 pkt (dropped 350412, overlimits 1180608 requeues 0) 
>  backlog 0b 8p requeues 0 
>   borrowed 0 overactions 0 avgidle 125 undertime 0
> qdisc qfq 11: parent 1:11 
>  Sent 109916000 bytes 549580 pkt (dropped 350412, overlimits 0 requeues 0) 
>  rate 2848bit 2pps backlog 0b 8p requeues 0 
> # tc -s -d class show dev dummy0
> class cbq 1:11 parent 1:1 leaf 11: rate 40000Kbit cell 128b mpu 64b (bounded) prio 2/2 weight 40000Kbit allot 20000b 
> level 0 ewma 5 avpkt 1400b maxidle 0us 
>  Sent 109916000 bytes 549580 pkt (dropped 350412, overlimits 675712 requeues 0) 
>  rate 1516Kbit 947pps backlog 0b 8p requeues 0 
>   borrowed 0 overactions 285254 avgidle -22 undertime -24
> class cbq 1: root rate 1000Mbit cell 8b (bounded,isolated) prio no-transmit/8 weight 1000Mbit allot 1514b 
> level 2 ewma 5 avpkt 1000b maxidle 0us 
>  Sent 109916000 bytes 549580 pkt (dropped 0, overlimits 0 requeues 0) 
>  backlog 0b 0p requeues 0 
>   borrowed 0 overactions 0 avgidle 125 undertime 0
> class cbq 1:1 parent 1: rate 1000Mbit cell 64b mpu 64b (bounded) prio 1/1 weight 1000Mbit allot 10000b 
> level 1 ewma 5 avpkt 1500b maxidle 0us 
>  Sent 109916000 bytes 549580 pkt (dropped 0, overlimits 0 requeues 0) 
>  rate 1516Kbit 947pps backlog 0b 0p requeues 0 
>   borrowed 0 overactions 0 avgidle 125 undertime 0
> class qfq 11:10 root weight 1600 maxpkt 2048 
>  Sent 200 bytes 1 pkt (dropped 18181, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:1 root weight 100 maxpkt 1100 
>  Sent 2731200 bytes 13656 pkt (dropped 40889, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:2 root weight 200 maxpkt 1200 
>  Sent 10899800 bytes 54499 pkt (dropped 47, overlimits 0 requeues 0) 
>  rate 24bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:3 root weight 300 maxpkt 1300 
>  Sent 12714400 bytes 63572 pkt (dropped 65, overlimits 0 requeues 0) 
>  rate 32bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:4 root weight 400 maxpkt 1400 
>  Sent 400 bytes 2 pkt (dropped 36362, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:5 root weight 500 maxpkt 1500 
>  Sent 400 bytes 2 pkt (dropped 45452, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:6 root weight 600 maxpkt 1600 
>  Sent 800 bytes 4 pkt (dropped 27269, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:7 root weight 700 maxpkt 1700 
>  Sent 600 bytes 3 pkt (dropped 45452, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:8 root weight 800 maxpkt 1800 
>  Sent 1000 bytes 5 pkt (dropped 72722, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:9 root weight 900 maxpkt 1900 
>  Sent 1200 bytes 6 pkt (dropped 63631, overlimits 0 requeues 0) 
>  rate 0bit 0pps backlog 200b 0p requeues 0 
> class qfq 11:a root weight 1000 maxpkt 2000 
>  Sent 14535200 bytes 72676 pkt (dropped 51, overlimits 0 requeues 0) 
>  rate 32bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:b root weight 1100 maxpkt 2048 
>  Sent 14531200 bytes 72656 pkt (dropped 72, overlimits 0 requeues 0) 
>  rate 32bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:c root weight 1200 maxpkt 2048 
>  Sent 10905800 bytes 54529 pkt (dropped 16, overlimits 0 requeues 0) 
>  rate 24bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:d root weight 1300 maxpkt 2048 
>  Sent 14538200 bytes 72691 pkt (dropped 36, overlimits 0 requeues 0) 
>  rate 32bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:e root weight 1400 maxpkt 2048 
>  Sent 18162200 bytes 90811 pkt (dropped 96, overlimits 0 requeues 0) 
>  rate 40bit 0pps backlog 0b 0p requeues 0 
> class qfq 11:f root weight 1500 maxpkt 2048 
>  Sent 10895000 bytes 54475 pkt (dropped 71, overlimits 0 requeues 0) 
>  rate 24bit 0pps backlog 0b 0p requeues 0 
> 
> 
> 

With debugging, I see dequeue() returns early because bitmaps[ER] is
null


	if (!q->bitmaps[ER]) {
		pr_err("qfq_dequeue bitmaps[ER] is null, return NULL\n");
		return NULL;
	}


[ 3319.540984] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.544098] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.547184] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.550272] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.553354] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.556435] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.559533] qfq calc_index: W = 1, L = 2048, I = 19
[ 3319.562627] qfq calc_index: W = 1, L = 2048, I = 19
[ 3322.993412] qfq_enqueue: cl = 110004
[ 3322.993457] qfq enqueue: new state 0 0x80000 S 0 F 214748364800 V 0
[ 3322.993493] qfq dequeue: cl ffff880077d45380 len 200 F 214748364800 now 1638400
[ 3322.993543] qfq slot_scan: grp 19 full 0x0
[ 3322.993575] qfq_enqueue: cl = 110007
[ 3322.993603] qfq enqueue: new state 0 0x80000 S 1638400 F 214750003200 V 1638400
[ 3322.993653] qfq_enqueue: cl = 110006
[ 3322.993684] qfq dequeue: cl ffff880077d45100 len 200 F 214750003200 now 3276800
[ 3322.993735] qfq slot_scan: grp 19 full 0x1
[ 3322.993766] qfq_enqueue: cl = 110003
[ 3322.993797] qfq dequeue: cl ffff88011d10e080 len 200 F 214751641600 now 4915200
[ 3322.993847] qfq slot_scan: grp 19 full 0x1
[ 3322.993877] qfq_enqueue: cl = 110002
[ 3322.993906] qfq dequeue: cl ffff880077d45c00 len 200 F 214753280000 now 6553600
[ 3322.997895] qfq slot_scan: grp 19 full 0x1
[ 3322.997925] qfq_enqueue: cl = 110003
[ 3322.997956] qfq_enqueue: cl = 110004
[ 3322.997989] qfq dequeue: cl ffff880077d45380 len 200 F 429496729600 now 8192000
[ 3322.998040] qfq slot_scan: grp 19 full 0x1
[ 3322.998070] qfq_enqueue: cl = 110006
[ 3322.998099] qfq_enqueue: cl = 110008
[ 3322.998130] qfq_enqueue: cl = 110002
[ 3322.998160] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998192] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998224] qfq_enqueue: cl = 110002
[ 3322.998249] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998276] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998305] qfq_enqueue: cl = 110007
[ 3322.998333] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998363] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998395] qfq_enqueue: cl = 110001
[ 3322.998421] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998449] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998478] qfq_enqueue: cl = 110004
[ 3322.998502] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998530] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998558] qfq_enqueue: cl = 110006
[ 3322.998585] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998616] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998649] qfq_enqueue: cl = 110004
[ 3322.998677] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998708] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998739] qfq_enqueue: cl = 110007
[ 3322.998763] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998790] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998832] qfq_enqueue: cl = 110004
[ 3322.998875] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998907] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998937] qfq_enqueue: cl = 110001
[ 3322.998964] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.998997] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999029] qfq_enqueue: cl = 110003
[ 3322.999057] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999087] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999120] qfq_enqueue: cl = 110007
[ 3322.999147] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999178] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999210] qfq_enqueue: cl = 110001
[ 3322.999234] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999261] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999290] qfq_enqueue: cl = 110005
[ 3322.999316] qfq_dequeue bitmaps[ER] is null, return NULL
[ 3322.999343] qfq_dequeue bitmaps[ER] is null, return NULL

[...]

Only 5 packets sent ...

qdisc cbq 1: root refcnt 2 rate 1000Mbit cell 8b (bounded,isolated) prio no-transmit/8 weight 1000Mbit allot 1514b 
level 2 ewma 5 avpkt 1000b maxidle 0us 
 Sent 1000 bytes 5 pkt (dropped 0, overlimits 82 requeues 0) 
 backlog 0b 85p requeues 0 
  borrowed 0 overactions 0 avgidle 125 undertime 0
qdisc qfq 11: parent 1:11 
 Sent 1000 bytes 5 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 85p requeues 0 
qdisc pfifo 8011: parent 11:1 limit 30p
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2600b 13p requeues 0 
qdisc pfifo 8012: parent 11:2 limit 30p
 Sent 200 bytes 1 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2400b 12p requeues 0 
qdisc pfifo 8013: parent 11:3 limit 30p
 Sent 200 bytes 1 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2200b 11p requeues 0 
qdisc pfifo 8014: parent 11:4 limit 30p
 Sent 400 bytes 2 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2400b 12p requeues 0 
qdisc pfifo 8015: parent 11:5 limit 30p
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2000b 10p requeues 0 
qdisc pfifo 8016: parent 11:6 limit 30p
 Sent 200 bytes 1 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2000b 10p requeues 0 
qdisc pfifo 8017: parent 11:7 limit 30p
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 2400b 12p requeues 0 
qdisc pfifo 8018: parent 11:8 limit 30p
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 backlog 1000b 5p requeues 0 


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ