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? However it's of course fine with me to make the summary lines optional. > > The lsmem tool also has "--extendend" and "--parsable" option which > > can be used to customize the output, e.g. limit the output to > > specified columns. This is quite similar to what the lscpu tool does. > > Frankly, I don't like these lscpu options :-) For new tools we have > --pairs/export (NAME=value), --raw, --json and --output=<list>. > > You do not need to re-submit the patches, I'll cleanup the stuff. Also fine with me :) Thank you for taking care of this! -- 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