DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I use tmpfs for a fast dependency cache: for example, for Golang (~/.cache/go-build), or for Node.JS (node_modules in project folders). Though accidentally they disappear. Sometimes all, sometimes a part of them.
AFAIR, it happens even when nothing touches these folders.
Can the kernel do it automatically to free the memory? I see no any entries in dmesg when this happens. Or do I have to hunt the cause in the user space?
Though accidentally they disappear. Sometimes all, sometimes a part of them.
I don't understand what you mean - please post evidence on which you base this.
tmpfs is an in-memory filesystem - it resides normally in kernel cache. It may be swapped out under memory pressure, but that is the only time it resides on disk. The size you define in the mount is the maximum is will use - not the amount actually allocated or in-use.
I don't think that will be automatically umounted. Without any log. But you [may] need to check other files in /var/log too.
No any clues, unfortunately. Just "Succeeded" entries in journalctl.
I tried mounting with systemd-mount -G, and it just got a bit more verbose:
Code:
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit UNIT has successfully entered the 'dead' state.
Yet with no preceding events.
Quote:
Originally Posted by syg00
I don't understand what you mean - please post evidence on which you base this.
These filesystems disappear from the listing of mount, and the following directories get empty.
What can be wrong here? Maybe the mounts together reach some cgroup quota, and systemd starts hunting them with no warning?
I recall that I disabled systemd.unified_cgroup_hierarchy earlier this year, but don't remember the reason (maybe to fight this?) Though it caused problems with Docker, so I turned it back on recently.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.