bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #36151, swap_activity broken in v20120322

 
 

bug #36151: swap_activity broken in v20120322

Submitted by:  Thomas Sattler <tsattler>
Submitted on:  Wed 11 Apr 2012 09:05:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
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 20 Apr 2012 10:36:15 PM UTC, comment #1:

Fixed in [463ec5b]

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 11 Apr 2012 09:05:52 AM UTC, original submission:

The code used to check for swap_activity is broken since 20120322:

vmstat 1 2 2>/dev/null | tail -n1 | awk '{print $7*$8}' ||
vm_stat 1 | head -n 3 | tail -n1 | awk '{print $9*$10}'

We discussed the issue on the list and the following code should
now work with vmstat and vm_stat:

{ vmstat 1 2> /dev/null || vm_stat 1; } | awk '
NR!=4{next}
NF==16{print $7*$8}
NF==11{print $10*$11}
{exit}
'

Thomas Sattler <tsattler>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25628:  swap_activity.patch added by tsattler (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  • -unavailable- added by tsattler (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 20 Apr 2012 10:36:15 PM UTCtangeStatusNone=>Fixed
      Assigned toNone=>tange
      Open/ClosedOpen=>Closed
    Wed 11 Apr 2012 09:29:08 AM UTCtsattlerAttached File-=>Added swap_activity.patch, #25628

    Back to the top


    Powered by Savane 3.1-cleanup1