Low memory in file system

Issues related to applications and software problems and general support
Post Reply
pawel1010
Posts: 9
Joined: 2018/11/03 21:51:22

Low memory in file system

Post by pawel1010 » 2021/04/17 00:40:40

During system update I got a message that main directory has only 361 MB of free memory. Typing command

Code: Select all

df -h
I get:

Code: Select all

[pawel@comp ~]$ df -h
Filesystem              Size Used Avail Use% Mounted on
devtmpfs                      32G     0   32G   0% /dev
tmpfs                         32G   67M   32G   1% /dev/shm
tmpfs                         32G  123M   32G   1% /run
tmpfs                         32G     0   32G   0% /sys/fs/cgroup
/dev/mapper/cl_comp-root   50G   50G  9,6M 100% /
/dev/mapper/cl_comp-home  384G   54G  331G  14% /home
/dev/loop1                    65M   65M     0 100% /var/lib/snapd/snap/gtk-common-themes/1514
/dev/loop0                    99M   99M     0 100% /var/lib/snapd/snap/core/10823
/dev/nvme0n1p1               976M  316M  594M  35% /boot
/dev/loop2                   1,4G  1,4G     0 100% /var/lib/snapd/snap/urban-terror/25
/dev/loop3                    56M   56M     0 100% /var/lib/snapd/snap/core18/1988
/dev/loop4                    56M   56M     0 100% /var/lib/snapd/snap/core18/1944
/dev/loop5                   307M  307M     0 100% /var/lib/snapd/snap/stellarium-daily/576
/dev/loop6                   100M  100M     0 100% /var/lib/snapd/snap/core/10859
/dev/loop7                    62M   62M     0 100% /var/lib/snapd/snap/core20/904
/dev/loop8                   307M  307M     0 100% /var/lib/snapd/snap/stellarium-daily/580
tmpfs                        6,3G   80K  6,3G   1% /run/user/1000
[pawel@comp ~]$ 
Updating packages (size ~ 3.0 GB) are

Code: Select all

 cuda                               x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.7 k
 cuda-drivers                       x86_64      465.19.01-1                   cuda-rhel8-x86_64      7.0 k
 gnutls                             i686        3.6.14-8.el8_3                baseos                 1.0 M
 gnutls                             x86_64      3.6.14-8.el8_3                baseos                 1.0 M
 google-chrome-stable               x86_64      90.0.4430.72-1                google-chrome           74 M
 kmod-nvidia-latest-dkms            x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       24 M
 libldb                             x86_64      2.1.3-3.el8_3                 baseos                 179 k
 nettle                             i686        3.4.1-4.el8_3                 baseos                 320 k
 nettle                             x86_64      3.4.1-4.el8_3                 baseos                 301 k
 nvidia-driver                      x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       20 M
 nvidia-driver-NVML                 x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      495 k
 nvidia-driver-NvFBCOpenGL          x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      113 k
 nvidia-driver-cuda                 x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      322 k
 nvidia-driver-cuda-libs            x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       28 M
 nvidia-driver-devel                x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       12 k
 nvidia-driver-libs                 x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      140 M
 nvidia-kmod-common                 noarch      3:465.19.01-1.el8             cuda-rhel8-x86_64       10 k
 nvidia-libXNVCtrl                  x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       51 k
 nvidia-libXNVCtrl-devel            x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       55 k
 nvidia-modprobe                    x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       74 k
 nvidia-persistenced                x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64       98 k
 nvidia-settings                    x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      1.8 M
 nvidia-xconfig                     x86_64      3:465.19.01-1.el8             cuda-rhel8-x86_64      262 k
 vapoursynth-libs                   x86_64      51-1.el8                      epel                   427 k
Instalowanie zależności:
 cuda-11-3                          x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.8 k
 cuda-command-line-tools-11-3       x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.9 k
 cuda-compiler-11-3                 x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.7 k
 cuda-cudart-11-3                   x86_64      11.3.58-1                     cuda-rhel8-x86_64      207 k
 cuda-cudart-devel-11-3             x86_64      11.3.58-1                     cuda-rhel8-x86_64      1.3 M
 cuda-cuobjdump-11-3                x86_64      11.3.58-1                     cuda-rhel8-x86_64      130 k
 cuda-cupti-11-3                    x86_64      11.3.58-1                     cuda-rhel8-x86_64       20 M
 cuda-cuxxfilt-11-3                 x86_64      11.3.58-1                     cuda-rhel8-x86_64       50 k
 cuda-demo-suite-11-3               x86_64      11.3.58-1                     cuda-rhel8-x86_64      5.1 M
 cuda-documentation-11-3            x86_64      11.3.58-1                     cuda-rhel8-x86_64      103 k
 cuda-driver-devel-11-3             x86_64      11.3.58-1                     cuda-rhel8-x86_64       34 k
 cuda-gdb-11-3                      x86_64      11.3.58-1                     cuda-rhel8-x86_64      4.6 M
 cuda-libraries-11-3                x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.9 k
 cuda-libraries-devel-11-3          x86_64      11.3.0-1                      cuda-rhel8-x86_64      3.1 k
 cuda-memcheck-11-3                 x86_64      11.3.58-1                     cuda-rhel8-x86_64      174 k
 cuda-nsight-11-3                   x86_64      11.3.58-1                     cuda-rhel8-x86_64      113 M
 cuda-nsight-compute-11-3           x86_64      11.3.0-1                      cuda-rhel8-x86_64      5.2 k
 cuda-nsight-systems-11-3           x86_64      11.3.0-1                      cuda-rhel8-x86_64      4.9 k
 cuda-nvcc-11-3                     x86_64      11.3.58-1                     cuda-rhel8-x86_64       60 M
 cuda-nvdisasm-11-3                 x86_64      11.3.58-1                     cuda-rhel8-x86_64       31 M
 cuda-nvml-devel-11-3               x86_64      11.3.58-1                     cuda-rhel8-x86_64       94 k
 cuda-nvprof-11-3                   x86_64      11.3.58-1                     cuda-rhel8-x86_64      4.5 M
 cuda-nvprune-11-3                  x86_64      11.3.58-1                     cuda-rhel8-x86_64       64 k
 cuda-nvrtc-11-3                    x86_64      11.3.58-1                     cuda-rhel8-x86_64       34 M
 cuda-nvrtc-devel-11-3              x86_64      11.3.58-1                     cuda-rhel8-x86_64       28 k
 cuda-nvtx-11-3                     x86_64      11.3.58-1                     cuda-rhel8-x86_64       83 k
 cuda-nvvp-11-3                     x86_64      11.3.58-1                     cuda-rhel8-x86_64      116 M
 cuda-runtime-11-3                  x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.7 k
 cuda-samples-11-3                  x86_64      11.3.58-1                     cuda-rhel8-x86_64       78 M
 cuda-sanitizer-11-3                x86_64      11.3.58-1                     cuda-rhel8-x86_64       15 M
 cuda-thrust-11-3                   x86_64      11.3.58-1                     cuda-rhel8-x86_64      1.6 M
 cuda-toolkit-11-3                  x86_64      11.3.0-1                      cuda-rhel8-x86_64      4.5 k
 cuda-toolkit-11-config-common      noarch      11.3.58-1                     cuda-rhel8-x86_64      3.4 k
 cuda-toolkit-config-common         noarch      11.3.58-1                     cuda-rhel8-x86_64      3.4 k
 cuda-tools-11-3                    x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.6 k
 cuda-visual-tools-11-3             x86_64      11.3.0-1                      cuda-rhel8-x86_64      2.9 k
 libcublas-11-3                     x86_64      11.4.2.10064-1                cuda-rhel8-x86_64      190 M
 libcublas-devel-11-3               x86_64      11.4.2.10064-1                cuda-rhel8-x86_64      203 M
 libcufft-11-3                      x86_64      10.4.2.58-1                   cuda-rhel8-x86_64      134 M
 libcufft-devel-11-3                x86_64      10.4.2.58-1                   cuda-rhel8-x86_64      232 M
 libcurand-11-3                     x86_64      10.2.4.58-1                   cuda-rhel8-x86_64       51 M
 libcurand-devel-11-3               x86_64      10.2.4.58-1                   cuda-rhel8-x86_64       51 M
 libcusolver-11-3                   x86_64      11.1.1.58-1                   cuda-rhel8-x86_64      132 M
 libcusolver-devel-11-3             x86_64      11.1.1.58-1                   cuda-rhel8-x86_64       50 M
 libcusparse-11-3                   x86_64      11.5.0.58-1                   cuda-rhel8-x86_64      154 M
 libcusparse-devel-11-3             x86_64      11.5.0.58-1                   cuda-rhel8-x86_64      310 M
 libnpp-11-3                        x86_64      11.3.3.44-1                   cuda-rhel8-x86_64      108 M
 libnpp-devel-11-3                  x86_64      11.3.3.44-1                   cuda-rhel8-x86_64      105 M
 libnvjpeg-11-3                     x86_64      11.4.1.58-1                   cuda-rhel8-x86_64      2.5 M
 libnvjpeg-devel-11-3               x86_64      11.4.1.58-1                   cuda-rhel8-x86_64      2.2 M
 nsight-compute-2021.1.0            x86_64      2021.1.0.18-1                 cuda-rhel8-x86_64      321 M
 nsight-systems-2021.1.3            x86_64      2021.1.3.14_b695ea9-0         cuda-rhel8-x86_64      233 M


User avatar
jlehtone
Posts: 3468
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Low memory in file system

Post by jlehtone » 2021/04/17 09:44:24

pawel1010 wrote:
2021/04/17 00:40:40
During system update I got a message that main directory has only 361 MB of free memory.

Code: Select all

[pawel@comp ~]$ df -h
Filesystem              Size Used Avail Use% Mounted on
/dev/mapper/cl_comp-root   50G   50G  9,6M 100% /
/dev/mapper/cl_comp-home  384G   54G  331G  14% /home
/dev/nvme0n1p1            976M  316M  594M  35% /boot
First, "memory" refers usually to RAM, but here the issue is "disk space".

Second, you show 9.6 MB free, not 361 MB:
/dev/mapper/cl_comp-root 50G 50G 9,6M 100% /
The filesystem on LV cl_comp/root has no free space.

The first step that I would do is to do some cleaning. It is just a temporary measure:

Code: Select all

sudo dnf --enablerepo=* clean all
Then, look at where the consumers are within that filesystem:

Code: Select all

sudo du -d2 -hx /
On a desktop setup with "good" application coverage I've seen some 15G used, not 50G, and most of it are the software in /usr.


You could uninstall CUDA, update rest, cleanup, and reinstall CUDA, i.e. not update all at once, but the real space consumer is probably elsewhere.

User avatar
TrevorH
Forum Moderator
Posts: 30650
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Low memory in file system

Post by TrevorH » 2021/04/17 11:54:45

I'd wait and find out where your disk space has gone before you uninstall anything. And I use a slightly different command to track down used space (run as root):

du -m -x -d 1 / | sort -n

That lists the top level directories on the / filesystem with the ones at the bottom that use the most space. If you then take the largest one and repeat the same command for it then it will show you the directory inside that one that uses the most space, repeat until you get to the one at the bottom of the tree that uses all the space. Now you know where it's used and you can look and see if the files there are something you need or not.
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”