News for hackers. Stuff that matters.
Re:3,200% CPU Utilization by thinkingemote on Friday February 28, 2025 @02:25PM (#43209305)
"I could barely ssh onto it"

Is there a way to ensure that whatever happens (CPU, network overloaded etc) one can always ssh in? Like reserve a tiny bit of stuff to the ssh daemon?

Re:3,200% CPU Utilization by beisner on Friday February 28, 2025 @03:07PM (#43209756)
On Linux I’ve done this by pinning processes to a certain range of CPU cores, and the scheduler will just keep one core free or something. Which allows whatever I need in terms of management to execute on that one core, including SSH orUI.
Re:3,200% CPU Utilization by LtdJorge on Friday February 28, 2025 @02:27PM (#43209328)
Nice? Or maybe give the Systemd slice a special cgroup with a reservation.
Re:3,200% CPU Utilization by Aloisius on Friday February 28, 2025 @04:34PM (#43211545)
I'd consider doing the inverse and nice the JVM with a lower priority instead in certain situations.
Re:3,200% CPU Utilization by homebrewer on Friday February 28, 2025 @05:51PM (#43212804)
Create a systemd override (by using systemctl edit sshd) and add MemoryMin=32M (or whatever makes sense for your system). This makes sure sshd is never pushed out into swap.

https://www.freedesktop.org/software/systemd/man/latest/syst...

You can also use sibling knobs to increase the CPU and IO weights of the unit, for example but setting this to something higher than 100:

https://www.freedesktop.org/software/systemd/man/latest/syst...

Re:3,200% CPU Utilization by masklinn on Saturday March 01, 2025 @03:05AM (#43217120)
Is there a way to do that for alternate tty?

From time to time I’ll run something dumb on my machine (e.g. GC aggressive the wrong repo) and if I don’t catch the ramp up the machine will lock up until the oom killer find the right process. Sufficiently locked up, accessing alternate ttys to kill the offending process won’t work either.

I guess I could just reserve ssh then ssh into it from an other computer but…