IHeartBadCode

joined 2 years ago
[–] IHeartBadCode@kbin.social 57 points 2 years ago (1 children)

Why can’t they just do the right thing from the get-go?

Because like all nice things, people abuse them. Not to indicate that Carnival Cruise is some saint here, but the reason most companies don't just default to "benefit of the doubt" is because there are a ton of very bad people out there that abuse any inch a company will give them.

My step mother was one of those entitled ass people who thought the world owed her. One day she put on some act about a late fee and the person on the other side of the desk was saying "oh I'm sure there's something we can swing…" And having enough of her shit, I was basically, "Do not give this lady a wavier on that late fee, everything she just said is some massive warping of the actual truth!"

Maybe it's because of her, but I find it difficult to ding companies who don't default to "benefit of the doubt". I'm glad the lady got it sorted out. But shoot, I've got massive distrust of folks in general and my step-mother is a lot of the blame for that. Side note, that's likely unhealthy kind of stuff that I should one day sort out.

[–] IHeartBadCode@kbin.social 9 points 2 years ago (2 children)

Grillo’s attorneys had argued that he “believed he was authorized to engage in the conduct set forth in the indictment.”

When your attorney wants to say something better than "he's guilty as fuck, but he's also paying me so could we not pretty please?"

[–] IHeartBadCode@kbin.social 69 points 2 years ago (7 children)

For those wanting a bit of a summary.

transmitting up to 22.9 petabits per second (Pb/s) through a single optic cable composed of multiple fibers

The breakthrough isn’t things moving faster but more fibers per cable. So you can transfer more bits in parallel.

That’s still a good breakthrough because, for lots of reasons, packing more fibers in isn’t as straight forward as one would think.

[–] IHeartBadCode@kbin.social 132 points 2 years ago (6 children)

Mike Johnson: "Look it's not my fault that I'm making this country shitty, it is those pesky LGBTQ+ people."

[–] IHeartBadCode@kbin.social 121 points 2 years ago (4 children)

Man selling cocaine says therapy for cocaine addiction not effective.

[–] IHeartBadCode@kbin.social 31 points 2 years ago (2 children)

In the entire history of the US, there have only been five ever expelled from the US House of Representatives. Three of those five that were expelled because of that whole Civil War thing.

Today, we've added a sixth name to that list. George Santos.

And don't forget the guy has in front of him a very long list of Federal indictments that include hits like conspiracy against the United States, wire fraud, credit card fraud, and money laundering all of those being really big no-nos. Dude has absolutely not been having the greatest last eleven months of his life and boy oh boy we're JUST getting started on the downhill for him.

Like it's a surprisingly very LONG list of crimes he's facing, like WTF dude did you just spend the last eleven months going, "Okay I've had my morning coffee, time to crime!" And then investigators found more crime after he was indicted and was like "Oh no we've got to put all that other crime on pause because … I mean JUST LOOK AT THIS SHIT!!" and filed a superseding indictment. Like shit was so bad, US Prosecutors were like "all his previous crimes, we've got to put that shit on pause. This new shit, it's GOT to take priority." There's no way you violate that much of the law just by happy chance.

I don't know where we'll all be at in five years from now, but I DO know that each day from now onward, for George Santos it can only get worse for him. Like today, today is the worse day in George Santos' life. And tomorrow, tomorrow will be the worse day in George Santos' life. And that pattern will continue for a good amount of time going forward.

[–] IHeartBadCode@kbin.social 17 points 2 years ago

Well looking at the patch

+config NR_CPUS_RANGE_END
+	int
+	default 8192 if  SMP && CPUMASK_OFFSTACK
+	default  512 if  SMP && !CPUMASK_OFFSTACK
+	default    1 if !SMP
+

It looks like it's doing and end range of 8192 but with the off stack flag set. And it seems that…

+	  This is purely to save memory: each supported CPU adds about 8KB
+	  to the kernel image.

Which looks like they're trying to save memory to avoid TLB stalling on the CPU's bitmap. I think if the chip maker is indicating that slab allocation is fine for more at the moment (which the patch looks to be coming from Christoph Lameter, who works at Ampere), it's best to assume they've tested it on their end. Or at least I would think so. If they felt that more on the stack was a fine option, I would think that, that's exactly what they would pitch to the KML. Them saying there's a need for offstack past 512, I'm guessing there's a reason and the one I can think of is TLB stalls.

[–] IHeartBadCode@kbin.social 168 points 2 years ago (9 children)

Well the issue at hand is that this is starting to get to the point that like the x86 arch, you cannot just move the NR_CPUS value upward and call it done. The kernel needs to keep some information on hand about the CPUs, it's usually about 8KB per CPU. That is usually allocated on the stack which is a bit of special memory that comes with some assurances like it being continuous and when things go out of scope they are automagically deallocated for you.

However, because of those special assurances, just simply increasing the size of the stack can create all kinds of issues. Namely TLB missing, which one of the things to make CPUs go faster is to move bits of RAM into some special RAM inside the CPU called cache (which there's different levels of cache and each level has different properties which is getting a bit too deep into details). The CPU attempts to make a guess as to the next bit of RAM that needs to move into cache before it's actually needed, this called prediction. Usually the CPU gets it right but sometimes it gets it wrong and the CPU must tell the actual core that it needs to wait while it goes and gets the correct bit of RAM, because the cores move way faster than the transfer of RAM to the cache, this is why the CPU needs to move the bits from RAM into cache before the core actually needs it.

So keeping the stack small pretty much ensures that you can fit the stack into one of the levels of cache on the CPU and allows the stack to be fast and have all that neat automagical stuff like deallocation when it goes out of scope. So you just cannot increase the NR_CPUS value because the stack will just get too large to nicely fit inside the cache, so it'll get broken up into "pages" with the current page in cache and the other one still in RAM and there will be swapping between the pages which can introduce TLB misses.

So the patch being submitted for particular configurations will set the CPUMASK_OFFSTACK flag. This moves that CPU information that's being maintained to be off of the stack. That is to be allocated with slab allocation. Slab allocation is a kernel allocation algorithm that's a bit different than if you did the usual C style malloc or calloc (which I will indicate that for any C programmers out there, you should use calloc first and if you have reasons use malloc. But calloc should be your go to for security reasons but I don't want to paper over details here by just saying use calloc and never use malloc. There's a difference and that difference is important in some cases).

Without deep diving into kernel slabs, slabs are a bit different in that they don't have some of those nice automagical things that come with the stack memory. So one must be a bit more careful with how they are used, but that's the nice thing about the slab allocator is that it's pretty smart about ensuring it's doing the right thing. This is for the 5.3 kernel, but I love the charts that give a overview of how the slab allocator works. It's pretty similar in 6.x kernels, but I don't have any nifty charts for that version, but if some does I will love you if you posted a link.

That said, it's a bit slower but a fair enough tradeoff until there's some change in ARM Cortex-X memory cache arrangement. Which going from memory I think Cortex-X4 has 32MB shared L3 cache, which if you have 8KB on the 8192 CPU max, you'll need 64MB just to hold the CPU bitmap in L3 which is slow compared to the other levels. And there's other stuff you're going to need in the cache at any given time so hogging it all is not ideal. Setting the limit for stack usage to 512 is good as that means the bitmap is just 4MB and you can schedule well ahead of time (the kernel has a prefetcher which things within the kernel can do all kinds of special stuff with it to indicate when a bit of RAM needs to be moved into cache, for us measly users we can only make a suggestion called a hint, to the prefetcher) when to move it all into cache or leave it in RAM. So it's a good balance for the moment.

But Server style ARM is making headway and so it makes sense to do a lot with it in the same way the kernel handles server style x86 and other server style archs like POWER and what not. But not mess with it too much for consumer style ARM, which hardly needs these massive bitmaps.

[–] IHeartBadCode@kbin.social 7 points 2 years ago (4 children)

Yeah, this article is fucking shit. The support page at Steam literally clears the air on this.

Yes. You will still have access to your 32-bit Mac games in your Steam Library. We are not removing these games from your library and they will continue to work on macOS 10.14 Mojave and earlier, Windows and in many cases Linux as well.

I fucking hate people who write articles to stoke fear for clicks.

[–] IHeartBadCode@kbin.social 0 points 2 years ago (1 children)

Root kit by definition means software that grants root privileges to whoever controls it

That doesn't sound correct. That would mean sudo is a root kit, and I would be hard pressed to find people who agree with that statement.

[–] IHeartBadCode@kbin.social -4 points 2 years ago (2 children)

He's the right age for a midlife crisis and a lot at that point can get triggered by growing mortality combined with a perceived lack of accomplishment in life. Additionally, as others have said, substance abuse is likely a factor in his life. A lot of wealthy people have huge substance abuse issues that their access to vast resources allows them to buffer most of the usual consequences of such. On top of all of that, he's going through a divorce and child custody case with Grimes that is gearing up to be more toxic than a bottle of freshly pumped reactor four coolant water from the Chernobyl disaster.

Yeah I think mental breakdown is a pretty good bet. It is highly likely Musk has a substance abuse issue on top of all of that which is likely not helping anything. The wealthy in the United States do have some of the highest substance abuse rates because for many of them, their lifestyles and access to their vast wealth helps to buffer pretty much a lot of the usual consequences that people face with substance abuse issues. It wouldn't surprise me the least to hear Musk diagnosed with oppositional defiant disorder and that he's largely avoided his "come to Jesus" moment in that due to his vast wealth.

the way hes talking is weird

Yeah, it looks exactly the same way my Aunt used to talk when she was heavy on psychedelics, including the body language. It's a kind of disinhibition where the mind isn't firing any of the parts that would usually guide a person on making thoughtful responses and keeping up with the current situation. Like Musk in the video constantly looks like he's talking to someone out in the audience rather than responding to the person asking the questions but then after talking jets his head right back to the person asking questions like he's asking "more fuel please".

I would be surprised if all of this isn't driven by some substance abuse. But that said, none of anything that's happening is likely good for his mental state, even with his wealth all of this is likely taking a toll on his mental state. The drugs only beg the question of how aware he might be of his declining mental health. But he'd likely tell any doctor concerned about Musk's mental state to go fuck themselves at this point.

[–] IHeartBadCode@kbin.social 248 points 2 years ago (57 children)

Musk responded that the advertising boycott is likely to kill the company. "What this advertising boycott is going to do is it's going to kill the company, and the whole world will know that those advertisers killed the company and we will document it in great detail,"

When Sorkin pointed out that advertisers see things differently, Musk replied, "oh yeah? Tell it to Earth."

Sorkin continued: "They're going to say, Elon, that you killed the company because you said these things and they were inappropriate things and they didn't feel comfortable on the platform. That's what they're going to say."

"And let's see how Earth responds to that," Musk replied.

I mean… I think that pretty much removes any last doubt anyone might have had that Elon Musk had any grasp on the reality that he himself exists in.

view more: ‹ prev next ›