bugGNU Parallel - Bugs: bug #31667, Run commands with nice

 
 

bug #31667: Run commands with nice

Submitter:  Ole Tange <tange>
Submitted:  Tue 16 Nov 2010 08:22:27 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Implemented --nice in [baba462]

Ole Tange <tange>
Group administrator
Fri 03 Dec 2010 01:51:42 PM UTC, comment #1: 

Test how to deal with enviroment variables.

Ole Tange <tange>
Group administrator
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>
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.

     

    Follows 1 latest change.

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

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code