Re: [PATCHv6 06/10] node: Add memory-side caching attributes

From: Dan Williams
Date: Fri Feb 22 2019 - 13:20:22 EST


On Fri, Feb 22, 2019 at 10:09 AM Keith Busch <keith.busch@xxxxxxxxx> wrote:
>
> On Fri, Feb 22, 2019 at 11:12:38AM +0100, Brice Goglin wrote:
> > Le 14/02/2019 Ã 18:10, Keith Busch a Ãcrit :
> > > +What: /sys/devices/system/node/nodeX/memory_side_cache/indexY/size
> > > +Date: December 2018
> > > +Contact: Keith Busch <keith.busch@xxxxxxxxx>
> > > +Description:
> > > + The size of this memory side cache in bytes.
> >
> >
> > Hello Keith,
> >
> > CPU-side cache size is reported in kilobytes:
> >
> > $ cat
> > /sys/devices/system/cpu/cpu0/cache/index*/size
> >
> > 32K
> > 32K
> > 256K
> > 4096K
> >
> > Can you do the same of memory-side caches instead of reporting bytes?
>
> Ok, will do.

Ugh, please no. Don't optimize sysfs for human consumption. That 'K'
now needs to be parsed.