Speeding up Linux disk encryption (Cloudflare)
As we can see the default Linux disk encryption implementation has a significant impact on our cache latency in worst case scenarios, whereas the patched implementation is indistinguishable from not using encryption at all. In other words the improved encryption implementation does not have any impact at all on our cache response speed, so we basically get it for free!" Patches are available, but they are apparently not in any form to go upstream.
Posted Mar 26, 2020 7:00 UTC (Thu)
by jezuch (subscriber, #52988)
[Link] (5 responses)
> If the numbers disturb you, then this is from lack of understanding on your side. You are probably unaware that encryption is a heavy-weight operation...
Am I being a snowflake for reading this as just a little condescending?
Posted Mar 26, 2020 8:41 UTC (Thu)
by Karellen (subscriber, #67644)
[Link] (4 responses)
No, that's how I read it too.
I also thought it was pretty classy of Cloudflare to not mention the responder's name in the blog post, or link directly to the reply. I probably would not have been so kind.
Posted Mar 26, 2020 9:59 UTC (Thu)
by epa (subscriber, #39769)
[Link] (3 responses)
Posted Mar 26, 2020 11:22 UTC (Thu)
by geuder (subscriber, #62854)
[Link] (2 responses)
Posted Mar 27, 2020 15:03 UTC (Fri)
by hailfinger (subscriber, #76962)
[Link] (1 responses)
Posted Mar 27, 2020 17:00 UTC (Fri)
by geuder (subscriber, #62854)
[Link]
Posted Mar 26, 2020 9:33 UTC (Thu)
by zdzichu (subscriber, #17118)
[Link] (1 responses)
Posted Mar 29, 2020 22:40 UTC (Sun)
by bored (subscriber, #125572)
[Link]
Posted Mar 26, 2020 10:02 UTC (Thu)
by epa (subscriber, #39769)
[Link]
Posted Mar 26, 2020 11:52 UTC (Thu)
by geuder (subscriber, #62854)
[Link] (5 responses)
That's what you get with one size fits all. The kernel is supposed to support everything from spinning disks, tiny 32 bit systems up to nvme, hundreds of gigs of RAM. It would be a miracle if all scenarios performed ideally. Still it performs well enough in many cases.
There is certainly happening a lot of bit rot in the kernel. The resources I have had at work have been always orders of magnitude smaller than what Cloudflare seems to have. Still we have identified similar problems, where 10+ year old code just doesn't work very well. With small resources all you can do is go away (not from Linux, but from a certain fs for example) or make a really dirty hack that you don't dare to show anybody else, even if it happens to work in your system.
Anyway, with Linux all these options exist, at Cloudflare scale and for the 0.3 person kernel teams. If you don't like it, go out, get/buy/write a kernel and report when you are happier :) I'm willing to listen, but I don't hold my breath until that.
Posted Mar 27, 2020 17:12 UTC (Fri)
by geuder (subscriber, #62854)
[Link] (4 responses)
Sorry, sloppy wording. I did not intend to ask for violating GPL here. I just meant writing blog posts or posting it to a kernel list. In your tar ball there is always hope that nobody ever looks at it :) Although I as a developer prefer complete git history over tar balls...
Posted Mar 29, 2020 17:05 UTC (Sun)
by rillian (subscriber, #11344)
[Link]
Posted Apr 3, 2020 15:27 UTC (Fri)
by paulj (subscriber, #341)
[Link] (2 responses)
Seems pretty obvious, except to those invested in it not being obvious.
Posted Apr 4, 2020 2:07 UTC (Sat)
by pabs (subscriber, #43278)
[Link] (1 responses)
Posted Apr 4, 2020 5:23 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link]
Posted Mar 26, 2020 14:55 UTC (Thu)
by abatters (✭ supporter ✭, #6932)
[Link] (1 responses)
Posted Mar 27, 2020 19:20 UTC (Fri)
by flussence (guest, #85566)
[Link]
Posted Mar 29, 2020 19:29 UTC (Sun)
by floppus (guest, #137245)
[Link]
The patches look remarkably simple, to my untrained eye. I realize they're a bit kludgy and not a good long-term solution, but can anybody familiar with dm-crypt comment on whether the patches as-is are likely to have any stability / data corruption issues?
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
However, the person replying is the author/maintainer of the cryptsetup FAQ.
Speeding up Linux disk encryption (Cloudflare)
Bufferbloat
Once again bufferbloat is to blame, and once again storage layers are emulating what networking did earlier.
Bufferbloat
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
Speeding up Linux disk encryption (Cloudflare)
cpufreq
cpufreq
Speeding up Linux disk encryption (Cloudflare)