2

I have a tests that I run on a device which has a 300M of ram-disk based /tmp and I get "no space left on device" even though when I run df -h I find that only 11% of the /tmp is actually used.

I am very confused, any hints on what should I look for?

5
  • 1
    What about df -i output? Dec 20, 2017 at 17:02
  • just a shot in the dark. does it run MySQL? Dec 20, 2017 at 20:02
  • Is it really not enough space left as opposed to no space left? What application is it? Dec 20, 2017 at 21:17
  • @StéphaneChazelas it was a mistake, I added enough mistakenly. I have edited the question, thank you for pointing it out
    – Bionix1441
    Dec 21, 2017 at 7:36
  • @RuiFRibeiro No it is just some Networking code
    – Bionix1441
    Dec 21, 2017 at 10:07

2 Answers 2

4

Two hypotheses come to mind:

  • Running out of inodes (df -i)
  • Disk quota for the user exceeded (quota -u username)
2

It may well be that the test tries to create a file that's bigger than the available space, and it is deleted when hitting the "not enough space" condition. Try to monitor the disk space permanently on another console while running the test:

$ while true; do df -h /tmp; sleep 0.5; done

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.