bugGNU Parallel - Bugs: bug #60213, --limit "io X" executes...

 
 

bug #60213: --limit "io X" executes when io is >X and not <X

Submitted by:  None
Submitted on:  Thu 11 Mar 2021 03:21:12 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 11 Mar 2021 03:21:12 PM UTC, original submission:  

The --limit "io X" option does not behave as expected and seems to not run jobs when the machine is mostly idle.

According to the documentation and comments on --limit:

sub limit($) {
    # Returns:                                                                                                                                                         
    #  0 = Below limit. Start another job.                                                                                                                             
    #  1 = Over limit. Start no jobs.                                                                                                                                  
    #  2 = Kill youngest job        
...
}

However, line 6459 of the parallel script (release 20210222) in function limit() has:

                   exit ($max < '$limit')' $io_file;

which returns a '1' if $max < $limit (True) and hence jobs don't get run.

Should the test be:
                   exit ($max > '$limit')' $io_file;
?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.7