New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 628834 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Add support for memfd_create to Chromium

Project Member Reported by reve...@chromium.org, Jul 16 2016

Issue description

memfd_create is a new mechanism on Linux to get a file-descriptor for anonymous memory. More details about memfd_create here:

http://man7.org/linux/man-pages/man2/memfd_create.2.html
https://dvdhrm.wordpress.com/tag/memfd/

Using memfd_create would avoid having to check shmem dir free disk space and the potential issues with that when trying to allocate anonymous shared memory.
 
Linux 3.17 required. If you want to use it, you'd have to detect at runtime if it's available, and fallback to shmem if it's not. Then wait years for older kernels to get phased out by Linux distros and ChromeOS. (e.g. I think some older Chromebooks all have 3.4 kernels and they are staying that way)
Yes, we can't remove the old tmp fs support any time soon but it might still be worth taking advantage of this newer kernel api when available. Latest version of common Linux distributions provide a recent enough kernel.
Components: OS>Kernel

Sign in to add a comment