netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux SMP on 2.4.18-3
@ 2002-10-27  8:27 Cheng Jin
  2002-10-28 12:47 ` jamal
  0 siblings, 1 reply; 9+ messages in thread
From: Cheng Jin @ 2002-10-27  8:27 UTC (permalink / raw)
  To: netdev

Hi,

Please excuse me for asking questions on a rather old kernel.  We decided
to do kernel modificatios against 2.4.18-3 so we can't back it out now.

On the SMP test machine we have at the lab (Dual 2.4 Ghz Xeons with one
SysKonnect Gigabit Ethernet card, SuperMicro P4DP6 MB), I observed TCP
functions being called simultaneously by both processors.  What I did was
to simply increment a counter (init to zero) and check whether it is one
in the functions under suspicion.  Sure enough, I see a lot of messages
printed out saying it is two.  Admittedly, my counter var is not protected
either, but seeing it becoming 2 is proof enough that the functions are
entered simultaneously (yes I decrement the counter before functions
return).

I looked at the code fairly extensively, and I didn't see any lock for
these functions, tcp_send_skb, tcp_push_one, update_send_head, where
packets_out gets incremented.  The problem I was having was that
tp->packets_out got out of sync with the number of unacked packets on the
sk->write_queue.

I would like to confirm with people that are involved with kernel
developement that what I observed was indeed correct.

Thanks,

Cheng

Lab # 626 395 8820

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

end of thread, other threads:[~2002-11-04 13:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-27  8:27 Linux SMP on 2.4.18-3 Cheng Jin
2002-10-28 12:47 ` jamal
2002-10-28 18:26   ` Cheng Jin
2002-10-30 19:03     ` Robert Olsson
2002-10-31  7:55       ` Network Device-Driver/Layer Implementation: Help required Harish Kulkarni
2002-10-31 16:35         ` James R. Leu
2002-11-04 13:10     ` Linux SMP on 2.4.18-3 jamal
2002-10-30  1:40   ` Boris Protopopov
2002-10-30  1:54     ` Jeff Garzik

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).