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

Add a New Comment Rich Markup
   

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

 

(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

 

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

    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.

     

    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.13-4448.
    Corresponding source code