Score:0

Shared server resouces mangement

eg flag

We have an on-prem Xeon server running Ubuntu LTS that is shared across few developers. Each developer logs in with his on user and run various workloads on it. The problem we experience is when sometime runs a CPU or storage extensive workload, the other users can't actually work on the machine, the shell becomes non-responsive.

We tried to ask the user to limit their CPU utilization when building and it solved the CPU issues, but apperently, disk IO utilization continues to be a problem. We're using SSD storage.

The usage of virtual machine on the server is not a possibility, as we don't want to hard limit the resources. we just want to make sure that there won't be starvation of resources to other users.

What options do we have ?

Score:1
bh flag

How flexible is modification of the workloads? There are utilities such as nice that can limit priority of processes restrict just how much of a slice they can ge.

https://www.geeksforgeeks.org/nice-and-renice-command-in-linux-with-examples/#

But as you have already noted, this solution is not perfect because the issue here will likely be that when only one user is on, they will not be able to use the system to its fullest potential. And that may just be a new isue.

Disk IO, others have asked and worked out solutions such as the answer here https://unix.stackexchange.com/questions/536007/cgroups-throttle-per-user-disk-i-o-bandwidth-on-linux

I am afraid there probably will be no perfect solution, this is why things like virtualization have become so popular to make more efficient use of shared resources.

Like all things linux, there are likely more work around out there (and maybe even systems designed to leverage them)

IMHO to do this correctly would likely require some scheduling at the kernel level, or some interface to use scheduling options already there, I am not aware of any. ...But I have been wrong before, so if someone else chimes in with a solution, I will learn too! So the answer may be that there is no answer without accepting concessions.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.