I have a computing cluster of 44 cores and 256GB memory running Ubuntu and I'd like to limit the number of CPUs and memory used by certain users. Limiting memory usage would be more important. So for example, I'd like to say that user X should only be able to use 10 CPUs and 50GB memory.
How can I achieve this?