Hi David,
If your goal is to limit the amount of RAM memory per job, then kernel
Cgroups is probably the answer. I've collected some information in my
Wiki page:
https://wiki.fysik.dtu.dk/niflheim/Slurm_configuration#cgroup-configuration
If some users need more RAM than available for 1 core, they have to submit
jobs for a larger number of cores to get it. This makes a lot of sense, IMHO.
SchedMD is working on the use of Cgroups v2, see the talk "Slurm 21.08 and
Beyond" by Tim Wickberg, SchedMD,
https://slurm.schedmd.com/publications.html
You could probably "fool" Slurm as you describe it, but that shouldn't be
necessary.
I hope this helps.
/Ole