LinuxForum.Fans
Тема

RAM-Disk / tmpfs - No space left on device

Автор: sunjob 5 сообщений 708 просмотров
18.12.2014 11:14 · отредактировано #405698

распаковываю большой архив на рамдиск, после частичной распаковки выдает сообщение что "фсе"

распакованный каталог занимает 2.5Гб
свободного места, судя по "df" - еще 5.6Гб

какие будут идеи, комментарии, ссылки
спасибо

slackware-12.2 / tde3.5.12
kernel (PAE):
Linux main 2.6.29.6.11-smp #1 SMP PREEMPT Sun Dec 7 13:18:15 KRAT 2014 i686 Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz GenuineIntel GNU/Linux

Показать
text

error

tar: tde/main/tde-i18n/tde-i18n-ru/messages/tdeutils/irkick.po: Cannot open: No such file or directory tde/main/tde-i18n/tde-i18n-ru/messages/tdeutils/kgpg.po tar: tde/main/tde-i18n/tde-i18n-ru: Cannot mkdir: No space left on device tar: tde/main/tde-i18n/tde-i18n-ru/messages/tdeutils/kgpg.po: Cannot open: No such file or directory tde/main/tde-i18n/tde-i18n-ru/messages/tdetoys/ tar: tde/main/tde-i18n/tde-i18n-ru: Cannot mkdir: No space left on device tar: tde/main/tde-i18n/tde-i18n-ru/messages/tdetoys: Cannot mkdir: No such file or directory tde/main/tde-i18n/tde-i18n-ru/messages/tdetoys/kmoon.po tar: tde/main/tde-i18n/tde-i18n-ru: Cannot mkdir: No space left on device tar: tde/main/tde-i18n/tde-i18n-ru/messages/tdetoys/kmoon.po: Cannot open: No such file or directory tde/main/tde-i18n/tde-i18n-ru/messages/tdetoys/amor.po tar: tde/main/tde-i18n/tde-i18n-ru: Cannot mkdir: No space left on device

/etc/fstab tmpfs /dev/shm tmpfs size=8192m,noatime,mode=1777 0 0

df -H Filesystem Size Used Avail Use% Mounted on /dev/sda1 215G 157G 59G 73% / /dev/sda6 764G 548G 216G 72% /home tmpfs 8.6G 3.1G 5.6G 36% /dev/shm tmpfs 537M 99k 537M 1% /tmp tmpfs 11M 0 11M 0% /var/lock

18.12.2014 11:26 #405699
"sunjob" написал:
свободного места, судя по "df" - еще 5.6Гб
какие будут идеи, комментарии, ссылки

Закончились свободные блоки inodes, монтируйте tmpfs с соответствующей опцией, указывающей какое количество inodes должно быть.

Сейчас посмотрите на вывод:

text

df -i

А затем читайте

text

man mount
text

Mount options for tmpfs
       size=nbytes
              Override  default  maximum  size of the filesystem.  The size is
              given in bytes, and rounded up to entire pages.  The default  is
              half  of  the memory. The size parameter also accepts a suffix %
              to limit this tmpfs instance to that percentage of your physical
              RAM:  the default, when neither size nor nr_blocks is specified,
              is size=50%

nr_blocks= The same as size, but in blocks of PAGE_CACHE_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 the lower.

The tmpfs mount options for sizing ( size, nr_blocks, and nr_inodes) accept a suffix k, m or g for Ki, Mi, Gi (binary kilo, mega and giga) and can be changed on remount .

18.12.2014 12:11 · отредактировано #405706

проблема оказалась банальной :о)

закончились айподы... пардон, айноды!

решилось соотв. параметрами монтирования : nr_inodes=1024000

Показать
text

/etc/fstab
tmpfs /dev/shm tmpfs size=8192m,noatime,nr_inodes=1024000,mode=1777   0 0

вывод команды "df -i"

[b]до[/b]

main# df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 0 0 0 - / /dev/sda6 0 0 0 - /home tmpfs 175762 175762 0 100% /dev/shm tmpfs 175762 44 175718 1% /tmp tmpfs 175762 1 175761 1% /var/lock

[b]после[/b]

main$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sda1 0 0 0 - / /dev/sda6 0 0 0 - /home tmpfs 1024000 240929 783071 24% /dev/shm tmpfs 175762 27 175735 1% /tmp tmpfs 175762 1 175761 1% /var/lock

slackware-12.2 / TDE3.5.12 24Гб озу linux-2.6.29.6 PAE/BFQ

видимо оптимальным будет решение
- оставить как есть по умолчанию /dev/shm - пусть служит себе системе
- мануально создавать рамдиск для соотв. целей (перед сборкой больших проектов)
и подсовывать этот диск в качестве $TMP

всем спасибо, помогли быстро и в точку!

18.12.2014 12:14 #405707
"sunjob" написал:
параметрами монтирования : nr_inodes=1024000
"kostik87" написал:
The tmpfs mount options for sizing ( size, nr_blocks, and nr_inodes)
accept a suffix k, m or g for Ki, Mi, Gi (binary kilo, mega and giga)
and can be changed on remount

Отсюда следует:

text

nr_inodes=1m
18.12.2014 12:18 #405708

да я уже не стал "докапываться до едениц", решилось и славно!

Войдите или зарегистрируйтесь, чтобы ответить.