linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "mannywang(王永峰)" <mannywang@tencent.com>
To: hughd <hughd@google.com>
Cc: linux-mm <linux-mm@kvack.org>
Subject: Proposal for Creating Shared Memory Areas via a Character Device
Date: Thu, 27 Jun 2024 18:53:04 +0800	[thread overview]
Message-ID: <tencent_5627BD2E0A6AEFC62A50006B@qq.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

Dear Mr. Dickins,


We have identified certain scenarios, such as interactions between running Docker containers and their hosts, where there is currently no suitable method to efficiently create shared memory areas. This limitation arises due to the isolated nature of these environments and the assumption that necessary path mappings may not have been configured during Docker startup.

My proposal involves introducing a character device driver (e.g., /dev/shared-mem) that allows processes within Docker containers and on the host system to share memory via mmap operations on this device. Unlike alternative solutions such as mmap-ing through file paths, this method eliminates the need to restart Docker containers by enabling Docker to access a specific character driver.

Thank you for considering this proposal, which aims to facilitate efficient data exchange between Docker containers and their hosts without disrupting ongoing operations.

Looking forward to hearing from you.

Best regards,

Manny Wang




发自我的企业微信

[-- Attachment #2: Type: text/html, Size: 2287 bytes --]

             reply	other threads:[~2024-06-27 10:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27 10:53 mannywang(王永峰) [this message]
2024-06-27 12:44 ` Matthew Wilcox

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=tencent_5627BD2E0A6AEFC62A50006B@qq.com \
    --to=mannywang@tencent.com \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    /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