Slurm Job manager
To allocate 4 CPU cores and 8 GB of RAM for an emacs process using the srun command, you can use the following command:
srun --cpus-per-task=4 --mem=8192 emacs
The --cpus-per-task option specifies the number of CPU cores to allocate, and the --mem option specifies the amount of memory in megabytes.
To pass the -nw argument to emacs when using the srun command, you can simply include it after the emacs command in the srun command line. For example:
srun --cpus-per-task=4 --mem=8192 emacs -nw
To run emacs in an interactive shell using srun, you can use the --pty option. This will allocate a pseudo-terminal (tty) for the job, which will allow emacs to access the terminal and run interactively.
srun --pty --cpus-per-task=4 --mem=8192 emacs -nw
To allocate more CPU clock frequency for an emacs process when using the srun command, you can use the --cpu-freq option. This option allows you to specify the CPU frequency in megahertz (MHz).
srun --pty --cpus-per-task=4 --mem=8192 --cpu-freq=3400 emacs -nw