bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #31667, Run commands with nice

 
 

bug #31667: Run commands with nice

Submitted by:  Ole Tange <tange>
Submitted on:  Tue 16 Nov 2010 08:22:27 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 03 Dec 2010 02:23:28 PM UTC, comment #2:

Implemented --nice in [baba462]

Ole Tange <tange>
Project AdministratorIn charge of this item.
Fri 03 Dec 2010 01:51:42 PM UTC, comment #1:

Test how to deal with enviroment variables.

Ole Tange <tange>
Project AdministratorIn charge of this item.
Tue 16 Nov 2010 08:22:27 AM UTC, original submission:

This works:

PARALLEL="nice -n19" parallel bzip2 ::: *

However if you wanted everything spawed by GNU Parallel to be niced it does not quite work:

PARALLEL="nice -n19" parallel -S .. cat {} '|' bzip2 ::: *

This will only nice cat and not nice bzip2.

Maybe the command could be wrapped similar to:

nice -n19 bash -c 'cat {} | bzip2'

It will need some quoting though. As this will spawn bash and therefore by slow it should only be done if people want it niced.

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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 03 Dec 2010 02:23:28 PM UTCtangeOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1