Re: [PATCH 2/4] lsmem: new tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 03, 2016 at 05:19:48PM +0100, Heiko Carstens wrote:
> On Thu, Nov 03, 2016 at 01:00:59PM +0100, Karel Zak wrote:
> > On Wed, Oct 12, 2016 at 02:00:45PM +0200, Heiko Carstens wrote:
> > > RANGE                                 SIZE STATE   REMOVABLE BLOCK
> > > 0x0000000000000000-0x000000005fffffff 1,5G online  yes       0-5
> > > 0x0000000060000000-0x000000007fffffff 512M online  no        6-7
> > > 0x0000000080000000-0x000000013fffffff   3G online  yes       8-19
> > > 0x0000000140000000-0x000000014fffffff 256M offline -         20
> > > 0x0000000150000000-0x000000017fffffff 768M online  no        21-23
> > > 
> > > Memory block size   :     256M
> > > Total online memory :     5,8G
> > > Total offline memory:     256M
> > 
> > It seems that for backward compatibility we need the summary lines at
> > the end. Maybe we can add --no-summary and --summary-only for people
> > who want to use it in the scripts.
> 
> Scripts should use the --parsable option (or one of the new options you
> mentioned below), no?

Yes, good point.

> However it's of course fine with me to make the summary lines optional.

I have added --summary[=never,always,only]

    never  - disable summary lines at all (forced for parsable  outputs)
    always - default for standard output
    only   - prints only summary, no table with blocks, default when
             --summary specified without argument

> Also fine with me :) Thank you for taking care of this!

    https://github.com/karelzak/util-linux/tree/mem-tools

This branch contains the new lsmem; the next week I'll cleanup chmem 
and merge it to the master branch (after v2.29 release, probably
Monday).

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux