[SOLVED] systemd-tmpfiles-clean takes a very long time to run

I've been having an issue for a while with systemd-tmpfiles-clean.service taking a very long time to run. I've tried to just ignore it, but it's really bothering me now.
Measuring by running:
# time systemd-tmpfiles --clean
systemd-tmpfiles --clean 11.63s user 110.37s system 10% cpu 19:00.67 total
I don't seem to have anything funky in any tmpfiles.d:
# ls /usr/lib/tmpfiles.d/* /run/tmpfiles.d/* /etc/tmpfiles.d/* | pacman -Qo -
ls: cannot access /etc/tmpfiles.d/*: No such file or directory
error: No package owns /run/tmpfiles.d/kmod.conf
/usr/lib/tmpfiles.d/gvfsd-fuse-tmpfiles.conf is owned by gvfs 1.20.1-2
/usr/lib/tmpfiles.d/lastlog.conf is owned by shadow 4.1.5.1-9
/usr/lib/tmpfiles.d/legacy.conf is owned by systemd 212-3
/usr/lib/tmpfiles.d/libvirt.conf is owned by libvirt 1.2.4-1
/usr/lib/tmpfiles.d/lighttpd.conf is owned by lighttpd 1.4.35-1
/usr/lib/tmpfiles.d/lirc.conf is owned by lirc-utils 1:0.9.0-71
/usr/lib/tmpfiles.d/mkinitcpio.conf is owned by mkinitcpio 17-1
/usr/lib/tmpfiles.d/nscd.conf is owned by glibc 2.19-4
/usr/lib/tmpfiles.d/postgresql.conf is owned by postgresql 9.3.4-1
/usr/lib/tmpfiles.d/samba.conf is owned by samba 4.1.7-1
/usr/lib/tmpfiles.d/slapd.conf is owned by openldap 2.4.39-1
/usr/lib/tmpfiles.d/sudo.conf is owned by sudo 1.8.10.p2-1
/usr/lib/tmpfiles.d/svnserve.conf is owned by subversion 1.8.8-1
/usr/lib/tmpfiles.d/systemd.conf is owned by systemd 212-3
/usr/lib/tmpfiles.d/systemd-nologin.conf is owned by systemd 212-3
/usr/lib/tmpfiles.d/tmp.conf is owned by systemd 212-3
/usr/lib/tmpfiles.d/uuidd.conf is owned by util-linux 2.24.1-6
/usr/lib/tmpfiles.d/x11.conf is owned by systemd 212-3
How do I debug why it is taking so long? I've looked in man 8 systemd-tmpfiles and on google, hoping to find some sort of --dubug option, but there seems to be none.
Is it some how possible to get a list of the directories that it looks at when it runs?
Anyone have any suggestions on how else to fix this.
Anyone else have this issue?
Thanks,
Gary
Last edited by garyvdm (2014-05-08 18:57:43)

Thank you very much falconindy. SYSTEMD_LOG_LEVEL=debug helped my find my issue.
The cause of the problem was thousands of directories in /var/tmp/ created by a test suite with a broken clean up method. systemd-tmpfiles-clean was recursing through these, but not deleting them.

Similar Messages

  • Macbook Pro, bought 2012, takes a very long time to start up/restart (5 mins). How do I fix this?

    My Macbook Pro, bought 2012, takes a very long time to start up/restart (5 mins) every single time I have shut it down.  I try not to shut it down at all now because once or twice, I have got a grey screen, and then nothing. I've held down the power button to shut down again and restart  How do I fix all this?

    Start up with your built-in Recovery disk by holding down the Command and R keys when starting. Open Disk Utility from there and use it to REPAIR your disk (you've already verified it and it came up with errors).
    With any luck, your problems will be solved. While I was there, I would also repair  permissions.
    Good luck,
    Clinton

  • Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.   Is th

    Why is it that it would take a very long time [if ever] to change or adjust the tempo of a loop in the audio track when i set it to adjust regions to locators? Until now the spinning wheel of death is still very much spinning. thanks for any help.
    Is there another way to adjust tempo of loops the faster way, any other technique?

    No clue why the final processes have suddenly started to take so long. Two things I'd try: a) capture from an older tape to see if some problem with the new tape is at fault.  And b) check the health of your RAM and the hard drive.
    The red frame sounds a bit like a glitch we used to have in OnLocation (actually in its predecessor HDV Rack) which was caused by a partial GOP. But that was a product of HDV Rack recording from the live video stream. It turned out that HDV cameras intentionally interrupt the data stream for an instant upon starting to record--specifically to avoid recording a partial GOP to tape. So my gut says that the tape has partial GOPs at the points where you stopped/started recording.

  • Mac Air takes a very long time when manually putting to sleep

    I put my Mac Air in sleep mode from the apple icon after Im dont using it but sometimes takes a very long time to shut down. Then Im not sure if sometimes it goes into sleep mode by itself first. My mac notebook as soon as you hit sleep it shut down instantly. Anyone else have this problem?

    I put my Mac Air in sleep mode from the apple icon after Im dont using it but sometimes takes a very long time to shut down. Then Im not sure if sometimes it goes into sleep mode by itself first. My mac notebook as soon as you hit sleep it shut down instantly. Anyone else have this problem?

  • It takes a very long time to download an app on my iPad 3

    It takes a very long time to download an app on my iPad 3. My WiFi is OK, and the first 75 % of the program downloads in a fast way, but then it nearly stops. The rest (25%) takes such a long time to install

    my e-mail is [email protected]

  • Since itunes and apple tvs latest update I have had problem wtching movies on apple tv via my itunes can any one help, movie takes a very long time to load sometimes never, it use to work really well, whats going on please help?

    Since itunes and apple tvs latest update I have had problem wtching movies on apple tv via my itunes can any one help, movie takes a very long time to load sometimes never, it use to work really well, whats going on please help?

    You might find useful information in item D1 of Time Machine Troubleshooting.

  • Takes a very long time to load pages and is laggy

    The new''' FF (4) '''was good at first, but recently it is starting to lack the goodness it once had.
    '''It is becoming slower and slower by the day and takes a very long time to load pages. Sometimes the "loading" icon circles for 5 minutes, and whether the page loads or not depends on my luck at that time.'''
    Also, it has become seriously '''laggy''':
    '''Scrolling''' up and down, typing and '''filling out forms''' (like writing this message) etc have slowed down.
    I have deleted the history, and cleared the cache, but to no avail.
    Could it be some of the add-ons?
    Or is it that FF4 was all hyped up and '''''can't stand to it's name'''''? :)
    Please help.
    Info: Vista 64-bit, 4GB ram, 2.33GHZ....can't be my computer!

    You could try to disable this feature for now by toggling this pref on the <b>about:config</b> page:
    *devtools.debugger.source-maps-enabled = false

  • After upgrading to iOS 5, my iPhone 4 takes a very long time to open digitally signed emails. I've tried with the SMIME settings enabled, but that doesn't help either. Any ideas on how to resolve this?  Thanks in advance.

    After upgrading to iOS 5, my iPhone 4 takes a very long time to open digitally signed emails. I've tried with the SMIME settings enabled, but that doesn't help either. Any ideas on how to resolve this?  Thanks in advance.

    I suspect you may have a corrupt photo or image that is causing the sync to fail or quit. You might want to try removing all of your photos by deselecting them in iTunes then sync - and try adding them by each sub-folders until you are able to nail down which sub-folder of photos, that causes the sync to stop or gives you errors.

  • I have a keynote presentation that includes a significant amount of video.  When I edit the keynote slides (not the video slides) how can I save the changes without re-saving the videos (because that takes a VERY long time)?

    I have a keynote presentation that includes a significant amount of video.  When I edit the keynote slides (not the video slides) how can I save the changes without re-saving the videos (because that takes a VERY long time)?  I edit the presentation depending on the audience to which I am presenting.

    If you add a new  slide with just a text box (therefore a very small amount of data),  to an existing presentation then save,  Keynote will only save the new content to the file,  it wont save  pre-existing content as its already included in the file.
    The time  taken to "save" will be very much shorter than a "save as" when all of the existing content is saved again.

  • After installing Lion my time machine using a Time capsule backups take a very long time, particularly indexing the back up, does any one know why and a fix?

    I have installed Lion over Snow Leopard and noticed a marked increase in the time it takes my time capsule/time machine to back up.  It seems to spend a very long time indexing the back up.  Does any one know why and more importantly is there a "fix"?

    The first index with Lion takes a very long time.  Could take over 10 hours.  You just have to wait.  You can see the progress by opening Console and entering backupd in the search box

  • Why it takes a very long time while itunes backup my iphone?

    I am using a iPhone 5S with iOS8.
    When I sync it with itunes, step 2 of 7, Backing up, takes a very long time, it took more than a hour.
    Is something goes wrong??

    Try unchecking "Automactically fill free space with songs"

  • Inventory aged reports are taking a very long time to run

    We are using Standard delievered extractors for Inventory.  We have build an Aged report and it is taking a very long time to run as more an more data is added.  We put the inventory in buckets 0-30, 31-60, .... >365 days.  We are aging based on a batch date the user enters.  the problem is it has to go through every record to recalculate because they are non cumulative.
    any ideas/suggestions on how to make this more efficient?  New design?

    Hi MM,
    We can use snapshot of monthly data from Query and store it in DSO at month level.
    We had used APD on Query and then Stored them in DSO1(WO)->DSO2(STD)->Cube->report based on Snap Shot.
    From the New Query , calculate the Age.
    Rgds
    SVU

  • New Photos App take a very long time to upload 20 Pictures, while the Activity Monitor is showing much more data sent (MB) than these two pictues

    The New photos app is taking a very long time to upload images. It stays a very long time at 20,104 for example. When I check the Activity Monitor (Network) it shows that the computer is actually uploading stuff. After about 2 hours, only 20 Pics&Videos are uploaded. The uploaded pics and videos are about 500MB while the data sent is around 1GB. I am positive that Photos is the only thing uploading data at the moment.
    Anyone else facing this problem?

    It can take days, even weeks.
    Tell me 2 things and I will tell you the estimated upload time.
    1 How big is your Library (in GB)
    2 How fast is your upload speed.
    Or you can just use the upload time calculator and do it yourself

  • Why is it that Photoshop Elements takes a very long time to open a png file?

    Even though I wait for a very long time (minutes)  for Photoshop Elements 11 to open a PNG file, the computer's process monitor shows nothing discernible going on while I am waiting.
    This is on a Windows 7 machine with an Intel I7 4 core processor.

    I killed Firefox and Thunderbird and tried it again.  Using a stopwatch, it took 5 minutes 54 seconds to open the file.  In the interim the application windows were frozen.  The process monitor showed Photoshop not responding.  The thread analysis showed a thread waiting on splwow64.exe. 
    splwow64.exe allows 32-bit applications to connect with the 64-bit printer spooler service on x64 Windows builds.
    I should also point out that when I exit Photoshop, it does not seem to die.  I cannot restart it in the normal way.  The starter software just goes away when I click on PE 11.  I finally fo into the task monitor and kull the PhotoshopElements process.  Then I can restart Photoshop Elements.  Although after a long time since I exited PE while I was writing this post, I then just tried opening PE the normal way and it worked.  Many of these items I mention are probably red herrings.

  • Brand New Installation of Snow Leopard Takes A Very Long Time To Log In

    Hello All
    I installed Snow Leopard onto a friends computer this past weekend and I have run into a strange issue. The computer in question is a Black MacBook 2.16 GHz with 2GB of RAM. The first thing I did was to back up the computer to an external hard drive using TimeMachine. Next, I formatted the drive and zeroed out all of the data. I then installed Mac OS X 10.6 onto the computer. During the initial boot process, I restored the applications, home directory, and misc. files from the TimeMachine backup. The first login took an extremely long time to log in. I figured that the Mac was sorting out the newly restored files and home directory and such and this was probably normal. Then I ran all of the software updates to get the machine completely current. When I rebooted, it took a really long time to log in. I thought maybe the machine was sorting out and installing the new updates (even though it has never taken this long on my MacBook. So I started up from the Snow Leopard install CD and ran DiskUtility and repaired the disk and permissions. Upon another reboot (I timed it this time) it, again, took a very long time ... *8.5 minutes!* I'm at my wits end and am thinking about rebuilding the machine again to see if this build is better. Also, as far as I can tell, the System is working perfectly once I get logged in; no spinning beach ball, hangs, kernel panics or what have you. Also, the machine didn't have this issue before I rebuilt it. Has anybody ever heard of this before? If so, is there a nice fix for it?
    Thank you all for reading and have a good day.

    Check /System/Library/StartupItems & /Library/StartupItems on the Black MacBook. Any items in either folder is not part of the Snow Leopard install & may be causing the slow starts. Also check System Preferences > Accounts > Login Items, especially if the log in screen comes up quickly & most of the delay is after entering the account password. It is normal to see the iTunes Helper app login item, but any others may be causing the delay, especially if they are not fully compatible with Snow Leopard or are apps that require Rosetta to start up before they will run. The same goes for any items n the "Others" section of System Preferences.
    Message was edited by: R C-R

Maybe you are looking for

  • Multiple users and devices, one account

    I have an iPad 1 and iPod Classic.  My wife has an iPhone 4s and an iPod Touch.  Sonny boy also has an iPod Touch.  They are all linked to my apple id and account.  How do I separate the account so that we can each manage our own devices from our sin

  • Usb keyboard not recognized

    Have a late 2012 macbook pro 13 inch running OSX 10.8.2.  I want to use the apple usb keyboard and external display, but the keyboard will not work when I plug in the usb.  I tried the software update and restarting.  Any ideas?

  • Getting when importing Dynamic PDF into Webdynpro Interactive form

    Hi Gurus, I have created a PDF(It has  text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I import only first page of the form and run WD application, i am getting the out

  • Table borders show up with Firefox or IE but not Safari (Win or MAC)

    This very simple site (http://www.brandondean.net) has two table borders that show up under FF and IE but not Safari (either Win v4.0 or Safari for MAC, same result). I'm not an expert but I did the work using Dreamweaver 2004 MX as XHTML compliant,

  • Where are my photos in icloud

    Went on iCloud.com but cannot find my photos. Have 1000 photos in the cloud via my iPod, but can only see 500 on my apple TV and NOT the latest one. On iCloud.com I see not a single one - where are my photos?