OpenVZ Forum


Home » International » Russian » Количество mount -t proc в VPS
Количество mount -t proc в VPS [message #32692] Sun, 24 August 2008 18:45 Go to next message
renton is currently offline  renton
Messages: 6
Registered: August 2008
Junior Member
Привет друзья Smile

Существует ли какое-либо ограничение на количество:
* mount --bind
* mount -t proc
* mount -t devpts
?

У меня сейчас:
* mount bind'ов - 2761
* devpts - 212

При попытке смонтировать еще и proc, на любом элементе (по счету) монтирования получаю зависший процесс mount:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3738 root      25   0  7900  576  472 R  105  0.0   1:08.20 mount -t proc proc /home/blabla/user455/proc

который "жрет" CPU на все 100% и не прибивается по сигналу KILL Wink


strace этого дела:
strace mount -t proc proc /home/blabla/user455/proc
execve("/bin/mount", ["mount", "-t", "proc", "proc", "/home/blabla/user455/pr"...], [/* 27 vars */]) = 0
brk(0)                                  = 0x610000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb762e4000
uname({sys="Linux", node="l5v1.in-solve.ru", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24559, ...}) = 0
mmap(NULL, 24559, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aeb762e5000
close(3)                                = 0
open("/lib/libblkid.so.1", O_RDONLY)    = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20;\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=42832, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb762eb000
mmap(NULL, 2138136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aeb764e5000
mprotect(0x2aeb764ee000, 2093056, PROT_NONE) = 0
mmap(0x2aeb766ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x2aeb766ed000
mmap(0x2aeb766ef000, 24, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aeb766ef000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18768, ...}) = 0
mmap(NULL, 2113936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aeb766f0000
mprotect(0x2aeb766f4000, 2093056, PROT_NONE) = 0
mmap(0x2aeb768f3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2aeb768f3000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\334\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1293456, ...}) = 0
mmap(NULL, 3399928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aeb768f5000
mprotect(0x2aeb76a2b000, 2093056, PROT_NONE) = 0
mmap(0x2aeb76c2a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x135000) = 0x2aeb76c2a000
mmap(0x2aeb76c2f000, 16632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c2f000close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c34000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c35000
arch_prctl(ARCH_SET_FS, 0x2aeb76c34de0) = 0
mprotect(0x2aeb76c2a000, 16384, PROT_READ) = 0
mprotect(0x2aeb768f3000, 4096, PROT_READ) = 0
mprotect(0x2aeb766ed000, 4096, PROT_READ) = 0
mprotect(0x60d000, 4096, PROT_READ)     = 0
mprotect(0x2aeb764e3000, 4096, PROT_READ) = 0
munmap(0x2aeb762e5000, 24559)           = 0
brk(0)                                  = 0x610000
brk(0x631000)                           = 0x631000
umask(022)                              = 022
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
getuid()                                = 0
geteuid()                               = 0
lstat("/etc/mtab", {st_mode=S_IFLNK|0777, st_size=12, ...}) = 0
stat("/sbin/mount.proc", 0x7fff347dd090) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
stat("/sbin/mount.proc", 0x7fff347dd090) = -1 ENOENT (No such file or directory)
mount("proc", "/home/blabla/user455/proc", "proc"..., MS_MGC_VAL, NULL
mmap(0x2aeb766ef000, 24, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aeb766ef000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY)     = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\27\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18768, ...}) = 0
mmap(NULL, 2113936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aeb766f0000
mprotect(0x2aeb766f4000, 2093056, PROT_NONE) = 0
mmap(0x2aeb768f3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x2aeb768f3000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\334\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1293456, ...}) = 0
mmap(NULL, 3399928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aeb768f5000
mprotect(0x2aeb76a2b000, 2093056, PROT_NONE) = 0
mmap(0x2aeb76c2a000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x135000) = 0x2aeb76c2a000
mmap(0x2aeb76c2f000, 16632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c2f000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c34000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aeb76c35000
arch_prctl(ARCH_SET_FS, 0x2aeb76c34de0) = 0
mprotect(0x2aeb76c2a000, 16384, PROT_READ) = 0
mprotect(0x2aeb768f3000, 4096, PROT_READ) = 0
mprotect(0x2aeb766ed000, 4096, PROT_READ) = 0
mprotect(0x60d000, 4096, PROT_READ)     = 0
mprotect(0x2aeb764e3000, 4096, PROT_READ) = 0
munmap(0x2aeb762e5000, 24559)           = 0
brk(0)                                  = 0x610000
brk(0x631000)                           = 0x631000
umask(022)                              = 022
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
getuid()                                = 0
geteuid()                               = 0
lstat("/etc/mtab", {st_mode=S_IFLNK|0777, st_size=12, ...}) = 0
stat("/sbin/mount.proc", 0x7fff347dd090) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
stat("/sbin/mount.proc", 0x7fff347dd090) = -1 ENOENT (No such file or directory)
mount("proc", "/home/blabla/user455/proc", "proc"..., MS_MGC_VAL, NULL


Linux 2.6.18-028s053
Re: Количество mount -t proc в VPS [message #32703 is a reply to message #32692] Mon, 25 August 2008 07:47 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
День добрый!

А с failcounter'ами как там дела?

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Количество mount -t proc в VPS [message #32705 is a reply to message #32703] Mon, 25 August 2008 08:40 Go to previous messageGo to next message
renton is currently offline  renton
Messages: 6
Registered: August 2008
Junior Member
В данный момент:

101:        kmemsize                 41625840             61405600  9223372036854775807  9223372036854775807                    0
            lockedpages                     0                    6                  256                  256                    0
            privvmpages                803237              1466341              2048612              2048612                    0
            shmpages                   382473               962709  9223372036854775807  9223372036854775807                 3065
            dummy                           0                    0                    0                    0                    0
            numproc                       230                  333                 5000                 5000                    0
            physpages                  120105               367561                    0  9223372036854775807                    0
            vmguarpages                     0                    0                33792  9223372036854775807                    0
            oomguarpages               120112               369263                26112  9223372036854775807                    0
            numtcpsock                     33                  360  9223372036854775807  9223372036854775807                29599
            numflock                        3                  135                  188                  206                    0
            numpty                          4                    6                   16                   16                    0
            numsiginfo                      0                  261  9223372036854775807  9223372036854775807                   12
            tcpsndbuf                  829696              5519616  9223372036854775807  9223372036854775807            267836264
            tcprcvbuf                  540672             10706944  9223372036854775807  9223372036854775807                 3572
            othersockbuf                90880               422400              1126080              2097152                    0
            dgramrcvbuf                     0               261888               262144               262144                    6
            numothersock                 1216                 2817  9223372036854775807  9223372036854775807                    0
            dcachesize                7258020             10632608  9223372036854775807  9223372036854775807                18240
            numfile                      5547                 7896                16000                16000                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      10                   10                  128                  128                    0


т.е. для того, что когда-то давно превышалось, лимит снят.
Re: Количество mount -t proc в VPS [message #32707 is a reply to message #32705] Mon, 25 August 2008 08:45 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
и после увеличения лимитов - mount -t procfs всё равно не работает?
Не растут ли failcount'ы при попытках выполнить этот mount?


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Количество mount -t proc в VPS [message #32712 is a reply to message #32707] Mon, 25 August 2008 11:41 Go to previous messageGo to next message
renton is currently offline  renton
Messages: 6
Registered: August 2008
Junior Member
1. Лимиты увеличивались/изменялись из других соображений, т.е. проблемы с монтированием появились уже много позже (думаю, что с увеличением числа mount'ов).

2. Только что проверил, без изменений.

У меня есть список того, что нужно смонтировать и вот может повиснуть на 20 элементе, а может и на 120 Confused


Re: Количество mount -t proc в VPS [message #32714 is a reply to message #32712] Mon, 25 August 2008 13:13 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
понятно.
Ну, надо нам смотреть, воспроизводить пытаться.
А можно глупый вопрос, к делу мало относящийся?
Зачем столько монтировать?


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: Количество mount -t proc в VPS [message #32715 is a reply to message #32714] Mon, 25 August 2008 13:17 Go to previous message
renton is currently offline  renton
Messages: 6
Registered: August 2008
Junior Member
Каждому пользователю внутри VPS создается chroot-окружение.
Т.е. VPS это у меня как маленьний сервер такой.

[Updated on: Mon, 25 August 2008 13:19]

Report message to a moderator

Previous Topic: Монтирование раздела внутри VPS
Next Topic: [Решено] Кто делал ядро 2.6.16.60_027stab028.3-0.23 для SLES10?
Goto Forum:
  


Current Time: Fri Dec 01 20:10:56 GMT 2023

Total time taken to generate the page: 0.04636 seconds