[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Parallel Bug Reports Use of uninitialized value $swap_out in pat
From: |
Rhys Ulerich |
Subject: |
Re: GNU Parallel Bug Reports Use of uninitialized value $swap_out in pattern match |
Date: |
Wed, 24 Oct 2012 14:25:32 -0500 |
> The swap activity is determined from the output of: vmstat 1 2 -
> specifically:
>
> { vmstat 1 2 2> /dev/null || vm_stat 1; } | awk 'NR!=4{next}
> NF==16{print $7*$8} NF==11{print $10*$11} {exit}'
>
> What does this output on your system?
>From bash, running
( vmstat 1 2 || vm_stat 1 ) | awk 'NR!=4{next} NF==16{print $7*$8}
NF==11{print $10*$11} {exit}'
outputs nothing.
Running
vmstat 1 2
outputs
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 587736 320220 62341788 0 0 20 36 1 1 4
0 95 0 0
0 0 0 587612 320220 62341788 0 0 0 0 106 87 0
0 100 0 0
- Rhys