[arch-general] tmpfs 100% /tmp - No space left on device
Hi :) when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp". What can I do? Add "tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0" to /etc/fstab? What should somebody do, assumed there are only 2 GB available by RAM? I could build the kernel-rt before this one, [rocketmouse@archlinux ~]$ uname -rm 3.8.13-rt14-1-rt x86_64 Some information: [root@archlinux rocketmouse]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9 35G 24G 9.6G 71% / dev 1.8G 0 1.8G 0% /dev run 1.9G 1008K 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup tmpfs 1.9G 1.9G 0 100% /tmp /dev/sdb12 48G 9.9G 35G 22% /home/music /dev/sda11 57G 23G 32G 43% /mnt/music /dev/sdb8 20G 7.3G 12G 40% /mnt/maverick [rocketmouse@archlinux ~]$ hwinfo --memory 01: None 00.0: 10102 Main Memory [Created at memory.66] Unique ID: rdCR.CxwsZFjVASF Hardware Class: memory Model: "Main Memory" Memory Range: 0x00000000-0xe78c6fff (rw) Memory Size: 3 GB + 512 MB Config Status: cfg=new, avail=yes, need=no, active=unknown [root@archlinux rocketmouse]# cat /etc/fstab # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> # UUID=f386221b-fc9c-434b-b4e7-b3b1b97be8aa LABEL=archlinux /dev/sda9 / ext3 rw,relatime,data=ordered 0 1 # UUID=3e19b702-30ed-4574-91d7-1594fad71842 /dev/sdb7 none swap defaults 0 0 # UUID=4b65ccbf-2219-4734-98fa-16c58d4f60fa /dev/sda10 none swap defaults,pri=-2 0 0 /dev/sda11 /mnt/music ext3 noatime,defaults 0 2 /dev/sdb12 /home/music ext4 noatime,defaults 0 2 The available rest output of the terminal, when building linux-rt: cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/snd-usbmidi-lib.ko’: No space left on device INSTALL sound/usb/usx2y/snd-usb-us122l.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/acenic/ MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/adaptec/ INSTALL /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2x/ install: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device install: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device make[1]: *** [/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw] Error 1 make[1]: *** Waiting for unfinished jobs.... MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2/ make: *** [_modinst_post] Error 2 ==> ERROR: A failure occurred in package_linux-rt(). Aborting... ==> ERROR: Makepkg was unable to build linux-rt. ==> Restart building linux-rt ? [y/N] ==> --------------------------------- ==> Regards, Ralf
On 13 August 2013 17:43, Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
Hi :)
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
What can I do? Add "tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0" to /etc/fstab? What should somebody do, assumed there are only 2 GB available by RAM?
I could build the kernel-rt before this one, [rocketmouse@archlinux ~]$ uname -rm 3.8.13-rt14-1-rt x86_64
Some information:
[root@archlinux rocketmouse]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9 35G 24G 9.6G 71% / dev 1.8G 0 1.8G 0% /dev run 1.9G 1008K 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup tmpfs 1.9G 1.9G 0 100% /tmp /dev/sdb12 48G 9.9G 35G 22% /home/music /dev/sda11 57G 23G 32G 43% /mnt/music /dev/sdb8 20G 7.3G 12G 40% /mnt/maverick
[rocketmouse@archlinux ~]$ hwinfo --memory 01: None 00.0: 10102 Main Memory [Created at memory.66] Unique ID: rdCR.CxwsZFjVASF Hardware Class: memory Model: "Main Memory" Memory Range: 0x00000000-0xe78c6fff (rw) Memory Size: 3 GB + 512 MB Config Status: cfg=new, avail=yes, need=no, active=unknown
[root@archlinux rocketmouse]# cat /etc/fstab # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> # UUID=f386221b-fc9c-434b-b4e7-b3b1b97be8aa LABEL=archlinux /dev/sda9 / ext3 rw,relatime,data=ordered 0 1
# UUID=3e19b702-30ed-4574-91d7-1594fad71842 /dev/sdb7 none swap defaults 0 0
# UUID=4b65ccbf-2219-4734-98fa-16c58d4f60fa /dev/sda10 none swap defaults,pri=-2 0 0
/dev/sda11 /mnt/music ext3 noatime,defaults 0 2 /dev/sdb12 /home/music ext4 noatime,defaults 0 2
The available rest output of the terminal, when building linux-rt:
cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/snd-usbmidi-lib.ko’: No space left on device INSTALL sound/usb/usx2y/snd-usb-us122l.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/acenic/ MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/adaptec/ INSTALL /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2x/ install: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device install: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device make[1]: *** [/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw] Error 1 make[1]: *** Waiting for unfinished jobs.... MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2/ make: *** [_modinst_post] Error 2 ==> ERROR: A failure occurred in package_linux-rt(). Aborting... ==> ERROR: Makepkg was unable to build linux-rt. ==> Restart building linux-rt ? [y/N] ==> --------------------------------- ==>
Regards, Ralf
Build the package outside of /tmp. You have plenty of space on /
On 13.08.2013 18:43, Ralf Mardorf wrote:
Hi :)
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
setup yaourt to not build in /tmp ? -- дамјан
On Thu, 2013-08-15 at 13:55 +0200, Damjan wrote:
setup yaourt to not build in /tmp ?
Thank you, good to know assumed I should experience this issue on a machine with less RAM. Building the kernel worked, after adding a line to fstab. $ grep tmpfs /etc/fstab tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0 I didn't notice the variable TMPDIR. $ grep TMPDIR /etc/yaourtrc #TMPDIR="/tmp" Regards, Ralf
On 2013-8-15,19:55,Damjan <gdamjan@gmail.com> wrote:
On 13.08.2013 18:43, Ralf Mardorf wrote:
Hi :)
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
setup yaourt to not build in /tmp ?
Use the --tmp option as you can see in the man page, for example, yaourt -S linux-rt --tmp /var/tmp It will cost you about 3GiB or more disk space, so make sure to have enough space.
On Tue, 13 Aug 2013 18:43:29 +0200 Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
Hi :)
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
What can I do? Add "tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0" to /etc/fstab? What should somebody do, assumed there are only 2 GB available by RAM?
So, your /tmp is larger than RAM size? If you were successfull building a kernel completely in RAM before, I'd say quit all unnecessary applications like KDE, firefox, etc. to free up as much memory as possible... Notice, though, that if /tmp is getting full and is about the same size as RAM, the system will start swapping well before /tmp is filled, so you'll get no performance gain from building in /tmp because effectively you'll be compiling in the swap partition. Cheers, L.
I could build the kernel-rt before this one, [rocketmouse@archlinux ~]$ uname -rm 3.8.13-rt14-1-rt x86_64
Some information:
[root@archlinux rocketmouse]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9 35G 24G 9.6G 71% / dev 1.8G 0 1.8G 0% /dev run 1.9G 1008K 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup tmpfs 1.9G 1.9G 0 100% /tmp /dev/sdb12 48G 9.9G 35G 22% /home/music /dev/sda11 57G 23G 32G 43% /mnt/music /dev/sdb8 20G 7.3G 12G 40% /mnt/maverick
[rocketmouse@archlinux ~]$ hwinfo --memory 01: None 00.0: 10102 Main Memory [Created at memory.66] Unique ID: rdCR.CxwsZFjVASF Hardware Class: memory Model: "Main Memory" Memory Range: 0x00000000-0xe78c6fff (rw) Memory Size: 3 GB + 512 MB Config Status: cfg=new, avail=yes, need=no, active=unknown
[root@archlinux rocketmouse]# cat /etc/fstab # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> # UUID=f386221b-fc9c-434b-b4e7-b3b1b97be8aa LABEL=archlinux /dev/sda9 / ext3 rw,relatime,data=ordered 0 1
# UUID=3e19b702-30ed-4574-91d7-1594fad71842 /dev/sdb7 none swap defaults 0 0
# UUID=4b65ccbf-2219-4734-98fa-16c58d4f60fa /dev/sda10 none swap defaults,pri=-2 0 0
/dev/sda11 /mnt/music ext3 noatime,defaults 0 2 /dev/sdb12 /home/music ext4 noatime,defaults 0 2
The available rest output of the terminal, when building linux-rt:
cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/snd-usbmidi-lib.ko’: No space left on device INSTALL sound/usb/usx2y/snd-usb-us122l.ko INSTALL sound/usb/usx2y/snd-usb-usx2y.ko cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-us122l.ko’: No space left on device cp: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device cp: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/modules/3.10.6-rt3-1-rt/kernel/sound/usb/usx2y/snd-usb-usx2y.ko’: No space left on device MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/acenic/ MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/adaptec/ INSTALL /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2x/ install: error writing ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device install: failed to extend ‘/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw’: No space left on device make[1]: *** [/tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/atmsar11.fw] Error 1 make[1]: *** Waiting for unfinished jobs.... MKDIR /tmp/yaourt-tmp-rocketmouse/aur-linux-rt/pkg/linux-rt/lib/firmware/bnx2/ make: *** [_modinst_post] Error 2 ==> ERROR: A failure occurred in package_linux-rt(). Aborting... ==> ERROR: Makepkg was unable to build linux-rt. ==> Restart building linux-rt ? [y/N] ==> --------------------------------- ==>
Regards, Ralf
-- Leonid Isaev GnuPG key: 0x164B5A6D Fingerprint: C0DF 20D0 C075 C3F1 E1BE 775A A7AE F6CB 164B 5A6D
On Thu, 2013-08-15 at 08:59 -0400, Leonid Isaev wrote:
On Tue, 13 Aug 2013 18:43:29 +0200 Ralf Mardorf <ralf.mardorf@alice-dsl.net> wrote:
Hi :)
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
What can I do? Add "tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0" to /etc/fstab? What should somebody do, assumed there are only 2 GB available by RAM?
So, your /tmp is larger than RAM size?
[rocketmouse@archlinux ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9 35G 24G 9.3G 72% / dev 1.8G 0 1.8G 0% /dev run 1.9G 1012K 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup tmpfs 3.0G 7.2M 3.0G 1% /tmp /dev/sdb12 48G 9.9G 35G 22% /home/music /dev/sda11 57G 23G 32G 43% /mnt/music [rocketmouse@archlinux ~]$ hwinfo --memory Memory Size: 3 GB + 512 MB Yes, the memory is < 4 GiB and /tmp does not have it's own mount point, IOW it's size is 9.3G.
If you were successfull building a kernel completely in RAM before, I'd say quit all unnecessary applications like KDE, firefox, etc. to free up as much memory as possible...
This didn't help and usually I want to use the computer when building a kernel-rt.
Notice, though, that if /tmp is getting full and is about the same size as RAM, the system will start swapping well before /tmp is filled, so you'll get no performance gain from building in /tmp because effectively you'll be compiling in the swap partition.
That's what I expected instead of an error. So it would work, if I would give /tmp it's own mountpoint on a partition, that is smaller or equal to the size of the memory? Regards, Ralf
On Thu, Aug 15, 2013 at 8:59 PM, Leonid Isaev <lisaev@umail.iu.edu> wrote:
Notice, though, that if /tmp is getting full and is about the same size as RAM, the system will start swapping well before /tmp is filled, so you'll get no performance gain from building in /tmp because effectively you'll be compiling in the swap partition.
Well, in principle it should be faster to build in swap than on a regular fs as tmpfs will only write to the backing swap when it runs out of space, whereas regular filesystems will write out more frequently (and also try to make guarantees about consistency in case of unclean shutdowns, which tmpfs+swap doesn't need to care about). -t
when I try to build current linux-rt I get "No space left on device", resp. df shows "tmpfs 100% /tmp".
What can I do? Add "tmpfs /tmp tmpfs nodev,nosuid,size=3G 0 0" to /etc/fstab? What should somebody do, assumed there are only 2 GB available by RAM?
That's not a problem. tmpfs will just use swap (if you have it) so set as much as you like. This will slow down your build but it won't fail. -- Damian Nowak www.AtlasHost.eu
participants (7)
-
BlissSam
-
Damjan
-
Leonid Isaev
-
Nowaker
-
Ralf Mardorf
-
Tom Gundersen
-
WorMzy Tykashi