gigabit trouble
Subsystems (2)
I just bought two rtl8169 cards, and am having a little trouble.
Setup:
--
Old computer: Celeron 400, 8139 nic, 8169 nic
New computer: XP 1700, 8139 nic, 8169 nic
The 8139 (100mbit)'s are for internet access, their wires head out to the switch - the gbit is purely point to point and uses a private network. (192.168 etc)
I run gentoo on both, which until yesterday was 2.6.7-ck5 (on both), and currently run 2.6.7-mm6 (again, both), as I saw the suggestion somewhere it had better support for the card - something about a new net card inferface that's nicer to interrupts.
--
There's a speed increase, from ~4mb in samba and ~6mb in nfs on my 100mbit cards to a more hard drive flutter limited ~8 to 10.5MB/s on both.
First problem - that sounds suspiciously like it's hanging around the 100mbit limit. I've squeezed a cable the way
http://www.sql-server-performance.com/jc_gigabit.asp
suggests, and when I run my new computer under winXP, it reports the link speed as 1gbit; also, it's using the gbit cards for transfer, I've yanked cables to test.
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
(Plus possibly - what's the name of a good non-service direct-network throughput tester, preferable one that also runs on windows)
Second problem - when doing speed tests (dd if=mounted_remote_nfs file of=local_dev_null bs=10M or the like) my new computer makes funny noises when doing a 10MB/s transfer. The sound seems to come from the power supply, of all things. It's a 450watt, which is 100W more than was previously enough; and I'm temporarily using an ancient TNT for a vid card. It's not power amount, though possibly power purity and distribution; it was a relatively cheap power supply. (But then again
- that shouldn't have -this- effect, should it?)
Disturbingly, in such a linux-to-linux speed test, my new computer froze.As in, in text mode, have the screen freeze and apparently be half written full of nonsense.
Whereas my old computer, which was doing the exact same thing except it was sending (and remember, this computer is about a third the cpu speed) said 10MB/s, lived happily.
What's even stranger is that I don't have this problem - noise or freezing - when I run my new computer in winXP, where I get approximately the same speed.
It can't be the power supply as winxp works on the same system and setup; it can't be a simple case of driver trouble, as the old computer works with the same driver and card.
The only thing I can think of is my motherboard - it's given me pci transfer troubles before; I have to hit an exact permutation of inserted cards to have, say, my sound, network and tv card work simultaneously in winxp -or- linux. But even that's not the exact problem right now, as it's the same hardware setup that froze linux but not xp.
So, question two - what possibly happened there? Is this a driver/motherboard coincidence and therefore quite doomed?
Quite frankly, I'm stumped. Any suggestions are welcome.
--Bart Alewijnse
Quoted 1 line · Bart Alewijnse
I just bought two rtl8169 cards, and am having a little trouble.
(Side note: don't know what an rtl8169 costs today, but I'd rather buy an Intel gigE desktop adapter. Card/driver combination just works great, no hassle at all.)
Quoted 4 lines
Setup:
--
Old computer: Celeron 400, 8139 nic, 8169 nic
New computer: XP 1700, 8139 nic, 8169 nic
[...]
Quoted 3 lines
There's a speed increase, from ~4mb in samba and ~6mb in nfs on my 100mbit cards to a more hard drive flutter limited ~8 to 10.5MB/s on both.
Not spectecular. Even with that kind of hardware you should be able to do around 20MB/s for NFS (depending on hard drive, of course).
Quoted 6 lines
First problem - that sounds suspiciously like it's hanging around the 100mbit limit. I've squeezed a cable the way
http://www.sql-server-performance.com/jc_gigabit.asp
suggests, and when I run my new computer under winXP, it reports the link speed as 1gbit; also, it's using the gbit cards for transfer, I've yanked cables to test.
Gig-ethernet can be a bit picky about cable quality. If the quality is too low, it will go back too fast ethernet pergormance. Get a straight Cat 5E cable (i.e.: no cross cable) from your local computershop, that should just do. Cat 5 usually also works, but is not certified for gig-ethernet speeds (usually works, if not, use Cat 5E).
Quoted 2 lines
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
Mii-tool or eth-tool.
Quoted 8 lines
Second problem - when doing speed tests (dd if=mounted_remote_nfs file of=local_dev_null bs=10M or the like) my new computer makes funny noises when doing a 10MB/s transfer. The sound seems to come from the power supply, of all things. It's a 450watt, which is 100W more than was previously enough; and I'm temporarily using an ancient TNT for a vid card. It's not power amount, though possibly power purity and distribution; it was a relatively cheap power supply. (But then again
- that shouldn't have -this- effect, should it?)
I think you're hearing interrupts. Especially with the normal 1500 bytes ethernet MTU and no NAPI, gig-ethernet can send quite some packets which on their turn will generate quite some interrupts, which will cause the CPU to do something, which on its turn will cause the PSU have to put out more power, which you will be able to hear.
Quoted 3 lines
Disturbingly, in such a linux-to-linux speed test, my new computer froze.As in, in text mode, have the screen freeze and apparently be half written full of nonsense.
What you describe as "nonsense" is most probably a kernel Oops. Developers are interested in such Oopses, so please mail them to this mailing list.
Quoted 3 lines
Whereas my old computer, which was doing the exact same thing except it was sending (and remember, this computer is about a third the cpu speed) said 10MB/s, lived happily.
Different CPU, different compiler flags, different timings, different things to do. Might be sheer coincidence.
Quoted 7 lines
What's even stranger is that I don't have this problem - noise or freezing - when I run my new computer in winXP, where I get approximately the same speed.
It can't be the power supply as winxp works on the same system and setup; it can't be a simple case of driver trouble, as the old computer works with the same driver and card.
It's not the first time Linux triggers hardware bugs where Windows doesn't.
Quoted 6 lines
The only thing I can think of is my motherboard - it's given me pci transfer troubles before; I have to hit an exact permutation of inserted cards to have, say, my sound, network and tv card work simultaneously in winxp -or- linux. But even that's not the exact problem right now, as it's the same hardware setup that froze linux but not xp.
Narrow down the problem. Get out all cards you don't need to reproduce the problem and try to break the system again.
Quoted 2 lines
So, question two - what possibly happened there? Is this a driver/motherboard coincidence and therefore quite doomed?
No idea, not enough information to tell. See the file REPORTING-BUGS in your kernel tree and provide more information.
Erik
Signature · 2 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Bart Alewijnse <[email protected]> :
[...]
Quoted 4 lines
I run gentoo on both, which until yesterday was 2.6.7-ck5 (on both), and currently run 2.6.7-mm6 (again, both), as I saw the suggestion somewhere it had better support for the card - something about a new net card inferface that's nicer to interrupts.
NAPI support for r8169 is available in recent -mm kernel and there is a small (though noticeable) optimization wrt to interrupt disabling.
[...]
Quoted 2 lines
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
ethtool
[...]
Quoted 3 lines
Disturbingly, in such a linux-to-linux speed test, my new computer froze.As in, in text mode, have the screen freeze and apparently be half written full of nonsense.
These messages would be welcome (pen/paper/serial line/image/log file or whatever).
[...]
Quoted 4 lines
So, question two - what possibly happened there? Is this a driver/motherboard coincidence and therefore quite doomed?
Quite frankly, I'm stumped. Any suggestions are welcome.
Please provide:
- complete dmesg log from boot up to the point where the card can trnasmit and receive (please check in your log file if the output of 'dmesg' is truncated)
- cat /proc/interrupts once the card is up
- /sbin/lspci -vx
- /sbin/lsmod
If you have any binary module loaded, please reproduce the issue with a kernel wherein they have not been loaded.
If you believe that it could be related to hardware, you may want to run a complete memtest to rule out memory issues.
Reply-to: set to [email protected].
--
Ueimor
I was going to do an exhaustive test, but because my computer stopped running completely, I'll reply to the one or two bits I can now.
Quoted 9 lines · Francois Romieu
Bart Alewijnse <[email protected]> :
[...]Quoted 4 lines
I run gentoo on both, which until yesterday was 2.6.7-ck5 (on both), and currently run 2.6.7-mm6 (again, both), as I saw the suggestion somewhere it had better support for the card - something about a new net card inferface that's nicer to interrupts.
NAPI support for r8169 is available in recent -mm kernel and there is a small (though noticeable) optimization wrt to interrupt disabling.
Well, I noticed a max of 6500 interrupts/s on eth1 on both computers, with or without napi - and that 6500 is also the figure of packets per second. So I'm slightly dubious. (notice 6500 *1500 bytes is about 10MB/s)
Quoted 5 lines
[...]
Quoted 2 lines
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
ethtool
Thanks. That wasn't the problem - the line speed's a gbit.
Quoted 7 lines
[...]
Quoted 3 lines
Disturbingly, in such a linux-to-linux speed test, my new computer froze.As in, in text mode, have the screen freeze and apparently be half written full of nonsense.
These messages would be welcome (pen/paper/serial line/image/log file or whatever).
No messages, no oops, no log messages that I noticed. It was video memory corruption in text mode.
As to the rest, I'll do it when I revive my computer. Right now, I'm thinking the power supply may be dodgy. I'll see if I can get a minimum to run off my even older 235Watt. But as a note, with two cards, two cdroms and a hard drive less, it was still making the noise. I think it still is now, but since no OS actually boots completely right now, I can't say for sure.
I'll do a memtest, that makes sense.
--Bart
Quoted 2 lines · Bart Alewijnse
I was going to do an exhaustive test, but because my computer stopped running completely, I'll reply to the one or two bits I can now.
...which was unrelated. Although I can't get the noise anymore now either. I'm not too happy, I like my problems reproducable. Of course, in the course of tring to fix the nonbootability, I changed a bunch of things. Hrm.
I'll try getting it back later.
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
ethtool
Thanks. That wasn't the problem - the line speed's a gbit.
Definately. I've now seen speeds up to 22MB/s, but only in pure network benching (netio), and only with udp, although I guess that makes a some sense.
(Also, for some reason it makes a respectable difference which computer I run the netio server on. I mean, netio measures speed both ways on one run, and it's different depending on where I run it. I guess that suggests io limiting)
So the hanging around ten MB/s was just coincidence - it still does it in both nfs and samba, but I guess it's io limited *somewhere*, but trying to figure out why doesn't belong in this list, I guess. Or maybe it does; I've always wondered why samba hangs around 3, 4, 5, maybe 6 MB/s on a 100mbit link - which with netio shows that it can go at 11MB/s, its full speed - and even nfs rarely tops above eight. On my friend's setup too, and he *does* have respectable hardware in his server:)
I assume the 20MB/s top speed on my gbit cards is io limiting, and possibly the fact that they're 32bit cards in 33mhz slots. Still, it's far from impressive. Any suggestions (on where to go) about improving it?
Anyhow, thanks for the help so far.
--Bart Alewijnse
Bart Alewijnse <[email protected]> :
[...]
Quoted 3 lines
Definately. I've now seen speeds up to 22MB/s, but only in pure network benching (netio), and only with udp, although I guess that makes a some sense.
It seems low. On a non-napi setup, I'd expect your celeron box to stand at least 20~30 kIRQ/s if the hardware is not flawed.
[...]
Quoted 4 lines
I assume the 20MB/s top speed on my gbit cards is io limiting, and possibly the fact that they're 32bit cards in 33mhz slots. Still, it's far from impressive. Any suggestions (on where to go) about improving it?
See Documentation/networking/ip-sysctl.txt and the r/wmem parameters for a start. The 2.6.8-rc2-mm1 version of the r8169 driver is suggested.
A dumb 'vmstat 1' output during test could give some hint.
Can I assume that the systems are stable if not fast ?
--
Ueimor
You are aware that this is a celeron at 400 mhz, and not whatever 400 is or possibly isn't in that annoying new naming scheme? (Just checking...)
Both systems are not overclocked, so are stable in that respect. The nonbooting thing was a loose ground wire touching my hard drive jumpers, making it think it was a slave. I'm surprised winxp managed to do anything at all. I've used both these systems for ages, never had any real trouble except for the strange pci slot/irq problems in my new computer, but that was mostly a work-or-not thing - although it also increases pci latency. I'm still not sure whether it's a card that's in there, a card that was in there, (I replaced my sound card, and can suddently get a much lower midi-to-wave playing latency - but the sound card has been known to click and pop randomly over several reconfigurations the last few days) or just a screwy motherboard. I should hope it's not the last, it's a brand board.
Anyhow, on transmit from the celeron box, under extreme benchy circumstrances, I've seen it around 16Kints/s on transmit and 13k on receive. But under everyday nfs/samba, 6400 is about the best it does either way.
The maximum amount of interrupts/s I've seen so far 22302 (including the 1000 in the kernel timer, 'course). Nothing much else changes, except the context switches raising from an idle 10~30 to 1000~1500 to, sometimes 30000. Actually, using netio seems to busy the system completely:
# top -d 0.5 | grep Cpu\( Cpu(s): 8.8% us, 36.8% sy, 0.0% ni, 1.5% id, 0.0% wa, 13.2% hi, 39.7% si Cpu(s): 7.5% us, 38.8% sy, 0.0% ni, 0.0% id, 0.0% wa, 14.9% hi, 38.8% si Cpu(s): 5.7% us, 41.4% sy, 0.0% ni, 0.0% id, 0.0% wa, 14.9% hi, 37.9% si Cpu(s): 5.0% us, 44.0% sy, 0.0% ni, 0.0% id, 0.0% wa, 14.5% hi, 36.5% si Cpu(s): 4.4% us, 50.5% sy, 0.0% ni, 1.1% id, 0.0% wa, 12.1% hi, 31.9% si Cpu(s): 3.8% us, 50.9% sy, 0.0% ni, 0.0% id, 0.0% wa, 17.0% hi, 28.3% si
But a to-winxp smb file transfer, hangin around 7, 8MB/s, doesn't:
Cpu(s): 3.8% us, 50.0% sy, 0.0% ni, 17.9% id, 0.0% wa, 7.5% hi, 20.8% si Cpu(s): 5.0% us, 43.0% sy, 0.0% ni, 27.0% id, 0.0% wa, 7.0% hi, 18.0% si Cpu(s): 4.8% us, 40.4% sy, 0.0% ni, 29.8% id, 0.0% wa, 5.8% hi, 19.2% si Cpu(s): 5.1% us, 43.9% sy, 0.0% ni, 26.5% id, 0.0% wa, 5.1% hi, 19.4% si Cpu(s): 5.3% us, 42.5% sy, 0.0% ni, 26.5% id, 0.0% wa, 6.2% hi, 19.5% si Cpu(s): 5.9% us, 43.1% sy, 0.0% ni, 25.5% id, 1.0% wa, 5.9% hi, 18.6% si Cpu(s): 4.6% us, 41.7% sy, 0.0% ni, 25.9% id, 0.0% wa, 5.6% hi, 22.2% si Cpu(s): 6.2% us, 44.6% sy, 0.0% ni, 23.2% id, 0.0% wa, 5.4% hi, 20.5% si Cpu(s): 4.2% us, 34.7% sy, 0.0% ni, 38.9% id, 0.0% wa, 5.3% hi, 16.8% si
It's not too consistent all over either; windows netio transmits slowly when packet sizes are >1k (the mtu?), as low as 5MB/s, while the receive speed for the same packet size goes at ~22MB
Ooh, finally, a proper kernel pan --er, bug, it says. On my old computer this time.
I know, incidentally, that the memory works; I recently did a three-hour memtest on this computer. Picture here:
http://www.scarfboy.com/other/panic-30jul.gif
This may be due to fiddling with said wmem, etc values, I set some of them considerably larger. I did get a few percent apparent speed increase, incidentally, though that may have been wishful thinking.
I guess I should try >= 2.6.8-rc2-mm1 next?
--Bart Alewijnse
Bart Alewijnse <[email protected]> :
Quoted 3 lines
You are aware that this is a celeron at 400 mhz, and not whatever 400 is or possibly isn't in that annoying new naming scheme? (Just checking...)
Yes. It is good enough to handle some network traffic.
[...]
Quoted 4 lines
Anyhow, on transmit from the celeron box, under extreme benchy circumstrances, I've seen it around 16Kints/s on transmit and 13k on receive. But under everyday nfs/samba, 6400 is about the best it does either way.
The figures does not seem bad.
I am curious: which chipset does the motherboard include ? An 'lspci -vx' sums it quite well.
[...]
Quoted 1 line
This may be due to fiddling with said wmem, etc values, I set some of them
It should not.
Quoted 4 lines
considerably larger. I did get a few percent apparent speed increase, incidentally, though that may have been wishful thinking.
I guess I should try >= 2.6.8-rc2-mm1 next?
Please. Do not compile in preempt/ipv6/smp. SMP is supposed to be safe but you do not need it and it will not make your r8169 faster if you have only one CPU. I'd welcome a 'vmstat 1' output as it gives the bi/bo.
--
Ueimor
Quoted 7 lines · Francois Romieu
[...]
Quoted 4 lines
Anyhow, on transmit from the celeron box, under extreme benchy circumstrances, I've seen it around 16Kints/s on transmit and 13k on receive. But under everyday nfs/samba, 6400 is about the best it does either way.
The figures does not seem bad.
Except they're about a factor 1.2 to 1.7 faster than my 100mbit, in practical (network filesystem) application. That's very short of spectacular.
Quoted 2 lines
I am curious: which chipset does the motherboard include ? An 'lspci -vx' sums it quite well.
Ermm... VIA, I believe it was called Apollo Pro. VT82C693. But as the rest may matter, the full lspci -vx listing's attached.
Quoted 3 lines
[...]
Quoted 1 line
This may be due to fiddling with said wmem, etc values, I set some of them
It should not.
If my computer did what it should do, would I be here?:)
Quoted 8 lines
Quoted 4 lines
considerably larger. I did get a few percent apparent speed increase, incidentally, though that may have been wishful thinking.
I guess I should try >= 2.6.8-rc2-mm1 next?
Please. Do not compile in preempt/ipv6/smp. SMP is supposed to be safe but you do not need it and it will not make your r8169 faster if you have only one CPU. I'd welcome a 'vmstat 1' output as it gives the bi/bo.
ipv6 was nonsense anyhow (and I think loaded as a module), smp was force of habit as something kernely ages back wanted it. But is there really no point to preempting in a server?
Right, both computers now run 2.6.8-rc2-mm1. It's better. Roughly speaking, the top *benchmark* speeds, rouding slightly up, are:
udp: 33MB/s (using ~26Kints) one way, 12MB/s (9Kints/s) the other,
tcp: 22MB/s (16Kints)one way, 12MB/s (9Kints/s) the other.
(The 9Kints ca be 12 when the packet size is 1K or 2K)
Oddly enough, the slow direction is sending from my new computer (XP1700, KT333, 1GB ram) to my old (both running linux and the mentioned kernel). I'm fairly sure this is due to the fact that my asus motherboard is crap, and I guess I'll have to settle for it, unless one of you is very good at black magic. Because trust me, the way hardware and chooses not to work, apparently based on slots and/or irq's is just *weird*. Bah.
Practical speeds increased far less dramatically. nfs now sustains at 10MB/s, with the occasional 12. Samba increased less, about half a meg a second, it sustains speeds slightly over 8MB/s, to both linux and windows.
I guess no network filesystems focuses on speed? I mean, I did always wonder why nfs and samba on 100mbit transfers averaged around half the line speed, and that's counting large files (no tcp startup to blame).
I don't suppose any of you know a good windows nfs client.
I guess I'll have to settle for this. I'm just annoyed that the 'giga' is basically a joke, especially on my setup.
--Bart Alewijnse
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev 06)
Flags: bus master, medium devsel, latency 0
Memory at dc000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0
00: 06 11 91 06 06 00 90 a2 06 00 00 06 00 00 00 00
10: 08 00 00 dc 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 a0 00 00 00 00 00 00 00 00 00 00 00
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
00: 06 11 98 85 07 00 20 22 00 00 04 06 00 00 01 00 10: 00 00 00 00 00 00 00 00 00 01 01 00 f0 00 00 00 20: f0 ff 00 00 f0 ff 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00
0000:00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 11)
Subsystem: VIA Technologies, Inc. VT82C596/A/B PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
00: 06 11 96 05 87 00 00 02 11 00 01 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 06 11 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000:00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 32 I/O ports at e000 [size=16]
00: 06 11 71 05 07 00 80 02 06 8a 01 01 00 20 00 00 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20: 01 e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 00
0000:00:07.3 Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 20)
Flags: medium devsel
00: 06 11 51 30 00 00 80 02 20 00 00 06 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000:00:09.0 VGA compatible controller: S3 Inc. 86c325 [ViRGE] (rev 06) (prog-if 00 [VGA])
Flags: bus master, medium devsel, latency 32, IRQ 15 Memory at d8000000 (32-bit, non-prefetchable)
00: 33 53 31 56 07 00 00 02 06 00 00 03 00 20 00 00 10: 00 00 00 d8 00 00 00 00 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 30: 00 00 00 00 00 00 00 00 00 00 00 00 0f 01 04 ff
0000:00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e800
Memory at df001000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
00: ec 10 39 81 07 00 90 02 10 00 00 02 00 20 00 00
10: 01 e8 00 00 00 10 00 df 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 ec 10 39 81
30: 00 00 00 00 50 00 00 00 00 00 00 00 0b 01 20 40
0000:00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 10 I/O ports at ec00 [size=de000000] Memory at df000000 (32-bit, non-prefetchable) [size=256] Expansion ROM at 00010000 [disabled] Capabilities: [dc] Power Management version 2
00: ec 10 69 81 07 00 b0 02 10 00 00 02 08 20 00 00 10: 01 ec 00 00 00 00 00 df 00 00 00 00 00 00 00 00 20: 00 00 00 00 00 00 00 00 00 00 00 00 ec 10 69 81 30: 00 00 00 de dc 00 00 00 00 00 00 00 0a 01 20 40
Bart Alewijnse <[email protected]> :
[...]
Quoted 2 lines
of habit as something kernely ages back wanted it. But is there really no point to preempting in a server?
I don't know: I have no URL for the figures at hand.
Quoted 6 lines
Right, both computers now run 2.6.8-rc2-mm1. It's better. Roughly speaking, the top *benchmark* speeds, rouding slightly up, are:
udp: 33MB/s (using ~26Kints) one way, 12MB/s (9Kints/s) the other,
tcp: 22MB/s (16Kints)one way, 12MB/s (9Kints/s) the other.(The 9Kints ca be 12 when the packet size is 1K or 2K)
Can you give a try to a napi version of the module (it is a compile-time option) ?
You may want higher {r/w}mem_max as well as renicing ksoftirqd with a strongly < 0 value on the celeron client.
Quoted 3 lines
Oddly enough, the slow direction is sending from my new computer (XP1700, KT333, 1GB ram) to my old (both running linux and the mentioned kernel). I'm fairly sure this is due to the fact that my
The r8169 driver has been reported to be faster on Rx than on Tx so your observation makes sense.
[...]
Quoted 2 lines
I guess I'll have to settle for this. I'm just annoyed that the 'giga' is basically a joke, especially on my setup.
It should be possible to make things slightly better for the celeron box as a client. I'll cook up a patch.
Would you be kind enough to do some ftp transfer test where the celeron box retrieves data and send the 'vmstat 1' output of the client during the test ?
--
Ueimor
Quoted 11 lines · Francois Romieu
Quoted 6 lines
Right, both computers now run 2.6.8-rc2-mm1. It's better. Roughly speaking, the top *benchmark* speeds, rouding slightly up, are:
udp: 33MB/s (using ~26Kints) one way, 12MB/s (9Kints/s) the other,
tcp: 22MB/s (16Kints)one way, 12MB/s (9Kints/s) the other.(The 9Kints ca be 12 when the packet size is 1K or 2K)
Can you give a try to a napi version of the module (it is a compile-time option) ?
You may want higher {r/w}mem_max as well as renicing ksoftirqd with a strongly < 0 value on the celeron client.
That's with NAPI on both. I notice r/wmem has an effect, but it's not much. Although on my new computer it seems moot as there's something weird going on with interrupts with my botherboard.
Quoted 6 lines
Quoted 3 lines
Oddly enough, the slow direction is sending from my new computer (XP1700, KT333, 1GB ram) to my old (both running linux and the mentioned kernel). I'm fairly sure this is due to the fact that my
The r8169 driver has been reported to be faster on Rx than on Tx so your observation makes sense.
How does that make sense? When one side receives, the other sends, hrm? They're two identical cards, it should be entirely symmetrical assuming equal hardware - not faster on the years older hardware.
Quoted 6 lines
[...]
Quoted 2 lines
I guess I'll have to settle for this. I'm just annoyed that the 'giga' is basically a joke, especially on my setup.
It should be possible to make things slightly better for the celeron box as a client. I'll cook up a patch.
The celeron box is the server, that's the entire point. Anyhow, it's much faster in transmission than my new computer right now due to said mobo problem, so I *want* it as the server.
Quoted 3 lines
Would you be kind enough to do some ftp transfer test where the celeron box retrieves data and send the 'vmstat 1' output of the client during the test ?
Sure, but I can tell you right now with reasonable certaintly that my new computer
won't top 9000interrupts/sec, i.e. 9000 packets per second, and therefore do the 12MB/s at most, and probably less; interruptwise, my new computer is the bottleneck, and I'm guessing UDP is faster because TCP is limited by the amount of packets, or in the other direction ACKs, it can send per second.
Transfers to the celeron are a relatively pointless measure because of my new computer being horribly interrupt limited at the moment. That may have started when I installed the gbit card, but mostly because it disturbs the mobo's precious and unguessable hardware balance. I'll try figuring out if I can solve it, but basically it just involves swapping around cards until it
works better, so that'ld take a while.
Attached are the vmstats for an ftp and nfs transfer, as measured from my old computer (the nfs and ftp server). Both were going at a pretty low speed, sub-9000 packets; this may have to do with drive fragmentation, my hard drives are rather full at the moment.
Also, the logs on the client (my new computer) while sending data to my old one. These were made at a different time, and I believe the transfer rate was better (6MB for ftp, 9MB for nfs) than for the -to-old- logs, which were worse, and varied more.
--Bart
Okay, after I Did Stuff(tm) to my new computer, it's capable of generating approximately 50Kints/s, which transates to 66MB/s in a network benchmark (Actually, netio misreports the speeds, probably because of an overflow; I was amused)
There's two howevers and one unfortunately, though.
The howevers:
- it's not in the direction I want -- meaning I should update, which I can live with. But:
- the bench speed going from my old computer wend down from ~33mb to ~20MB/s which I can't make any sense of at all, and the practical speeds from the server didn't change for the better, possibly for the worse. I'm not sure, because of...
The unfortunately:
- After a few minutes, my old computer kernel paniced. I assume this is because it can't handle the incoming traffic, as its own pace of sending (and therefore probably handling interrupts) is more like 20kints/sec than 50. I couldn't tell anything vmstat-wise as during the data going in that direction (un udp; tcp hung around 17MB both ways - which is better thn before, but *still* short of impressive), the ssh shells just stopped responding, and I guess so did vmstat. It's probably being battered in hardware interrupts, I saw high figures. Quite possibly this has to do with renicing ksoftircq (negatively) as someone suggested. However, I am still of the opinion that a difference in processor speeds should not crash anything.
The panic looks a lot like the last one; same kernel (napi still enabled for the 8169). Image attached.
I'ld like to know what's wrong here, so that I can avoid it. I can deal and live with stupid speeds better than crashing serves. Makes me grumble less, y'know.
--Bart Alewijnse
Bart Alewijnse <[email protected]> :
[...]
Quoted 2 lines
The panic looks a lot like the last one; same kernel (napi still enabled for the 8169). Image attached.
The irq rate are strangely high for a napi version of the r8169 driver.
Can you describe your test commands so that I reproduce these here ?
--
Ueimor
Quite simply a 'netio -s' on one computer, and a 'netio -u 192.168.1.whichever' on the other. I was monitoring with 'vmstat 1' for hardware stuff and bmon to see the actual speed and had a ssh open.
The things I've been fiddling with recently to see if it'd make a difference:
- Renicing of ksoftirqc to anything between -5 and -17, I don't remember exactly.
- Disabling tcp window scaling. I read somewhere that that may help throughhput, but it may be a stupid move.
- Some barely thought about (I did read the following:
http://lists.samba.org/archive/samba/2003-December/077198.html)
window memory buffer size changes, with a 'so that that at least won't be a bottleneck' angle:
--------------------
echo 400000 > /proc/sys/net/core/wmem_default
echo 512000 > /proc/sys/net/core/wmem_max
echo 400000 > /proc/sys/net/core/rmem_default
echo 512000 > /proc/sys/net/core/rmem_max
echo 98304 512000 640000 > /proc/sys/net/ipv4/tcp_mem
echo 98304 512000 640000 > /proc/sys/net/ipv4/tcp_wmem
echo 98304 512000 640000 > /proc/sys/net/ipv4/tcp_rmem
echo 98304 512000 640000 > /proc/sys/net/ipv4/tcp_mem
-----------
It seems that windows (in which I have jumbo frames on) doesn' quite need as many interrupts, although I'm not sure that was for the same speed, as I had another kernel panic (attached, this one has a small visible trace). I was running the windows version of netio as a server, and doing a client test with udp.
--Bart Alewijnse
(I am a moron, and gmail isn't helping. I keep sending this stuff to people, not the list. Sorry.)
Quoted 2 lines · Bart Alewijnse
I was going to do an exhaustive test, but because my computer stopped running completely, I'll reply to the one or two bits I can now.
...which was unrelated. Although I can't get the noise anymore now either. I'm not too happy, I like my problems reproducable. Of course, in the course of tring to fix the nonbootability, I changed a bunch of things. Hrm.
I'll try getting it back later.
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
So, question one - how do I see the link speed under linux, and how, if at all, do I control it?
ethtool
Thanks. That wasn't the problem - the line speed's a gbit.
Definately. I've now seen speeds up to 22MB/s, but only in pure network benching (netio), and only with udp, although I guess that makes a some sense.
(Also, for some reason it makes a respectable difference which computer I run the netio server on. I mean, netio measures speed both ways on one run, and it's different depending on where I run it. I guess that suggests io limiting)
So the hanging around ten MB/s was just coincidence - it still does it in both nfs and samba, but I guess it's io limited *somewhere*, but trying to figure out why doesn't belong in this list, I guess. Or maybe it does; I've always wondered why samba hangs around 3, 4, 5, maybe 6 MB/s on a 100mbit link - which with netio shows that it can go at 11MB/s, its full speed - and even nfs rarely tops above eight. On my friend's setup too, and he *does* have respectable hardware in his server:)
I assume the 20MB/s top speed on my gbit cards is io limiting, and possibly the fact that they're 32bit cards in 33mhz slots. Still, it's far from impressive. Any suggestions (on where to go) about improving it?
Anyhow, thanks for the help so far.
--Bart Alewijnse