netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [DEBUG]: sk_forward_alloc assertion failures
@ 2005-01-16 23:03 Nancy Milliner
  0 siblings, 0 replies; 24+ messages in thread
From: Nancy Milliner @ 2005-01-16 23:03 UTC (permalink / raw)
  To: netdev

Dave,

I've been running SPECweb99 with this patch all weekend and have not 
been able to produce any kernel assertions at all.  I'm currently 
running RH kernel 2.6.9-5.EL.root and have been able to reproduce at 
will when setting /proc/net/ipv4/tcp_tso_win_divisor to 1, 2 or 4.

Let me know when you have something else ready to test.

===== net/ipv4/tcp.c 1.88 vs edited =====
--- 1.88/net/ipv4/tcp.c	2005-01-06 15:13:39 -08:00
+++ edited/net/ipv4/tcp.c	2005-01-13 19:44:36 -08:00
@@ -664,7 +664,7 @@
  			if (!sk_stream_memory_free(sk))
  				goto wait_for_sndbuf;

-			skb = sk_stream_alloc_pskb(sk, 0, tp->mss_cache,
+			skb = sk_stream_alloc_pskb(sk, 0, 0,
  						   sk->sk_allocation);
  			if (!skb)
  				goto wait_for_memory;
@@ -689,6 +689,9 @@

  		skb->len += copy;
  		skb->data_len += copy;
+		skb->truesize += copy;
+		sk->sk_wmem_queued += copy;
+		sk->sk_forward_alloc -= copy;
  		skb->ip_summed = CHECKSUM_HW;
  		tp->write_seq += copy;
  		TCP_SKB_CB(skb)->end_seq += copy;

^ permalink raw reply	[flat|nested] 24+ messages in thread
* [DEBUG]: sk_forward_alloc assertion failures
@ 2005-01-14  1:12 David S. Miller
  2005-01-14  1:25 ` Anton Blanchard
                   ` (2 more replies)
  0 siblings, 3 replies; 24+ messages in thread
From: David S. Miller @ 2005-01-14  1:12 UTC (permalink / raw)
  To: anton; +Cc: netdev, herbert


Anton, can you and the other IBM folks who can reproduce
the problem give this test patch a whirl?

Herbert and I aren't exactly sure what the exact sequence
of events is that causes the problem, but we do know that
this code is highly suspect.

[ BTW, Herbert, it just occurred to me that these adjustments
  are incorrect for the skb->data pulling case since we really
  aren't liberating the data. ]

Thanks.

===== net/ipv4/tcp_output.c 1.75 vs edited =====
--- 1.75/net/ipv4/tcp_output.c	2004-12-28 10:22:40 -08:00
+++ edited/net/ipv4/tcp_output.c	2005-01-13 16:45:26 -08:00
@@ -580,12 +580,12 @@
 
 	TCP_SKB_CB(skb)->seq += len;
 	skb->ip_summed = CHECKSUM_HW;
-
+#if 0
 	skb->truesize	     -= len;
 	sk->sk_queue_shrunk   = 1;
 	sk->sk_wmem_queued   -= len;
 	sk->sk_forward_alloc += len;
-
+#endif
 	/* Any change of skb->len requires recalculation of tso
 	 * factor and mss.
 	 */

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

end of thread, other threads:[~2005-01-17 20:40 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-16 23:03 [DEBUG]: sk_forward_alloc assertion failures Nancy Milliner
  -- strict thread matches above, loose matches on Subject: below --
2005-01-14  1:12 David S. Miller
2005-01-14  1:25 ` Anton Blanchard
2005-01-14  4:19   ` David S. Miller
2005-01-14 11:16     ` Herbert Xu
2005-01-14 12:03       ` Herbert Xu
2005-01-14 19:03         ` David S. Miller
2005-01-14 20:34           ` Herbert Xu
2005-01-14 21:27             ` David S. Miller
2005-01-14 21:38               ` Herbert Xu
2005-01-14 21:36                 ` David S. Miller
2005-01-14 21:55                   ` Herbert Xu
2005-01-14 22:04                     ` David S. Miller
2005-01-14 22:47                       ` Herbert Xu
2005-01-15  4:55                         ` David S. Miller
2005-01-15  5:45                           ` Herbert Xu
2005-01-17 20:37                             ` David S. Miller
2005-01-17 20:40                               ` Herbert Xu
2005-01-14 21:34         ` Herbert Xu
2005-01-14  1:37 ` Herbert Xu
2005-01-14  4:09   ` David S. Miller
2005-01-14  1:50 ` Sridhar Samudrala
2005-01-14  2:10   ` Herbert Xu
2005-01-14  3:44     ` David S. 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).