bugGNU Parallel - Bugs: bug #37619, niceload --sensor "program |...

 
 

bug #37619: niceload --sensor "program | script" job

Submitter:  Ole Tange <tange>
Submitted:  Tue 23 Oct 2012 04:21:46 PM UTC
   
 
Category:  None Severity:  1 - Wish
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  tange Open/Closed:  Closed
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Mon 03 Dec 2012 10:02:37 PM UTC, comment #2: 

Fixed in 59a1d67b5

Ole Tange <tange>
Group administrator
Fri 23 Nov 2012 10:17:25 PM UTC, comment #1: 

Suspend my_program if my_sensor_prg gives > 10:

niceload -l 10 --sensor my_sensor_prg my_program


Suspend my_program if my_sensor_prg gives < 10:

niceload -l -10 --sensor my_sensor_prg my_program

So if limit is negative it means treat the limit as a lower limit.

Ole Tange <tange>
Group administrator
Tue 23 Oct 2012 04:21:46 PM UTC, original submission:  

niceload will run the --sensor program.

The program should print on stdout a number. This number will be treated similar to load.

The sensor program will be run in a loop like:

while(1) {
  sensor_program
  sleep 1
}

If the program immediately gives a single value and exits, then this works fine.

If the program continously spits out data continously (vmstat) it will be read nonblocking every second. The latest complete line will be used.

How can we turn on autoflush to avoid buffering 4 kb?

Users are encourage to develop sensor program and the best of these will be distributed with niceload.

Some ideas:

  • Temperature
  • disk io on a given filesystem


Ole Tange <tange>
Group administrator

 

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

Carbon-Copy List
  • -email is unavailable- added by tange (Submitted the item)
  •  

    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

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-12-03 tange StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code