[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Limit requested cpu cores and RAM



Thank you so much John! That’s exactly what I was looking for!

 

Best regards,

 

Guilherme de Sousa Aranha

BANCO DE PORTUGAL
Departamento de Sistemas e Tecnologias de Informação / Systems and Information Technology Department
DSITI/ESA - Engenharia de Sistemas Aplicacionais


Rua Francisco Ribeiro, 2 | 1150-165 Lisboa
Ext. 20792
garanha@xxxxxxxxxxxx www.bportugal.pt

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of John M Knoeller
Sent: 9 de novembro de 2020 15:26
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] Limit requested cpu cores and RAM

 

Hi. Guilherme, 

 

You can limit RequestCPUs and RequestMemory the same way you impose other limits on what a user is doing with their

jobs by by configuring a submit SUBMIT_REQUIREMENT in the Schedd.

 

For example to limit requested CPUs to 10, and requested Memory to 2GB, you could add this to your configuration

 

SUBMIT_REQUIREMENT_ReqCpus = RequestCpus <= 10

SUBMIT_REQUIREMENT_ReqCpus_REASON = "Jobs should not request more than 10 CPUs"

 

# memory is requested in Megabytes, so we have to multiply to get GB.

SUBMIT_REQUIREMENT_ReqMem = RequestMemory <= 2*1024

SUBMIT_REQUIREMENT_ReqMem_REASON = "Jobs should not request more than 2 GB of Memory"

 

SUBMIT_REQUIREMENT_NAMES = ReqCpus ReqMem $(SUBMIT_REQUIREMENT_NAMES)

 

-tj

 

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> On Behalf Of Guilherme De Sousa
Sent: Monday, November 9, 2020 6:45 AM
To: htcondor-users@xxxxxxxxxxx
Subject: [HTCondor-users] Limit requested cpu cores and RAM

 

Hi!

 

I’ve been searching through the mailing list and documentation for this and can’t seem to find it..

 

We have an htcondor pool with partitionable slots and we’d like to limit the number or requested cpus and RAM but can’t seem to figure out how to do this..

 

Can someone point me in the right direction?

 

Best regards,

 

Guilherme Sousa


Este e-mail dirige-se apenas aos destinatários acima indicados, sendo proibida a sua divulgação, total ou parcial, ou o uso ou reenvio não autorizados. Se recebeu este e-mail por engano, por favor notifique o remetente imediatamente via e-mail e exclua-o do seu sistema.
O Banco de Portugal trata os dados pessoais de acordo com os princípios e regras decorrentes da legislação europeia e nacional, em especial do Regulamento (UE) 2016/679, do Parlamento Europeu e do Conselho, de 27 de abril de 2016. Para mais informações consulte a Página do Banco de Portugal sobre proteção de dados. Em caso de dúvidas, pode contactar o Encarregado da Proteção de Dados para o seguinte e-mail: (encarregado.protecao.dados@xxxxxxxxxxxx). Pode também consultar a Autoridade Nacional da Proteção de Dados.

This e-mail is intended only for the use of the recipient(s) named above. Any unauthorised disclosure use or dissemination, either in whole or in part, is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and delete this e-mail from your system.
Banco de Portugal processes personal data in line with the principles and rules in European and national legislation, in particular Regulation (EU) 2016/679 of the European Parliament and of the Council of 27 April 2016. For further information, see Banco de Portugal’s webpage on data protection. In case of queries, please contact Banco de Portugal’s Data Protection Officer (encarregado.protecao.dados@xxxxxxxxxxxx). You may also contact the Portuguese Data Protection Authority (Comissão Nacional de Proteção de Dados).