[ / / / / / / / / / / / / / ] [ dir / chaos / f / general / hentai / leftpol / maka / quests / sw ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 74570b34d08f10c⋯.png (200.14 KB, 610x441, 610:441, b.png) (h) (u)

[–]

 No.839786>>839819 >>839877 >>840093 >>842692 >>843468 [Watch Thread][Show All Posts]

what kind of performance gains do I need to prepare for after -march=nativing the build toolchain?

 No.839788>>839837

Some stuff really do benefit from -O3 -march=native, but using it everywhere is mostly dumb. Just build your x264 or stuff like that with it, and stay in -O2 -march=native everywhere else.


 No.839792>>839803 >>840075

What's the point of LFS when Gentoo exists?


 No.839803

>>839792

>gentoo

heh more like port``ly``age


 No.839819

>>839786 (OP)

>ooga booga I reinvent wheel


 No.839837>>839871 >>839972 >>840021

>>839788

Isn't O3 worse than O2 like the majority of the time?


 No.839871

>>839837

It can be, which is why O3 should be selectively applied, and justified with benchmarks.


 No.839876>>839972

Who /-ffast-math/ here


 No.839877

>>839786 (OP)

>linux from scratch

Should be called GLFS - GNU/Linux From Scratch since the book is about building a GNU/Linux system, not kernel development.


 No.839878>>840021 >>840153 >>840159

In Rust -O3 is default LOL. Sucks to be a C/C++ cuck


 No.839889>>840154

Reminds me of this one time I read the instructions for a mod and then downloaded it and installed it.

My friends were like

>dude you mean you downloaded a zip of the game+mod

>nah dude I downloaded the mod itself

>naw dude you mean you downloaded a script that downloaded the mod

>nah dude I literally read the instructions myself

>dude I don't have the time for that I just wait for someone else to and then they tell me how to do it

>nah dude it was pretty easy. dude wrote the readme for people to read and shit

>wow are you some kind of wizard

True story


 No.839972

>>839837

You fell for it, mate. It _can_ be bad.

>>839876

I use for my own code, but I'm not Xtreme enough to use it everywhere. Now, use -fassociative-math -freciprocal-math -fno-trapping-math for maximum compiler black magic.


 No.840021

>>839837

Not in my experience.

>>839878

>rust

lol'd, good joke.


 No.840075

>>839792

Staticly compiling everything and everything and removing uneeded functions to save space, otherwise gentoo just werkz and has static compiling but not to that extreme.


 No.840093>>842711

>>839786 (OP)

Before wasting years of your life, know that x86 architecture will die and everything will become meaningless.

Jump on the next ship.


 No.840106>>840142 >>840376

-ftree-vectorize -fvect-cost-model=cheap

When combined with -march=native in my own testing it gives a very consistent performance boost.

-ftree-vectorize is only enabled at -O3 but with -fvect-cost-model=cheap along with it from my testing the compiler will only vectorize if it's absolutely sure things are beneficial.


 No.840142

>>840106

If you have a few different settings for ATTACK COMPILE THE KERNEL FOR MASSIVE DAMAGE PERFORMANCE GAINS, wouldn't it make sense to just have a few kernels compiled slightly differently and boot whichever one you needed for the task you're going to perform at the time? I've never really understood why there weren't stable/performance/autist kernel choices for most major distros.


 No.840153

>>839878

>turn on debug build

>program slows down x100

LOL


 No.840154

>>839889

Abandon your friends.


 No.840159

>>839878

>promoting the Gaybathhouse Language

>obsesses over sucking cucks

Coincidence?


 No.840293>>840353 >>840376

>tfw you find out that -march=native is a compiler flag, it still builds all bloat in kernel and wastes 18 hours of your life


 No.840353>>840379 >>840601

>>840293

>>you find out that -march=native is a compiler flag

<he doesnt compile and still manages to come here

You would be better off on >>>/g/ or even >>>/reddit


 No.840376

>>840293

The only way to build the kernel with only the things you need is to run "make localmodconfig" and then adding back modules and features you need with something like "make menuconfig".

-march=native will enable extentions to x86/x86_64/mipsr1/whatever that your processor is compatible with, and most of the time also silently enable -mtune=native which is supposed to put out assembly that's supposed to run better on your processor. The last part I don't understand very well so far, from what I've seen it takes your processor's cache size into account when picking between assembly that's faster but bigger or slower but smaller but there should be more to it.

It should also be nice to enable -ftree-vectorize and -fvect-cost-model=cheap when using -march=native like I said in >>840106 . I've found that it works well.

If you run "man gcc" you can get an information on those flags, or use the webpage version https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html


 No.840379>>840383 >>840386

>>840353

>compiling what's been compiled before me on much more powerful hardware by skilled developers and packaged in mainline repos


 No.840383

>>840379

>operations performed by other people are automagically better than me doing it

That said, I have a highly customized kernel config for my hw and it loads less than ten modules. I compile my kernel with this config in about 10 minutes with my desktop. This is what people commonly refer to as "the PC master race" and with good reason too.

Open the black box and it becomes just an ordinary box. No need to shy away from it.


 No.840386

>>840379

>compiling what's been compiled before me on some server in the basement of KFC by pajeets, that enabled every possible option and then pushed the package to the mainline repos


 No.840601

>>840353

even gentooians just download the firefucks binary most of the time


 No.842692>>842693

File (hide): 8b15a660b8b18a5⋯.png (69.22 KB, 770x622, 385:311, diy.png) (h) (u)

File (hide): 31c7456f1b00538⋯.png (4.3 KB, 718x422, 359:211, paging_enabled.png) (h) (u)

>>839786 (OP)

>Linux From Scratch

Why bother with that when you can just go all the way and write your own kernel?


 No.842693

>>842692

Because it's an exercise in Linux administration. Writing your own kernel will teach you something about system programming, but it won't teach you much about all the parts that go into a modern Linux system and how they fit together.


 No.842711

>>840093

>implying x86 won't be dragged on as an undead zombie for all of time


 No.842741

>try to use any distro

>packages out of date

>missing build flags

And the alternative is being reduced to building everything.

What a fantastic OS.


 No.843468

>>839786 (OP)

Why do you need performance?


 No.845467

>not running everything on a VM

>not investing in cloud hardware

>not having spc and developing your own software center




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
32 replies | 2 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / chaos / f / general / hentai / leftpol / maka / quests / sw ][ watchlist ]