Empty tmpfs mount reported as full
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
After using a tmpfs mount for a while it starts reporting that it is almost full and become unusable.
$ mount ; df ; sudo ls -alR /tmp/test/
<snip>
none on /tmp/test type tmpfs (rw,uid=
none on /home/ken/.wine type aufs (rw,br:
Filesystem Size Used Avail Use% Mounted on
<snip>
none 1003M 881M 122M 88% /tmp/test
none 1003M 881M 122M 88% /home/ken/.wine
/tmp/test/:
total 12
drwxrwxrwt 4 ken ken 100 Aug 6 20:35 .
drwxrwxrwt 10 root root 12288 Aug 6 20:38 ..
-r--r--r-- 1 root root 0 Aug 6 19:08 .wh..wh.aufs
drwx------ 2 root root 40 Aug 6 19:08 .wh..wh.orph
drwx------ 2 root root 40 Aug 6 19:08 .wh..wh.plnk
/tmp/test/
total 0
drwx------ 2 root root 40 Aug 6 19:08 .
drwxrwxrwt 4 ken ken 100 Aug 6 20:35 ..
/tmp/test/
total 0
drwx------ 2 root root 40 Aug 6 19:08 .
drwxrwxrwt 4 ken ken 100 Aug 6 20:35 ..
As you should be able to see the tmpfs mount on /tmp/test claims to be using ~900 MB but it's really only using a few bytes. It works perfectly for a while but then does this.
I have been using the mount with aufs and the copy-on-write files are stored here. Since starting this report the "used" amount has dropped around 20 MB but there's no reason for this. There is no longer anything running that would use this directory.
Nothing seems relevant in dmesg or the syslog.
I don't know how to debug further.
I will check the upstream kernel, but this is likely to cause other problems and will probably be difficult to recreate. I will report back once I know.
Note to self: While testing http://
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.2.0-51-
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices: aplay: device_list:252: no soundcards found...
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: i386
ArecordDevices: arecord: device_list:252: no soundcards found...
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Date: Tue Aug 6 20:38:16 2013
HibernationDevice: RESUME=
InstallationMedia: Ubuntu-Server 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: Dell Inc. MM061
MarkForUpload: True
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.79.6
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux
StagingDrivers: zram
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/13/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A17
dmi.board.name: 0KD882
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: MM061
dmi.sys.vendor: Dell Inc.
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Hmmm...
I just released the aufs mount and the tmpfs is correctly showing as empty again.
$ sudo umount ~/.wine
$ df
Filesystem Size Used Avail Use% Mounted on
<snip>
none 1003M 0 1003M 0% /tmp/test
Maybe aufs is messing something up?