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

[HTCondor-users] integer overflow with default_max_jobs_running


We are hitting a bug with large memory machines where MaxJobsRunning is defaulted to a negative number.  I believe this is due to the fact that the default_max_jobs_running is calculated as:

 int default_max_jobs_running = sysapi_phys_memory_raw_no_param()*4096/400;

With large amounts of physical memory (in our case 1TB), the value overflows and becomes negative causing the comparison that happens immediately after to return false:

if( default_max_jobs_running > 10000) {
        default_max_jobs_running = 10000;



IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.