TCP performance question

2009-02-27 Thread Michael Tüxen
Dear all, we have used a client to do while (1) { send(fd, buffer, n); } against a discard server on a different machine. The sender is running FreeBSD 7.1, for the receiver we used two different machines, one running FreeBSD 7.1 another one Mac OS X 10.5.6. The machines are old, so I do

Re: TCP performance question

2001-10-01 Thread Tsuchiya Yoshihiro
>Yoshi, >I have attached a patch. Let me know if this fixes the problem. > >jayanth > Jayanth, thanks for the patch. I tested with it, and the system performs nicely. I appreciate your help. Yoshi To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of th

Re: TCP performance question

2001-09-28 Thread Alfred Perlstein
* jayanth <[EMAIL PROTECTED]> [010928 14:43] wrote: > Yoshi, > I have attached a patch. Let me know if this fixes the problem. > > jayanth cool, but.. > --- tcp_output.c Fri Sep 28 11:15:32 2001 > +++ tcp_output.c.new Fri Sep 28 12:05:03 2001 > @@ -133,7 +133,7 @@ >* If there is s

Re: TCP performance question

2001-09-28 Thread jayanth
Yoshi, I have attached a patch. Let me know if this fixes the problem. jayanth [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > > > This issue is a combination of mbuf cluster size and the > > TF_MORETOCOME flag. > > > if (len) { > > if (len == tp->t_ma

Re: TCP performance question

2001-09-27 Thread jayanth
Probably add a new flag TF_IDLE that is true, if there is more data to send when the connection was idle. This way the next time around the idle variable will be true if the TF_IDLE flag is true and if we can empty the socket buffer all the data will be sent. Will send you a patch soon. jayanth

Re: TCP performance question

2001-09-26 Thread tsuchiya
> This issue is a combination of mbuf cluster size and the > TF_MORETOCOME flag. > if (len) { > if (len == tp->t_maxseg) > goto send; > if (!(tp->t_flags & TF_MORETOCOME) && >

Re: TCP performance question

2001-09-26 Thread jayanth
I think this is a performance issue and it would be nice to send the 589 bytes of data immediately rather than wait for the delayed ack from the other end. This issue is a combination of mbuf cluster size and the TF_MORETOCOME flag. 2049 is one byte more than the cluster size, so the first 14

Re: TCP performance question

2001-09-25 Thread tsuchiya
> > > > > > I tried to say that it had no effect between FreeBSD4.3 and Solaris, >on my > > > problem. That's what I did previously. > > > > > > I found discussion on "delayed ack problem"(January 24 and 25) in >this > > > m

Re: TCP performance question

2001-09-24 Thread tsuchiya
> > > > I tried to say that it had no effect between FreeBSD4.3 and Solaris, on my > > problem. That's what I did previously. > > > > I found discussion on "delayed ack problem"(January 24 and 25) in this > > mailing list. Though still do not understand why del

Re: TCP performance question

2001-09-24 Thread Mike Silbersack
On Tue, 25 Sep 2001 [EMAIL PROTECTED] wrote: > Sorry, it seems it works between two FreeBSD machines. > > I tried to say that it had no effect between FreeBSD4.3 and Solaris, on my > problem. That's what I did previously. > > I found discussion on "delayed ack problem"(January 24 and 25) in thi

Re: TCP performance question

2001-09-24 Thread tsuchiya
> On Fri, 21 Sep 2001, Tsuchiya Yoshihiro wrote: > > > Mike Silbersack wrote: > > > > >Try disabling delayed ACKs and see how that affects your results. The > > >default delay for delayed acks is 100ms. > > > > > >sysctl -w net.inet.tcp.delayed_ack=0 >

Re: TCP performance question

2001-09-21 Thread Mike Silbersack
On Fri, 21 Sep 2001, Tsuchiya Yoshihiro wrote: > Mike Silbersack wrote: > > >Try disabling delayed ACKs and see how that affects your results. The > >default delay for delayed acks is 100ms. > > > >sysctl -w net.inet.tcp.delayed_ack=0 > > > > I found a machine with FreeBSD4.3 and tried it, but

RE: TCP performance question

2001-09-21 Thread Tony Saign
Just tried it on a 4.4-RELEASE box and it appears to work :) * -Original Message- * From: [EMAIL PROTECTED] * [mailto:[EMAIL PROTECTED]]On Behalf Of Tsuchiya Yoshihiro * Sent: Friday, September 21, 2001 1:28 AM * To: Mike Silbersack * Cc: [EMAIL PROTECTED] * Subject: Re: TCP performance

Re: TCP performance question

2001-09-21 Thread Tsuchiya Yoshihiro
Mike Silbersack wrote: >On Fri, 21 Sep 2001 [EMAIL PROTECTED] wrote: > >>and we changed the size from 1 to 1 byte and measured the time of >>read/write pair on the server. Usually the measured time is >>around or less than 1 msec, however it is always 100msec when the size is >>between 2049

Re: TCP performance question

2001-09-21 Thread Mike Silbersack
On Fri, 21 Sep 2001 [EMAIL PROTECTED] wrote: > and we changed the size from 1 to 1 byte and measured the time of > read/write pair on the server. Usually the measured time is > around or less than 1 msec, however it is always 100msec when the size is > between 2049 and 2919 byte or between

TCP performance question

2001-09-21 Thread tsuchiya
Hello, we observed that TCP is somewhat slow with FreeBSD. Does anybody know this kind of behavior?: We have investigated the problem with simple program like: client server for(){ for(){ write(fd, buf, size); read (fd, buf, size);