Skip to content

New repo for linux-hardened with gcc optimizations

Final update

Done: DNSSEC + TLS 1.3 + HTTPS (HSTS) + HTTP/2 + IPv6 + anycast CDN

Update: I decided to just do it anyway since it doesn't take too long to compile with distcc. I'll post a link here soon.

I've made a repo for linux-hardened using graysky's kernel gcc patch (so there would be linux-hardened-skylake, linux-hardened-zen, etc. analogous to how repo-ck works). If people are interested, I can compile for all 17 architectures that the patch supports and make the repo public. Also, I'll support delta packages, package signatures, database signatures, HTTPS, HTTP/2, TLS 1.3, IPv6, and have it on a geographically distributed CDN. Ain't nobody got time for slow kernel updates.

Edited 13 Jul 2017. We only hold this version.

31 points17 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
31 · 100% up
Kind
Text
ID
6my296

Author

1
posts
7
comments
0
media
View profile

17 comments

And who are you? Asking, cause using third party repos is possibly a security threat, so it would be nice to know who is this from.

13 points

That's a valid question. I made a private repo for some Arch machines at work and figured that it may be helpful if I made it public. You don't really have a reason to trust anything I say.

If you want to get the benefits of linux-hardened with the CPU optimizations without my involvement, I would recommend taking the kernel GCC patch and linux-hardened directly. Patching is very straightforward and compilation should take less than 15 minutes on an average machine.

Second idea, the CPU optimizations are helpful for some workloads and not for others. If the repo-ck optimized builds don't provide any benefits for your use case(s), then your best bet is to stick with the generic linux-hardened. The repo-ck developer is an Arch Trusted User, so maybe it's a good idea to try his builds out first before wasting your time compiling linux-hardened.

6 points

This sounds interesting.

What does the Skylake version have over the base hardened kernel?

2 points

CPU optimisations, I'm not sure of what new instructions were added with sky lake but for example a recent Xeon generation added 512-bit mathematical instructions/registers, you can only use them if you have a supported CPU otherwise you have to use a lot of instructions to do the same thing which is slower, that's what the various build versions offer

4 points

Where exactly does that matter in the kernel? Most stuff that can be vectorized already is, in form of instruction-specific modules.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.