• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Why CentOS / RHEL 7 have many tmpfs (6 tmpfs filesystem), and what is their purpose

by admin

Question: Why CentOS 7 / RHEL 7 have many tmpfs (6 tmpfs filesystem), are these tmpfs mandatory for OS? What are the mount /run/user/1000, /run/user/0, /run/user/45, /sys/fs/cgroup for?

Answer:

If you run df -hP in RHEL 7 system you would find many tmpfs file systems mounted.

# df -hP
Filesystem                     Size  Used Avail Use% Mounted on
/dev/mapper/vg_os-lv_root      296G   33G  248G  12% /
devtmpfs                       126G     0  126G   0% /dev
tmpfs                          126G  631M  126G   1% /dev/shm
tmpfs                          126G  1.3G  125G   2% /run
tmpfs                          126G     0  126G   0% /sys/fs/cgroup
/dev/sda1                      976M  112M  797M  13% /boot
tmpfs                           26G     0   26G   0% /run/user/0
tmpfs                           26G     0   26G   0% /run/user/5006
tmpfs 				9.5G	68K 9.5G  1% /run/user/1000

tmpfs is a temporary filesystem that resides in memory and/or your swap partition(s), depending on how much you fill it up. Mounting directories as tmpfs can be an effective way of speeding up accesses to their files, or to ensure that their contents are automatically cleared upon reboot.

/dev

/dev contains device files which are created and removed automatically by the udev daemon, as hardware is added or removed etc. (devtmps is just a tmpfs that was created specially by the kernel early in the boot process, which contains the core devices pre-created so that the boot process has something to work with before udevd is loaded.)

/dev/shm

/dev/shm is used by the POSIX shared memory facilities.

/run

/run contains resource locks and PID files etc. which are relevant to currently-running daemons. /var/run and /var/lock are symlinks back to /run for compatibility reasons.

/media

/media contains the mount-points of removable media (e.g. optical discs and USB drives), which are created and removed automatically.

/sys/fs/cgroup

/sys/fs/cgroup contains details for the cgroup system, which is used (mainly by systemd) to divide processes into groups for resource sharing etc.

Filed Under: CentOS/RHEL 7

Some more articles you might also be interested in …

  1. How to Rebuild GRUB on MSDOS Partition Type in CentOS/RHEL/OEL 7
  2. How to make CentOS/RHEL 7 FIPS 140-2 compliant
  3. How to Recover Deleted rpm Package Files(libraries, configuration files) in CentOS/RHEL 7
  4. How to use Magic SysRq tool in CentOS / RHEL
  5. Command ‘df -i’ Shows ‘Inode=0’ on BTRFS File System
  6. CentOS / RHEL 7 : How to setup yum repository using locally mounted DVD
  7. How to Set External Network For Containers in Linux Containers (LXC)
  8. CentOS / RHEL 7 : systemd-analyze command to find booting time delays
  9. How to create a networking bridge under CentOS/RHEL
  10. “Couldn’t authenticate with keytab while discovering which salt to use: hostname: KDC has no support for encryption type” – error while joining domain

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright