public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [UPDATE] Zerocopy, last one today I promise :-)
@ 2001-01-25 14:16 David S. Miller
  2001-01-25 14:52 ` Tobias Ringstrom
  2001-01-25 23:19 ` Anton Blanchard
  0 siblings, 2 replies; 11+ messages in thread
From: David S. Miller @ 2001-01-25 14:16 UTC (permalink / raw)
  To: linux-kernel


Ok, it's pretty fast, but due to a critical bug fix, there's a new
one going up:

ftp://ftp.kernel.org/pub/linux/kernel/people/davem/zerocopy-2.4.1p10-3.diff.gz

o If sock_writepage is called on path via device without SG support,
  the cooked up sock_sendmsg() call needs to switch to KERNEL_DS.
  Discovered and fixed by Ingo Molnar.

This does show that not too many people are testing this all that
thoroughly :-) Basically, any sys_sendfile() over TCP using a network
card other than loopback/3c59x/sunhme/acenic would fail with -EFAULT
or even worse a kernel crash depending upon architecture.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 14:16 [UPDATE] Zerocopy, last one today I promise :-) David S. Miller
@ 2001-01-25 14:52 ` Tobias Ringstrom
  2001-01-25 15:23   ` David S. Miller
  2001-01-25 23:19 ` Anton Blanchard
  1 sibling, 1 reply; 11+ messages in thread
From: Tobias Ringstrom @ 2001-01-25 14:52 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

On Thu, 25 Jan 2001, David S. Miller wrote:
> This does show that not too many people are testing this all that
> thoroughly :-) Basically, any sys_sendfile() over TCP using a network
> card other than loopback/3c59x/sunhme/acenic would fail with -EFAULT
> or even worse a kernel crash depending upon architecture.

You may have said it before, but since you're the one who wants it tested,
I'm sure you're happy to repeat it, right? :-)

I understand from your comment that you want people to run it on all kinds
of hardware, both with and without hw checksumming, but how do you want us
to test it?  Is "my computer works as usual with this patch included" what
you are looking for, or do you want us to run specific tests or
benchmarks?

Should I get a speed increase in a normal TCP session, or do I have to use
sendfile to see any change?  Of course, stability is the most important
factor right now, but it would be nice if I will get a performance boost
from my old tired P90.  Right now it peaks at about 40 Mb/s for TCP.

/Tobias, a soon to be zerocopy patch tester

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 14:52 ` Tobias Ringstrom
@ 2001-01-25 15:23   ` David S. Miller
  2001-01-25 15:40     ` Tigran Aivazian
  2001-01-25 16:10     ` James H. Cloos Jr.
  0 siblings, 2 replies; 11+ messages in thread
From: David S. Miller @ 2001-01-25 15:23 UTC (permalink / raw)
  To: Tobias Ringstrom; +Cc: linux-kernel


Tobias Ringstrom writes:
 > I understand from your comment that you want people to run it on all kinds
 > of hardware, both with and without hw checksumming, but how do you want us
 > to test it?  Is "my computer works as usual with this patch included" what
 > you are looking for, or do you want us to run specific tests or
 > benchmarks?

Basically, make use of the following:

1) TCP applications using normal write/sendmsg to send data
2) TCP applications using sys_sendfile to send data
   (f.e. pftpd or some other server which makes use of Linux's
    sendfile())
3) NFS client side activity

on both cards supporting sg+csum and those which do not.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 15:23   ` David S. Miller
@ 2001-01-25 15:40     ` Tigran Aivazian
  2001-01-25 15:42       ` David S. Miller
  2001-01-25 16:10     ` James H. Cloos Jr.
  1 sibling, 1 reply; 11+ messages in thread
From: Tigran Aivazian @ 2001-01-25 15:40 UTC (permalink / raw)
  To: David S. Miller; +Cc: Tobias Ringstrom, linux-kernel

On Thu, 25 Jan 2001, David S. Miller wrote:
> 3) NFS client side activity

this bit interesting (to me). Do you mean Linux NFS client as present in
the Linux kernel source (nfs filesystem) or just the type of traffic
generated by arbitrary NFS client (e.g. the builtin one used by SPEC SFS
benchmark suite)?

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 15:40     ` Tigran Aivazian
@ 2001-01-25 15:42       ` David S. Miller
  0 siblings, 0 replies; 11+ messages in thread
From: David S. Miller @ 2001-01-25 15:42 UTC (permalink / raw)
  To: Tigran Aivazian; +Cc: Tobias Ringstrom, linux-kernel


Tigran Aivazian writes:
 > On Thu, 25 Jan 2001, David S. Miller wrote:
 > > 3) NFS client side activity
 > 
 > this bit interesting (to me). Do you mean Linux NFS client as present in
 > the Linux kernel source (nfs filesystem) or just the type of traffic
 > generated by arbitrary NFS client (e.g. the builtin one used by SPEC SFS
 > benchmark suite)?

The normal NFS client in the kernel.... Performance should improve due
to the delayed defragmentation we do in the zerocopy patches.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 15:23   ` David S. Miller
  2001-01-25 15:40     ` Tigran Aivazian
@ 2001-01-25 16:10     ` James H. Cloos Jr.
  2001-01-25 16:40       ` David S. Miller
  1 sibling, 1 reply; 11+ messages in thread
From: James H. Cloos Jr. @ 2001-01-25 16:10 UTC (permalink / raw)
  To: linux-kernel

What exaclty were the issues with the intel cards and sg+csum?

Any idea how much work it'd require to surmount them?

-JimC
-- 
James H. Cloos, Jr.  <http://jhcloos.com/public_key>     1024D/ED7DAEA6 
<cloos@jhcloos.com>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 16:10     ` James H. Cloos Jr.
@ 2001-01-25 16:40       ` David S. Miller
  2001-01-25 17:02         ` Andi Kleen
  2001-01-25 19:40         ` kuznet
  0 siblings, 2 replies; 11+ messages in thread
From: David S. Miller @ 2001-01-25 16:40 UTC (permalink / raw)
  To: James H. Cloos Jr.; +Cc: linux-kernel


James H. Cloos Jr. writes:
 > What exaclty were the issues with the intel cards and sg+csum?
 > 
 > Any idea how much work it'd require to surmount them?

Getting Intel to release full specs on how to make use of
TX hardware checksum assist with the eepro100.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 16:40       ` David S. Miller
@ 2001-01-25 17:02         ` Andi Kleen
  2001-01-25 19:40         ` kuznet
  1 sibling, 0 replies; 11+ messages in thread
From: Andi Kleen @ 2001-01-25 17:02 UTC (permalink / raw)
  To: David S. Miller; +Cc: James H. Cloos Jr., linux-kernel

On Thu, Jan 25, 2001 at 08:40:16AM -0800, David S. Miller wrote:
> 
> James H. Cloos Jr. writes:
>  > What exaclty were the issues with the intel cards and sg+csum?
>  > 
>  > Any idea how much work it'd require to surmount them?
> 
> Getting Intel to release full specs on how to make use of
> TX hardware checksum assist with the eepro100.

It's halfway documented in their e100 driver source, but no real specs 
unfortunately.


-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 16:40       ` David S. Miller
  2001-01-25 17:02         ` Andi Kleen
@ 2001-01-25 19:40         ` kuznet
  2001-01-26  9:09           ` Chris Wedgwood
  1 sibling, 1 reply; 11+ messages in thread
From: kuznet @ 2001-01-25 19:40 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

Hello!

>  > What exaclty were the issues with the intel cards and sg+csum?
>  > 
>  > Any idea how much work it'd require to surmount them?
> 
> Getting Intel to release full specs on how to make use of
> TX hardware checksum assist with the eepro100.

It simply does not exist for 82559* in all the steppings.
eepro100 is pretty poor device.

Probably, it exists for card identified as Gamla (D102) (82559 is D101).

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 14:16 [UPDATE] Zerocopy, last one today I promise :-) David S. Miller
  2001-01-25 14:52 ` Tobias Ringstrom
@ 2001-01-25 23:19 ` Anton Blanchard
  1 sibling, 0 replies; 11+ messages in thread
From: Anton Blanchard @ 2001-01-25 23:19 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel

 
> o If sock_writepage is called on path via device without SG support,
>   the cooked up sock_sendmsg() call needs to switch to KERNEL_DS.
>   Discovered and fixed by Ingo Molnar.

Good catch.

> This does show that not too many people are testing this all that
> thoroughly :-) Basically, any sys_sendfile() over TCP using a network
> card other than loopback/3c59x/sunhme/acenic would fail with -EFAULT
> or even worse a kernel crash depending upon architecture.

Hey now, I was seeing it but I hadn't got around to chasing the bug down. :)

Anton
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: [UPDATE] Zerocopy, last one today I promise :-)
  2001-01-25 19:40         ` kuznet
@ 2001-01-26  9:09           ` Chris Wedgwood
  0 siblings, 0 replies; 11+ messages in thread
From: Chris Wedgwood @ 2001-01-26  9:09 UTC (permalink / raw)
  To: kuznet; +Cc: David S. Miller, linux-kernel

On Thu, Jan 25, 2001 at 10:40:40PM +0300, kuznet@ms2.inr.ac.ru wrote:

    It simply does not exist for 82559* in all the steppings.
    eepro100 is pretty poor device.
    
    Probably, it exists for card identified as Gamla (D102) (82559 is
    D101).

I have code from Audrey to enable HWCK for received only and code
from you for SG -- but no way to enable HWCK for TX. The Intel
provided drivers themselves don't seem to have any way of doing this
so i wonder if it is either undocumented so Intel can sell the same
hardware at a premium (as they do for NT, the only different being
drivers) or simply because the HW is poor.



  --cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-01-26  9:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-25 14:16 [UPDATE] Zerocopy, last one today I promise :-) David S. Miller
2001-01-25 14:52 ` Tobias Ringstrom
2001-01-25 15:23   ` David S. Miller
2001-01-25 15:40     ` Tigran Aivazian
2001-01-25 15:42       ` David S. Miller
2001-01-25 16:10     ` James H. Cloos Jr.
2001-01-25 16:40       ` David S. Miller
2001-01-25 17:02         ` Andi Kleen
2001-01-25 19:40         ` kuznet
2001-01-26  9:09           ` Chris Wedgwood
2001-01-25 23:19 ` Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox