tmpfs(5) File Formats Manual tmpfs(5) tmpfs - tmpfs , . , , , . tmpfs : $ sudo mount -t tmpfs -o size=10M tmpfs /mnt/mytmpfs tmpfs : o , - . o . o (mount -o remount), ( ). tmpfs (). tmpfs : size= Specify an upper limit on the size of the filesystem. The size is given in bytes, and rounded up to entire pages. The limit is removed if the size is 0. k, m g Ki, Mi, Gi ( (kibi), (mebi) (gibi) -). %, . size nr_blocks , size=50%. nr_blocks= , size, PAGE_CACHE_SIZE. k, m g, size, %. nr_inodes= The maximum number of inodes for this instance. The default is half of the number of your physical RAM pages, or (on a machine with highmem) the number of lowmem RAM pages, whichever is smaller. The limit is removed if the number is 0. k, m g, size, %. noswap(since Linux 6.4) Disables swap. Remounts must respect the original settings. By default swap is enabled. mode= . gid=gid ( Linux 2.5.7) . uid=uid ( Linux 2.5.7) . huge=huge_option ( Linux 4.7.0) Set the huge table memory allocation policy for all files in this instance (if CONFIG_TRANSPARENT_HUGEPAGE is enabled). huge_option : never . . always . within_size Only allocate huge page if it will be fully within i_size. Also respect fadvise(2) and madvise(2) hints advise Only allocate huge pages if requested with fadvise(2) or madvise(2). deny , . force ; . mpol=mpol_option ( Linux 2.6.15) NUMA ( CONFIG_NUMA). mpol_option : default ( set_mempolicy(2)). prefer: . bind:_ _. interleave . interleave:_ _. local . _ -- , NUMA. , . : mpol=bind:0-3,5,7,9-15. tmpfs Linux 2.4 ramfs, . tmpfs CONFIG_TMPFS. tmpfs ( xattr(7)), user . System V shmget(2)) (mmap(2) MAP_SHARED MAP_ANONYMOUS) . , CONFIG_TMPFS. tmpfs, /dev/shm, POSIX (shm_overview(7)) POSIX (sem_overview(7)). , tmpfs Shmem /proc/meminfo shared, free(1). tmpfs shmfs. . df(1), du(1), memfd_create(2), mmap(2), set_mempolicy(2), shm_open(3), mount(8) Documentation/filesystems/tmpfs.txt Documentation/admin-guide/mm/transhuge.rst. Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . tmpfs(5)