News for hackers. Stuff that matters.
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by triangleman on Monday June 22, 2020 @10:47PM (#23609451)
So 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.
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by tverbeure on Monday June 22, 2020 @10:50PM (#23609466)
According to their press release, it was an Apache plugin.

https://www.businesswire.com/news/home/20081008005207/en/Com...

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by mng2 on Monday June 22, 2020 @11:55PM (#23609754)
They mention APIs for Windows, Linux, OpenSolaris, a ZLIB, and the Apache module.

http://www.aha.com/DrawProducts.aspx?Action=GetProductDetail...

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by tyingq on Monday June 22, 2020 @11:39PM (#23609690)
It 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.

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by triangleman on Tuesday June 23, 2020 @01:11AM (#23610126)
That's so cool. Has anyone made a JSON-parsing chip, because I could see that being useful in today's servers.
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by wereHamster on Tuesday June 23, 2020 @01:56AM (#23610358)
Is JSON parsing still a bottleneck? https://github.com/simdjson/simdjson
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by lpgauth on Tuesday June 23, 2020 @09:09AM (#23613387)
mixing simd and non-simd load is not recommended.

https://blog.cloudflare.com/on-the-dangers-of-intels-frequen...

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by bri3d on Tuesday June 23, 2020 @10:13AM (#23614126)
this is well-addressed here: https://github.com/simdjson/simdjson/blob/master/doc/perform... .

first off, AVX2 is a subset of SIMD instructions - SIMDjson includes a large number of implementations including several which do not use AVX2 at all.

next, only a subset of AVX2 instructions cause downclocking (namely, the 512 bit wide ones), which SIMDjson does not use. throwing out the use of "SIMD" entirely because you read an article about a specific AVX512 instruction which caused down-clocking might be a bit premature, no?

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by BooneJS on Tuesday June 23, 2020 @01:54AM (#23610346)
Lots of NICs for large supercomputers have special message passing offload engines. But JSON is too ASCII and too random to find a reason to accelerate it.
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by the8472 on Tuesday June 23, 2020 @09:19AM (#23613525)
One way to do it is to expose it as an nvme block device. Not sure how that's used from userspace, I suspect it's either the right combination of mmap/vmsplice/sendfile from userspace to do p2pdma between the devices in question or some custom ioctls.

https://www.snia.org/sites/default/files/SDC/2019/presentati...

Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by castratikron on Monday June 22, 2020 @10:49PM (#23609465)
Maybe hooks into libz somehow?
Re:Reverse Engineering the Comtech AHA363 PCIe Gzip Accelera... by yjftsjthsd-h on Tuesday June 23, 2020 @12:06AM (#23609815)
Oooh, 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:)