7 ms·
> Don't crash my entire PC when there's a large (100+ MB) JSON file in the working directory I don't think you can put this on Zed. An unprivileged userspace
by stusmall 1mo ago
> Don't crash my entire PC when there's a large (100+ MB) JSON file in the working directory
I don't think you can put this on Zed. An unprivileged userspace application, even if coded poorly, shouldn't crash the machine.
- embedding-shape 1mo ago> An unprivileged userspace application, even if coded poorly, shouldn't crash the machine. How would you prevent that? It can write until root disk is full, can take all your memory, saturate your CPU and a whole bunch of other stuff we (users) like to be able to do for the things that need them. Unless you're suggesting something like Qubes or similar UX?
- itishappy 1mo agoDisk, memory, and CPU limits? The app should crash, not the kernel.
- embedding-shape 1mo agoRight, my point being that it's should be up to the user to decide, because most of the times I run programs, I actually want them to be able to gobble up GB of disk, RAM and fully make use of my CPU. That's why I bought the hardware I have :)
- itishappy 1mo agoIsn't that the default? The user has access to all available memory unless they (or an admin) set a restriction. Unavailable memory is only unavailable because writing to it crashes the kernel, thus preventing you from using your hardware!
- embedding-shape 1mo ago> Isn't that the default? Yes, it is, and for good reasons. That's why I disagreed with the original "An unprivileged userspace application, even if coded poorly, shouldn't crash the machine" part.
- itishappy 1mo agoI don't follow. The default today is that an unprivileged user space application should not crash the machine. The kernel reserves what it needs, then hands the rest to user space. Thus, all available memory should not crash the machine. https://en.wikipedia.org/wiki/User_space_and_kernel_space https://en.wikipedia.org/wiki/User_space_and_kernel_space https://en.wikipedia.org/wiki/Virtual_memory https://en.wikipedia.org/wiki/Virtual_memory
- umvi 1mo agoSometimes OOM Killer can stop it before it wrecks too much havoc, but often everything grinds to a complete halt and I have to just power cycle.