3,896 karma · joined Mar 13, 2015 (11y ago) · 1,174 submissions
comment 2mo ago · link · parent
After the vaccines I made massive changes. I'd reconnected with old friends during lockdown and they suggested I move to be closer to them. My employer was supportive so I ended up moving to the Bay, even got a large pay bump along side it.
Now if I have an evening alone it's because it's what I chose to do. I ended up connecting with well over a hundred people through friends-of-friends and there's always someone down to do something. We have dinner parties at least once a month, sometimes its one of us cooking for the others, other times its a potluck about bringing something in season. Because of the group size and meetup frequency, there's no pressure to schedule things where everyone can attend and no one feels left out if the timing just didn't work that time. There's always going to be another time.
I am immeasurably happier. Most of my 20s I went to bed reminiscing about how childhood was more fun, now I rarely think back.
Ironically, this whole thing basically killed my video game hobby. I just don't have much motivation to play them now that I can message one of several group chats any day of the week and go do something with people in real life.
comment 2mo ago · link · parent
The DMA might actually be the easy part.
The main concern is how many VM exits per second a modern CPU can handle. Even though the interface is "slow", you can probably do ~500k to 1 million IN/OUTs or MOVs per second to ISA. You'd have to trap (VM exit) every access to a IO port or memory within the ISA window.
During the pandemic I cobbled together a KVM-accelerated emulator for an old 386EX based board I had and trapping every memory access to IO was slower than the real hardware.
comment 2mo ago · link · parent
Flattering, in a way.
comment 3mo ago · link · parent
Yes.
Even if you're the owner of the game, the contracts for the voice actors, motion capture, models, etc. frequently define very narrow terms of usage. Defining the exact release platforms is common. Not to mention profit sharing if the actors or studios you're hiring are popular.
It's even worse for retro games. Many times the original rights holder went out of business, sold their rights, died, or something else that muddies the ownership chain.
comment 3mo ago · link · parent
comment 3mo ago · link · parent
comment 3mo ago · link · parent
The current tests would result in a substantial fraction of the population running around thinking they have a highly stigmatized STI that they in fact do not have with little to zero ways of getting a more accurate test.
comment 5mo ago · link · parent
comment 5mo ago · link · parent
If you're looking for a thing to google, look up SR-IOV support on (consumer) GPUs.
Also if you're wondering who the customers of these things tend to be, it's generally the CAD market, law firms, etc. If no one's laptop contains sensitive data and can only stream the desktop of a remote system, the loss or theft of an employee's computer isn't nearly the same kind of a security worry.
comment 5mo ago · link · parent
An 8 GiB DIMM for a desktop or server is using 8x 1 GiB chips or 16x 512 MiB chips (9/18 for ECC). An 8 GiB Pi uses a single 8 GiB chip. That's the same density as you would use for 128 GiB or larger sticks.
comment 6mo ago · link · parent
I place far, far more blame on companies like Qualcomm, Broadcom, Imagination Technologies (PowerVR), etc.
Go look at any of the non-microcontroller RISC-V based SoCs. It's not any better on any metric. Upstream software support is little to non-existent. Basically every RISC-V board needs a vendor kernel and they all have device tree and u-boot hell.
The SoC providers that make powerful chips are in the market of selling more chips - bad external support is a feature for them. Means that when they stop supporting the product you have to come buy a new chip. And if everyone does that, there's no better company to switch to because they all treat you the same.
About the only SoC vendor I have any respect for is Texas Instruments because they actually upstream a bunch of their code. Honestly I think this is because most of their parts are aimed industrial products and have support cycles >10 years.
I intentionally didn't say Rockchip because while they're in a bunch of hobby boards they don't really help with open source hardware work. They just take the position of "we won't stop you, but we're not going to help you".
comment 6mo ago · link · parent
Edit: Their benchmarks are also run using ZRAM, which compresses pages before writing to swap. Not sure what the performance overhead of that is, but it's probably quite a bit.
First of all, it's a userspace program hooking the nbd driver, which is known for being slow. It also uses a bounce buffer in userspace before transferring to the GPU. So when the kernel needs to swap a page, it has to first copy it into a userspace facing buffer. The userspace program that has to wake back up and issue the cuda operation to copy the page into device memory.
nbd also doesn't really do a good job of supporting high queue depth or merging adjacent accesses. So if the kernel is issuing a bunch of 4K page swaps without any coalescing, you're going to end up with at least million kernel/userspace context switches per second just to handle 4 GB/s (4 GB / 4K page), let alone 64 GB/s. And that's just the NBD portion, forget the mess that is the NVIDIA driver. PCIe can move a lot of data, but in order to get anything even resembling the full bandwidth, you have to have use DMA engines with long page lists. Having to set up a transfer for every 4K page over PCIe will not reach full saturation of the bus.
Swapping to NVMe is a very optimized path -> the swapper can submit lists of pages directly to the NVMe driver and the controller can DMA them directly out of RAM, no copies or context switches CPU side at all.
This could probably be improved by migrating to the ublk driver as it might let you avoid the userspace bounce buffer. It'd also be able to have multiple write queues to at least set up CUDA copies in parallel.
comment 6mo ago · link · parent
The problem with putting (system) RAM on a PCIe card is that PCIe is not a cache-coherent interconnect. If you have a cache line that resides on your GPU sitting inside your processor's cache a remote modification to that memory by either the GPU, another CPU core or some other PCIe device with NOT invalidate the CPU cache line. You also have the fun situation that if it's modified on both ends simultaneously the resulting state will be non-deterministic.
Device drivers have to be very careful about synchronization when accessing memory-like areas on PCIe. CXL adds a cache coherency protocol among other things, so that invalidations and snoops can be exchanged over the interconnect.
comment 6mo ago · link · parent
Based on my experience, I think this will prove more true than not in the long run, unfortunately.
Professionally, I see people largely falling into two camps: those that augment their reasoning with AI, and those that replace their reasoning with AI. I’m not too worried about the former, it’s the latter for whom I’m worried.
My mom is a (US public school) high school teacher, and she vents to me about the number of students who just take “Google AI overview” as an absolute source of truth. Maybe it’s just the new “you can’t cite Wikipedia”, but she feels that since the pandemic, there’s a notable decline in the critical thinking skills of children coming through her classes.
We have a whole generation (or two) of kids that have grown up being told what to like, hate, believe, etc. by influencers and anonymous people on the internet. They’d already outsourced their reasoning before LLMs were a thing. Most of them don’t appear to be ready to constructively engage with a system that is designed to make them believe they are getting what they want with dubious quality.
comment 7mo ago · link · parent
On one hand, it seems rather strange, because back in the early days of C (and later C++) there were far more CPU architectures in play. Every big Unix hardware vendor had their own CPU architecture, whereas today we only have about six. (In my mind: x86, arm, mips, risc-v, ppc, and s390x)
But it might be that in the early days of C/C++, development involved connecting to large shared Unix environments where the machine you developed on what always the machine (or at least the same type of machine) the program would run on, and also that those vendors weren't exactly incentivized to make developing for competitor's architectures easy.
comment 7mo ago · link · parent
I have an even stronger sentiment regarding cross compilation though - In any build system, I think the distinction between “cross” and “non-cross” compilation is an anti-pattern.
Always design build systems assuming cross compilation. It hurts nothing if it just so happens that your host and target platform/architecture end up being the same, and saves you everything down the line if you need to also build binaries for something else.
comment 8mo ago · link · parent
If I were more money motivated I’d probably be building CRUD apps too. I just like weird puzzles XD.
comment 8mo ago · link · parent
It really opened my eyes to just how food centric society is.
comment 8mo ago · link · parent
I am a big guy (6’4, 330 lbs), but I was amazed that Ozempic just seemed to do nothing. I was having the gastric side effects, but I could still eat 3000 calories a day if I cheated without feeling anything.
comment 8mo ago · link · parent
But I feel you on sugar. Took me a long time to cut sugar cravings. A decade ago I cut regular soda out of my diet, which a few years later led to me cutting out pretty much anything sweetened. Realistically it wasn’t the sweetness for me, it was the “mouthfeel” or doing something with your mouth. Just straight sparkling water satisfied the entire craving for me.
The hardest thing for me to give up / heavily cut back on was fried things. Maybe that’s the result of my parents using french fries as the reward food when I was a kid…