RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1734292 - 2 millions hide files with random name in /run/systemd/users/
Summary: 2 millions hide files with random name in /run/systemd/users/
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-30 07:51 UTC by mchtech
Modified: 2022-11-14 03:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-30 09:48:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshoot of command output (93.82 KB, image/png)
2019-07-30 07:51 UTC, mchtech
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1439989 0 high CLOSED why so many sessions scope file didn't been deleted? 2022-03-13 14:14:47 UTC

Description mchtech 2019-07-30 07:51:18 UTC
Created attachment 1594531 [details]
screenshoot of command output

Description of problem:

There are about 2 millions hide files with random name (.#numbersletters) in /run/systemd/users/.
/run is mounted as tmpfs, so they take up a lot of memory space.


Version-Release number of selected component (if applicable):

systemd-219-42.el7_4.4.x86_64

Steps to Reproduce:
1. free -m
2. du -sh /run/systemd/users
3. ls -al /run/systemd/users/
4. cat /run/systemd/users/.#.........

Actual results:

[root]#free -m
              total        used        free      shared  buff/cache   available
Mem:          15839        9248        2543        1853        4047        4055
Swap:          8191         532        7659
[root]#du -sh /run/systemd/users
1.8G	/run/systemd/users
[root]#ls -al /run/systemd/users/
total 1871176
drwxr-xr-x  2 root root 3146480 Jul 30 15:19 .
drwxr-xr-x 17 root root     420 Jul 30 15:10 ..
-rw-r--r--  1 root root   22472 Jul 30 15:19 0
-rw-r--r--  1 root root   16384 May 24 09:54 .#00004aO
-rw-r--r--  1 root root   20480 May 21 14:10 .#0000zyq
-rw-r--r--  1 root root   20480 Jul 15 08:25 .#0001W3V
-rw-r--r--  1 root root   20480 Dec 14  2018 .#00057X9
-rw-r--r--  1 root root   20480 Mar 15 12:00 .#0006jyz
-rw-r--r--  1 root root   16384 Feb 21 02:17 .#0006QLq
-rw-r--r--  1 root root       0 Feb 12 21:26 .#0006skp
-rw-r--r--  1 root root   12288 Mar 13 10:19 .#000aIht
-rw-r--r--  1 root root       0 Oct 21  2018 .#000aPoa
-rw-r--r--  1 root root   20480 Mar 26 19:24 .#000brhr
-rw-r--r--  1 root root   20480 Oct  7  2018 .#000CLHN
-rw-r--r--  1 root root   20480 Jul  1 14:02 .#000D8VE
-rw-r--r--  1 root root       0 Jul  1 19:56 .#000dK6Y
-rw-r--r--  1 root root    4096 Mar 20 17:52 .#000dOco
......................................................


[root]#cat .#05uAMhF
# This is private data. Do not parse.
NAME=root
STATE=active
RUNTIME=/run/user/0
SLICE=user-0.slice
REALTIME=1513047601897825
MONOTONIC=72663882605
SESSIONS=2254484 2254483 2254482 60562 97480 95307 14609 91248 54840 57715 72467 73378 15829 41858 36335 40692 27578 45321 49993 27673 89969 69504 66111 30878 87911 96531 101711 85944 87511 39571 23638 39039 59559 52567 44222 
......................................................

What is the purpose of these files?
What will happen if I delete them ?

Comment 2 Jan Synacek 2019-07-30 09:48:32 UTC
I suggest contacting Red Hat support and also updating to the latest systemd version for RHEL-7.7.


Note You need to log in before you can comment on or make changes to this bug.