Interesting feature, I had no idea. I just verified this with gcc and indeed the return register is always set to 0 before returning unless otherwise specified.
spoiler
int main(void)
{
int foo = 10;
}
produces:
push %rbp
mov %rsp,%rbp
movl $0xa,-0x4(%rbp) # Move 10 to stack variable
mov $0x0,%eax # Return 0
pop %rbp
ret
int main(void)
{
int foo = 10;
return foo;
}
produces:
push %rbp
mov %rsp,%rbp
movl $0xa,-0x4(%rbp) # Move 10 to stack variable
mov -0x4(%rbp),%eax # Return foo
pop %rbp
ret
This reads like it was written by some LLM.
Don’t ever disable journaling if you value your data.
Neither of these schedulers exist anymore unless you’re running a really ancient Kernel. The “modern” equivalents are
none
andbfq
. Also this doesn’t even touch on the many tunables thatbfq
brings.Also changing them like they suggest isn’t permanent. You’re supposed to set them via udev rules or some init script.
None of this changes any settings like they imply.
No shit. Who would’ve thought that throwing more/better hardware at stuff will make things faster.
EDIT: More bullshit that I noticed:
Again this doesn’t permanently change the maximum number of open files. This only raises the limit for the user who runs that command. What you’re actually supposed to do is edit
/etc/security/limits.conf
and then relog the affected user(s) (or reboot) to apply the new limits.This doesn’t even make any sense.