Limit cpus and memory in Singularity

1,838 views
Skip to first unread message

Raimon Bosch

unread,
Jul 13, 2016, 9:46:43 AM7/13/16
to singularity

Hi all,

Is it possible to limit memory and number of cpus used for each Singularity container? Like you would do in docker by sending the parameters --memory and --cpu-shares.

Thanks in advance,

Gregory M. Kurtzer

unread,
Jul 13, 2016, 5:11:51 PM7/13/16
to singularity
Hi Raimon,

That is outside of the current scope of Singularity at this point... This is because Singularity containers are designed to run like any other application on the system, so existing limitations (set by the resource manager or ulimits) should already apply.

Greg

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.



--
Gregory M. Kurtzer
High Performance Computing Services (HPCS)
University of California
Lawrence Berkeley National Laboratory
One Cyclotron Road, Berkeley, CA 94720

Aly Khalifa

unread,
Sep 20, 2017, 12:08:06 PM9/20/17
to singularity
Hi Greg,
I'm using singularity container that bootstrap a docker image requiring at least 4 gigabytes as RAM, otherwise incorrect results will be produced.
Is there is a way to make this singularity container runs using at least 4 gigabytes RAM on a linux machine? or just running it over a +4 gigabytes RAM machine is all what I can do?

Thanks,
Aly

Gregory M. Kurtzer

unread,
Sep 20, 2017, 4:03:59 PM9/20/17
to singu...@lbl.gov
Hi Aly,

Typically this is allocated via the resource manager (if running on an HPC resource).

Greg

To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.



--
Gregory M. Kurtzer
CEO, SingularityWare, LLC.
Senior Architect, RStor
Computational Science Advisor, Lawrence Berkeley National Laboratory
Reply all
Reply to author
Forward
0 new messages