As some may know, my afe ethernet drivers are currently being tested by Sun prior to integration into Solaris.
I've been spending time with Alan DuBoff at Sun to diagnose a certain set of problems. It turns out that I believe that there is a hardware problem with a certain configuration causing many frames to be dropped (large increasing values of the fcs_errors statistic.) At one point it looked like ~5-10% of the packets were getting dropped. The devices seems to function, but it performs poorly.
That in itself isn't too interesting. But add to this an obscene level of test, where UDP packets with very large sizes (~60K) are sent to the device at wirespeed.
Well, if you do the math, you realize that almost no such UDP packets will get thru. But more importantly, while this is occuring, IP has to track all these frames for packet reassembly. At 100Mbps this adds up to 12MB/sec. How long does IP hold these packets for, before giving up on them and discarding them.
On this particular system, Alan noticed that literally hundreds of megabytes of memory were in use. No, they weren't leaked. They were just waiting to be discarded!
I think this is a particular "opportunity" for some more tuning in TCP/IP . Perhaps a maximum quota on outstanding fragments (after which they are discarded in FIFO order?)
Alan has promised to pick up another NIC, so we can follow up with further test.
Meantime, I'm very, very grateful for kstats. Without fcs_errors, we would almost never have been able to figure out what was going on. One possible side benefit of all this, is that I have added some improvements to the error handling (including a full chip reset), so in perverse scenarios like this the chip has a better chance of recovering from errors.
PS: This also suggests an opportunity for a test version of a driver that has a random "drop" tunable, which drops packets at a specified percentage. Who knows what other bugs might turn up?
PPS: I think this may be a potential DoS attack, just flood a system with IP fragments. Of course, this might be much harder to do if the attacker does not have access to a local network. Any firewall should be secure agains this kind of abuse.
Showing posts with label solaris. Show all posts
Showing posts with label solaris. Show all posts
Friday, February 9, 2007
Monday, February 5, 2007
OpenGL on Solaris
One of our on-going challenges at Tadpole has been to locate a graphics chip that can provide hardware acceleration of OpenGL operations, has power, heat, and real-estate constraints suitable for use in a laptop, has SPARC drivers (or open-sourced drivers), and can be made to operate with legacy Solaris applications.
It seems that the market place is conspiring to create products that are unsuitable for use in mobile platforms and are closed. I'm not sure what the market can do, but we need to let the chip manufacturers know that the FOSS community needs open drivers for platforms other than x86, and that we need solutions suitable for use in systems without a few square meters and a few hundred watts to power them.
(ATI, Nvidia, I'm looking squarely at you!)
We also really need to pressure Sun into opening up their OpenGL implementation, so that either drivers to plugin to their implementation or alternate (and compatible) implementations can be created.
(FYI, alternate implementations of OpenGL exist from vendors like XiG, but they are not ABI compatible due to Sun's closed & proprietary ABI.)
It seems that the market place is conspiring to create products that are unsuitable for use in mobile platforms and are closed. I'm not sure what the market can do, but we need to let the chip manufacturers know that the FOSS community needs open drivers for platforms other than x86, and that we need solutions suitable for use in systems without a few square meters and a few hundred watts to power them.
(ATI, Nvidia, I'm looking squarely at you!)
We also really need to pressure Sun into opening up their OpenGL implementation, so that either drivers to plugin to their implementation or alternate (and compatible) implementations can be created.
(FYI, alternate implementations of OpenGL exist from vendors like XiG, but they are not ABI compatible due to Sun's closed & proprietary ABI.)
Thursday, January 11, 2007
finally got a signed SCA
Just a quick note that I finally have a signed SCA which will allow me to start contributing stuff with Tadpole/General Dynamics IP back to the Open Solaris community.
Friday, December 29, 2006
low power high performance NFS server
Thought I would update a post with my current favorite system for use as a home NFS server.
I bought a Via Jetway J7F4 board, which has a 1.2GHz Via Eden processor, dual gigabit networks, SATA, etc. all in a mini-ITX form-factor. I put this into a microATX case, along with an optical drive, a pair of 200GB SATA drives, a single PATA drive (for the OS), 1GB RAM, and a US Robotics gigE PCI card.
Add Solaris 10 06/06, and ZFS, and this is nearly an ideal server for my work needs. This was the first time I've used ZFS, and I'm very impressed so far.
The good: very low power consumption (<40W total, I think), quiet, 22MB/sec NFS, 200GB mirrored (using ZFS, not h/w raid), $500 total price, plus Solaris so I can do extra things like run an NIS server.
The bad: the fanless Via C7 got too hot at 1.2GHz, so underclocked it at 1.0GHz to avoid hangs, onboard gigE not supported (yet -- am working with engineering at Sun to fix that).
What I would change: my next system will use a 1.5GHz J7F2 board (with fan), which trades the onboard gigE for additional port options, while allowing me to use a daughtercard with gigE.
What I want from Solaris: support for the onboard rtl8110sc gigE (in progress), support for the on-chip crypto (Via Padlock)
I bought a Via Jetway J7F4 board, which has a 1.2GHz Via Eden processor, dual gigabit networks, SATA, etc. all in a mini-ITX form-factor. I put this into a microATX case, along with an optical drive, a pair of 200GB SATA drives, a single PATA drive (for the OS), 1GB RAM, and a US Robotics gigE PCI card.
Add Solaris 10 06/06, and ZFS, and this is nearly an ideal server for my work needs. This was the first time I've used ZFS, and I'm very impressed so far.
The good: very low power consumption (<40W total, I think), quiet, 22MB/sec NFS, 200GB mirrored (using ZFS, not h/w raid), $500 total price, plus Solaris so I can do extra things like run an NIS server.
The bad: the fanless Via C7 got too hot at 1.2GHz, so underclocked it at 1.0GHz to avoid hangs, onboard gigE not supported (yet -- am working with engineering at Sun to fix that).
What I would change: my next system will use a 1.5GHz J7F2 board (with fan), which trades the onboard gigE for additional port options, while allowing me to use a daughtercard with gigE.
What I want from Solaris: support for the onboard rtl8110sc gigE (in progress), support for the on-chip crypto (Via Padlock)
afe Solaris integration
Well, it looks like my "afe" device driver for Solaris (common commodity ethernet part) my finally be getting integrated into Solaris. The process has been a bit rocky, as apparently I'm treading new ground here.
Recently I was informed that a full legal review of the code was needed (again) before the code could be integrated. So I'm waiting for that. (The code is released under a 3-clause BSD license. You can find it at sourceforge if you can't wait for the Solaris integration.)
After integration I'll be looking at updating it to use the new nemo (GLDv3) framework.
Recently I was informed that a full legal review of the code was needed (again) before the code could be integrated. So I'm waiting for that. (The code is released under a 3-clause BSD license. You can find it at sourceforge if you can't wait for the Solaris integration.)
After integration I'll be looking at updating it to use the new nemo (GLDv3) framework.
Subscribe to:
Posts (Atom)
