6 ms·
Reverse Engineering the Comtech AHA363 PCIe Gzip Accelerator Board
- _sbrk 6y agoNice development board for $20, even if it takes some work. Bought one!
- tyingq 6y agoIt is interesting to see how the prices have come down. While just the FPGA chip on this board was originally $1K, a new DE10 board is ~$130 with slightly more logic units at a higher clock, plus a dual core ARM A9, peripherals, etc.
- happycube 6y ago. o O (And the MISTer project for lots of great retro systems/consoles/games...)
- tverbeure 6y agoIt's too late now since you've already bought one, but right now, it's still a doorstop than can't be used for anything: I haven't even been able to get one of the LEDs blinking, and that's only the Hello World of the FPGA hobbyist.
- _sbrk 6y agoNo worries. As the saying goes "this isn't my first rodeo". I'll let you know what I discover.
- tverbeure 6y agoGet in touch! One thing that didn’t make it in the blog post was that a strategically soldered wire shortened the JTAG chain to only include the 2 Intel chips and bypass the AHA chips. The power to the AHA chips gets cut off at some point, breaking the JTAG chain, but the FPGAs stay active. So by bypassing, you keep the chain alive.
- triangleman 6y agoSo how do you get a web server to take advantage of a hardware gzip accelerator? Is there like a custom nginx plugin that points to a custom driver? Seems very cool and I've never heard of something like this.
- castratikron 6y agoMaybe hooks into libz somehow?
- yjftsjthsd-h 6y agoOooh, that would work; just provide your own libz that's a wrapper around the hardware. You could even package it up and do a drop in replacement:)
- tverbeure 6y agoAccording to their press release, it was an Apache plugin. https://www.businesswire.com/news/home/20081008005207/en/Comtech-AHA-Announces-Apache-GZIP-Compression-Module https://www.businesswire.com/news/home/20081008005207/en/Com...
- mng2 6y agoThey mention APIs for Windows, Linux, OpenSolaris, a ZLIB, and the Apache module. http://www.aha.com/DrawProducts.aspx?Action=GetProductDetails&ProductID=14 http://www.aha.com/DrawProducts.aspx?Action=GetProductDetail...
- tyingq 6y agoIt was also pretty common in the early days of SSL to have a similar outboard accelerator and webserver plugins to call it. That still exists for Allwinner CPUs. You can offload the TLS handshake.
- triangleman 6y agoThat's so cool. Has anyone made a JSON-parsing chip, because I could see that being useful in today's servers.
- shawnz 6y agoWhy would they design it to require two ASICs AND an FPGA? Couldn't they just have built the FPGA program into the ASICs?
- craftinator 6y agoOr vice versa...
- Palomides 6y agopure speculation: the FPGA does the PCIe and all necessary data marshaling, which allows a lot of flexibility for updates and bug fixing on the most finicky parts of hardware two ASICs because once you have one manufactured, most of the costs are sunk and per unit it's cheap to stick a second on the board
- tachyonbeam 6y agoYou're probably right. The FPGA is probably the most expensive part of this board by far, and maybe they figured the FPGA and the PCIE bus can handle enough traffic to keep two compression chips busy.
- ComputerGuru 6y agoFPGAs are cheap compared to the initial run costs for comparable custom ASICs, though.
- tyingq 6y agoThe FPGA is also potentially insurance for bugs on the ASIC that aren't economical to fix. Catch the bug and fix it on the way out of the card.
- tverbeure 6y agoMaking an ASIC with pedestrian low speed IOs is easy. Making an ASIC with high speed SERDES IOs that are required for PCIe is hard. Also, AHA has a followup product that doubles the performance by dropping 4 ASICs and 1 FPGA on a board instead of 2 ASICs. So modularity is a factor as well. But I think the first point is very likely the reason.
- jtchang 6y agoWow. I know very little about FPGAs and hardware and this is pure magic to me. Debugging these things must be a royal pain.
- pjc50 6y agoYes, it is :) The normal development flow for FPGA software is similar to ASIC in that people focus on testing as many elements as possible in software simulation to a very high level of coverage before even downloading to the FPGA. Once in there, you're reliant on JTAG (high-speed serial bus) to read out values from the target device. Tools like ChipScope can let you see what's going on and set ""breakpoints"". http://web.mit.edu/6.111/www/labkit/chipscope.shtml http://web.mit.edu/6.111/www/labkit/chipscope.shtml All of this is much harder when it's on a board you didn't design!
- tachyonbeam 6y agoI'm curious to know how much faster than Gzip compression on a modern multicore CPU this is. The AHA webpage says "Compresses and decompresses at a throughput rate over 5.0 Gbits/sec" (that's 1.2 GB/s). How fast can you gzip compress on a 16-core Ryzen CPU, for example?
- abiogenesis 6y agoI don't think gzip can use multiple cores, but there is a parallel implementation of gzip called pigz (race condition pun?) [1] which uses a clever trick [2] not to reduce compression efficiency: > The input blocks, while compressed independently, have the last 32K of the previous block loaded as a preset dictionary to preserve the compression effectiveness of deflating in a single thread [1] https://zlib.net/pigz/ https://zlib.net/pigz/ [2] https://zlib.net/pigz/pigz.pdf https://zlib.net/pigz/pigz.pdf
- masklinn 6y agoAccording to https://rachaellappan.github.io/pigz/ https://rachaellappan.github.io/pigz/ pigz did about 360MB/s on a 96 cores machine, though that was 3 years ago.
- Ballas 6y agoI regularly get 80-200MB/s on my 8 core 7700HQ, though it is likely limited by disk speed.
- Ballas 6y agoLooking at the puny heatsink on this card, I call that pretty impressive performance/watt. (Note that the heatsink is on the FPGA, not the actual gzip accelerator chip.)
- happycube 6y agoAre there any free drivers for it with the native hardware? There are ones on their site... but behind a registration-wall. It might be pretty nifty to run swap through this...
- battery423 6y agoI'm super exicted what will come in this direction after PS5 announcement and Microsoft mentioning Direct Storage. PS5 has a IO chip and extra architecture for decompressing textures (here the context with this gzip accelerator) and more features. Mark Cerny said that they needed this chip because from a CPU ressource usage,it would use all CPU cores. So nvm now are so fast that a io co processor is feasable again.
- rasz 6y agoPC SSD drives started out with buildin compression. This is why most test software has separate "incompressible data" graphs. Its usually something you actually dont want, akin to fake streamer tape capacities/speeds assuming 2x compression. > IO chip and extra architecture for decompressing textures you dont want uncompressed textures in your GPU memory, compressing DXT compressed textures is not idea to say the least, you can count on 30-50% compression ratio, not the marketing 2x peak number Sony was throwing around >would use all CPU cores is marketing exaggeration, LZ4 decompression can achieve ~3GB/s per core. How it is today: https://www.jonolick.com/home/oodle-and-ue4-loading-time https://www.jonolick.com/home/oodle-and-ue4-loading-time
- battery423 6y agoI do have seen issues on my machines i would highly put in the direction of "nvm got shitty fast really quick and something inbetween is weird, we need to do something". My feeling is, that what Sony is now doing, goes in that direction. I'm highly curious and hopefull. I will read your posted blog, looks interesting. Lets see what will arrive in the industry at the end of the day.
- battery423 6y agoWhen i look at his data, its capped and the additional PC transfer speed of over 512mb/sec vs hitting the speed limit much sooner, does show that something is missing.
- rasz 6y ago