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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code