lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <877d37d6nn.fsf@yhuang6-desk2.ccr.corp.intel.com>
Date:   Wed, 17 Aug 2022 09:02:04 +0800
From:   "Huang, Ying" <ying.huang@...el.com>
To:     Bharata B Rao <bharata@....com>
Cc:     huang ying <huang.ying.caritas@...il.com>,
        Aneesh Kumar K V <aneesh.kumar@...ux.ibm.com>,
        <linux-mm@...ck.org>, <akpm@...ux-foundation.org>,
        Wei Xu <weixugc@...gle.com>, Yang Shi <shy828301@...il.com>,
        Davidlohr Bueso <dave@...olabs.net>,
        Tim C Chen <tim.c.chen@...el.com>,
        Michal Hocko <mhocko@...nel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Hesham Almatary <hesham.almatary@...wei.com>,
        Dave Hansen <dave.hansen@...el.com>,
        Jonathan Cameron <Jonathan.Cameron@...wei.com>,
        Alistair Popple <apopple@...dia.com>,
        "Dan Williams" <dan.j.williams@...el.com>,
        Johannes Weiner <hannes@...xchg.org>, <jvgediya.oss@...il.com>
Subject: Re: [PATCH v14 04/10] mm/demotion/dax/kmem: Set node's abstract
 distance to MEMTIER_DEFAULT_DAX_ADISTANCE

Bharata B Rao <bharata@....com> writes:

> On 8/16/2022 1:56 PM, huang ying wrote:
> <snip>
>>>>
>>>> If my understanding were correct, you are suggesting to use a kind of
>>>> logarithmic mapping from latency to abstract distance?  That is,
>>>>
>>>>   abstract_distance = log2(latency)
>>>>
>>>> While I am suggesting to use a kind of linear mapping from latency to
>>>> abstract distance.  That is,
>>>>
>>>>   abstract_distance = C * latency
>>>>
>>>> I think that linear mapping is easy to understand.
>>>>
>>>> Are there some good reasons to use logarithmic mapping?
>>>
>>> Also, what is the recommendation for using bandwidth measure which
>>> may be available from HMAT for CXL memory? How is bandwidth going
>>> to influence the abstract distance?
>> 
>> This is a good question.
>> 
>> Per my understanding, latency stands for idle latency by default.  But
>> in practice, the latency under some reasonable memory accessing
>> throughput is the "real" latency.  So the memory with lower bandwidth
>> should have a larger abstract distance than the memory with higher
>> bandwidth even if the idle latency is the same.  But I don't have a
>> perfect formula to combine idle latency and bandwidth into abstract
>> distance.  One possibility is to increase abstract distance if the
>> bandwidth of the memory is much lower than that of DRAM.
>
> So if the firmware/platforms differ in their definition of latency and
> bandwidth (like idle vs real value etc) in the firmware tables
> (like HMAT), then the low level drivers (like ACPI) would have to be
> aware of these and handle the conversion from latency and bw to
> abstract distance correctly?

One possible way to make this a little easier is that we plan to add a
knob (as user space interface via sysfs) for each memory type, so that
the default abstract distance can be offset.  If so, at least we have
way to deal with difference in firmware/platforms.

Best Regards,
Huang, Ying

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ