bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #37619, niceload --sensor "program |...

 
 

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

Submitted by:  Ole Tange <tange>
Submitted on:  Tue 23 Oct 2012 04:21:46 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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

Fixed in 59a1d67b5

Ole Tange <tange>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Dec 2012 10:02:37 PM UTCtangeStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup