Thanks Greg,
After activating swap on our servers.
By default, swap in docker is unlimited which is not that good for our usage.
I wish to add a classad to the job which will be added to the DOCKER_EXTRA_ARGUMENTS.
For example, add +Swap = 2000 to the submit file. how can I append it to DOCKER_EXTRA_ARGUMENTS
Will it be? DOCKER_EXTRA_ARGUMENTS = --memory-swap = $(TARGET.Swap)
The example above actually not getting any value.
Thanks
David
From: Dudu Handelman <duduhandelman@xxxxxxxxxxx>
Sent: 13 March 2021 00:59
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Swap and Docker
Thanks Greg.
I will give it a try by activate swap.
Thank you
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Greg Thain <gthain@xxxxxxxxxxx>
Sent: Friday, March 12, 2021, 18:03
To: htcondor-users@xxxxxxxxxxx
Subject: Re: [HTCondor-users] Swap and Docker
Hi All,
Is it possible to use swap with Docker universe?
Many Thanks
David,
When HTCondor runs a docker universe job, it passes the command line parameter "-mem " to the equivalent of docker run, and gives it the memory allocated to the slot, which is roughly the value of "Request_memory" in the submit file. This is the physical
memory that docker will use for the job. If the job tries to allocate more than that, the kernel will push the rest to paging/swap space, assuming you have swap configured on your system.
-greg
|