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

 
 

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

Submitter:  None
Submitted:  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
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

 

 

 

No changes have been made to this item

Back to the top


Powered by Savane 3.9