Running a command called df -h on my EC2 instance results in the following
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 41M 355M 11% /run
/dev/xvda1 7.8G 4.6G 2.8G 63% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 396M 0 396M 0% /run/user/1000
I have limited space on my root /
drive and these guys /dev/shm
/sys/fs/cgroup
and /dev
are sitting with 2GB of free memory. /run/user/1000
also has 396 MB of free space.
I would like to know the purpose of these file systems and are they absolutely necessary. If no, can I reclaim that space by any chance and add it to my root
directory. My logs files and DB are growing day on day and I need more space to keep them.