From: Viacheslav Dubeyko <slava@dubeyko.com>
To: Adam Manzanares <a.manzanares@samsung.com>
Cc: Yiannis Nikolakopoulos <yi.nikolakop@gmail.com>,
"mhocko@suse.com" <mhocko@suse.com>,
Dan J Williams <dan.j.williams@intel.com>,
"lsf-pc@lists.linux-foundation.org"
<lsf-pc@lists.linux-foundation.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-cxl@vger.kernel.org" <linux-cxl@vger.kernel.org>,
Angelos Arelakis <angelos.arelakis@zptcorp.com>,
"Weiny, Ira" <ira.weiny@intel.com>,
"yiannis@zptcorp.com" <yiannis@zptcorp.com>
Subject: Re: [Resend LSF/MM/BPF TOPIC] A case of a CXL compressed memory tier
Date: Sun, 19 May 2024 13:37:07 +0300 [thread overview]
Message-ID: <B5F5F6AE-581A-4B40-A651-F1EEC1F25895@dubeyko.com> (raw)
In-Reply-To: <29803911-8566-4fa5-b1d1-7e3def541d7c@nmtadam.samsung>
> On May 14, 2024, at 3:30 PM, Adam Manzanares <a.manzanares@samsung.com> wrote:
>
> On Tue, May 14, 2024 at 01:43:29PM +0200, Yiannis Nikolakopoulos wrote:
>> Hello all,
>>
>> This is almost literally last minute and the work itself is only
>> getting started. But since I'm virtually attending, I thought to give
>> it a shot in case it is of interest.
>>
>> Background: at ZeroPoint Technologies we are developing inline memory
>> compression IP. Currently we are focusing on CXL type 3 devices
>> (memory expanders), effectively introducing a compressed memory tier
>> (i.e. fulfilling the OCP specification "Hyperscale CXL Tiered Memory
>> Expander Specification”).
>>
>> To utilize the memory saved due to compression, we oversubscribe the
>> Device Physical Address Space (DPA) in addition to some custom .io
>> interfaces. If there is interest, I would be glad to present these
>> APIs and how the host's point of view changes compared to a "typical"
>> memory tiering system. The goal would be to get some early feedback
>> and direction for our upstream driver development, before we start
>> pushing the first RFCs.
>
> I am interested in understanding the interfaces and how the memory will be
> consumed and presented by the MM subsystem. It is my understanding that
> we have a 30 min slot for CXL related topics open this morning. I think this
> would be a good fit.
>
After attending the talk, I think it’s really need to clarify/justify the use-cases that
could benefit by employing this approach.
Maybe, I am missing something here. But, I think that compaction scheme could be
a potential pain. I mean even one application allocates and deallocates/frees memory
very frequently. If we place several compressed data portions into some physical granularity
(for example, 4K or any other size), then freeing operation can definitely creates holes or
introduce fragmentation. Memory operations are really fast and such fragmentation could be
really significant. And such fragmentation could be more critical for the case of multiple
applications and multiple hosts. It sounds for me that this approach could really require
a GC or a defragmentation subsystem. But such subsystem could introduce additional latency or
could affect applications’ performance. So, maybe, smart allocation policy can help here,
otherwise, it needs to introduce a really smart and efficient defragmentation or GC policy.
Definitely, it’s interesting problem to think about. :)
Thanks,
Slava.
prev parent reply other threads:[~2024-05-19 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20240514114400uscas1p1e3b27c6da724deb16bf86e4052f29fe4@uscas1p1.samsung.com>
2024-05-14 11:43 ` Yiannis Nikolakopoulos
2024-05-14 12:30 ` Adam Manzanares
2024-05-19 10:37 ` Viacheslav Dubeyko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B5F5F6AE-581A-4B40-A651-F1EEC1F25895@dubeyko.com \
--to=slava@dubeyko.com \
--cc=a.manzanares@samsung.com \
--cc=angelos.arelakis@zptcorp.com \
--cc=dan.j.williams@intel.com \
--cc=ira.weiny@intel.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lsf-pc@lists.linux-foundation.org \
--cc=mhocko@suse.com \
--cc=yi.nikolakop@gmail.com \
--cc=yiannis@zptcorp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox