You are not logged in.

#1 2024-02-11 00:09:09

dalu
Member
Registered: 2014-04-16
Posts: 96

/tmp no space left on device

Not sure if this is the right subforum.

I noticed some weird behavior since today (or yesterday if you will).
First it was in my IDEs (goland and webstorm), no space left on device
now, I'm trying to upgrade packages with yay, again no space left on device.

:: 4 packages to upgrade/install.
4  aur/google-chrome           121.0.6167.139-1 -> 121.0.6167.160-1
3  aur/opera                   106.0.4998.70-1  -> 107.0.5045.15-1
2  aur/opera-ffmpeg-codecs     120.0.6099.109-1 -> 121.0.6167.140-1
1  aur/visual-studio-code-bin  1.86.0-1         -> 1.86.1-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==> 
AUR Explicit (3): visual-studio-code-bin-1.86.1-1, opera-107.0.5045.15-1, google-chrome-121.0.6167.160-1
AUR Dependency (1): opera-ffmpeg-codecs-121.0.6167.140-1
:: PKGBUILD up to date, skipping download: visual-studio-code-bin
:: PKGBUILD up to date, skipping download: opera
:: PKGBUILD up to date, skipping download: google-chrome
:: PKGBUILD up to date, skipping download: opera-ffmpeg-codecs
 -> error resetting /tmp/yaytmp-1000/visual-studio-code-bin: fatal: Unable to create '/tmp/yaytmp-1000/visual-studio-code-bin/.git/index.lock': No space left on device
mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=65670368k,nr_inodes=16417592,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme2n1p3 on / type xfs (rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=14348)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme2n1p2 on /boot type ext4 (rw,noatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=13150000k,nr_inodes=3287500,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
mount |grep tmp
dev on /dev type devtmpfs (rw,nosuid,relatime,size=65670368k,nr_inodes=16417592,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=13150000k,nr_inodes=3287500,mode=700,uid=1000,gid=1000,inode64)
df -h
Filesystem      Size  Used Avail Use% Mounted on
dev              63G     0   63G   0% /dev
run              63G  2.3M   63G   1% /run
efivarfs        192K  174K   14K  93% /sys/firmware/efi/efivars
/dev/nvme2n1p3  3.7T  827G  2.9T  23% /
tmpfs            63G  1.1M   63G   1% /dev/shm
tmpfs            63G   22G   41G  35% /tmp
/dev/nvme2n1p2  488M  378M   75M  84% /boot
tmpfs            13G  196K   13G   1% /run/user/1000
free -h
               total        used        free      shared  buff/cache   available
Mem:           125Gi        30Gi        90Gi        21Gi        27Gi        95Gi
Swap:             0B          0B          0B
du -h
<snip>
22G	./yaytmp-1000
<snip>

22G?

aparently opera-ffmpeg-codecs takes up 22G+?
From a 3.4G download?
What?
And the content is a chromium tarball?
But even is 22G are used, what's up with the device being full?
Out of inodes?
41G free but no space left?

Offline

#2 2024-02-11 00:22:38

dalu
Member
Registered: 2014-04-16
Posts: 96

Re: /tmp no space left on device

So, interesting enough

Options=mode=1777,strictatime,nosuid,nodev,size=50%%,nr_inodes=1m

is how tmp.mount defines the mount options.
https://www.kernel.org/doc/Documentatio … /tmpfs.txt
says something "uh danger danger", your typical "don't run as root" type FUD, about nr_inodes=0.
If it's limited by RAM size, what do inodes matter in that case, also
arch is usually used on desktop machines.

The default of tmp.mount should be changed to

Options=mode=1777,strictatime,nosuid,nodev,size=50%%,nr_inodes=0

Can someone make that suggestion somewhere?
I checked gentoo and rocky, 1m seems to be the systemd supplied default
Someone probably thought "no one needs more than 640k RAM" and set the 1m arbitrary number.
I think it's time to change that.

Last edited by dalu (2024-02-11 00:23:03)

Offline

#3 2024-02-11 00:27:25

dalu
Member
Registered: 2014-04-16
Posts: 96

Re: /tmp no space left on device

never mind
I picked the wrong tmpfs mountpoint

can't delete this reply

Last edited by dalu (2024-02-11 00:29:28)

Offline

#4 2024-02-11 09:26:07

seth
Member
Registered: 2012-09-03
Posts: 59,718

Re: /tmp no space left on device

Don't try to build browsers in tmps, you'll need enough ram (32GB or so) for the build already.
"yay --builddir /path/to/more/space" or don't use yay itfp.

Unless of course

And the content is a chromium tarball?

yes - you're installing some AUR packages there what means you intend to build a browsermonster from source.
You can use the chaotic-aur repo, https://wiki.archlinux.org/title/Unoffi … haotic-aur

Offline

Board footer

Powered by FluxBB