Hi Mark,

many thanks for your quick answer. On my host, `collectl -sm
--verbose` reports some memory quantities in K, some in M, some in G:
(Well, except for the "paging" category, but then it's clear what that
metrics are.)

    $ collectl -sm --verbose
    waiting for 1 second sample...

    # MEMORY SUMMARY
    #<-------------------------------Physical
Memory--------------------------------------><-----------Swap------------><-------Paging------>
    #   Total    Used    Free    Buff  Cached    Slab  Mapped    Anon
Commit  Locked Inact Total  Used  Free   In  Out Fault MajFt   In  Out
        3624M   3160M 474612K 659072K 436612K   1074M 138032K 951536K
 3356M    100K  496M 7628M 6760K 7622M    0    0   239     0    0    0
        3624M   3160M 475272K 659080K 436868K   1074M 138036K 950936K
 3355M    100K  496M 7628M 6760K 7622M    0    0   103     0    0  160

But then, when I use `-P`, the units are gone and they seem not to
match those used in the `-sm --verbose` output: e.g., `[MEM]Tot` seems
to be in KB with `-P` and in MB with `-sm`, but `[MEM]Free` does the
reverse...

    $ collectl -sm -P
    waiting for 1 second sample...
    #Date Time [MEM]Tot [MEM]Used [MEM]Free [MEM]Shared [MEM]Buf
[MEM]Cached [MEM]Slab [MEM]Map [MEM]Anon [MEM]Commit [MEM]Locked
[MEM]SwapTot [MEM]SwapUsed [MEM]SwapFree [MEM]SwapIn [MEM]SwapOut
[MEM]Dirty [MEM]Clean [MEM]Laundry [MEM]Inactive [MEM]PageIn
[MEM]PageOut [MEM]PageFaults [MEM]PageMajFaults [MEM]HugeTotal
[MEM]HugeFree [MEM]HugeRsvd [MEM]SUnreclaim
    20131029 16:11:59 3711376 3229500 481876 0 659524 438056 1100096
138184 942152 3432276 100 7812092 6760 7805332 0 0 280 0 0 508756 0
656 45 0 0 0 0 63808
    20131029 16:12:00 3711376 3228936 482440 0 659524 437168 1100092
138184 942160 3431384 100 7812092 6760 7805332 0 0 280 0 0 508768 0 0
66 0 0 0 0 63804
    20131029 16:12:01 3711376 3228788 482588 0 659524 437204 1100096
138208 942316 3431384 100 7812092 6760 7805332 0 0 300 0 0 508768 0 0
76 0 0 0 0 63808

Is there a way to get all output in -say- MB, or to know what is the
default unit for each metric?

Thanks,
Riccardo

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Collectl-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/collectl-interest

Reply via email to