Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Bring back tmpfs and disable swap #263

Open
drasko opened this issue Sep 26, 2024 · 1 comment
Open

Feature: Bring back tmpfs and disable swap #263

drasko opened this issue Sep 26, 2024 · 1 comment
Assignees

Comments

@drasko
Copy link
Contributor

drasko commented Sep 26, 2024

Is your feature request related to a problem? Please describe.

No

Describe the feature you are requesting, as well as the possible use case(s) for it.

tmpfs is newer than ramfs, and can be set to take the whole RAM partition in fstab:

tmpfs   /mnt/tmpfs   tmpfs   defaults,size=100%   0  0

Additionally, Linux swap can be disabled, again in /etc/fstab:

/swapfile   none    swap    sw    0   0

Use something like this in Buildroot to allow that we use tmpfs, but that is capable taking whole available RAM, and with swap turned off (not to write anything to disk).

Indicate the importance of this feature to you.

Must-have

Anything else?

No response

@drasko
Copy link
Contributor Author

drasko commented Sep 26, 2024

Actually, swap should be disabled in Buildroot during the kernel compilation, I think with CONFIG_SWAP flag:

General Setup --->
  [ ] Support for paging of anonymous memory (swap)

Try if it possible to compile kernel with tmpfs, but with swap disabled already in Buildroot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants