Segmentation fault. Too many open files

48 views
Skip to first unread message

Alex Sem

unread,
Nov 9, 2018, 3:15:26 AM11/9/18
to Tarantool discussion group (English)
Создал > 200 спейсов c engine=vinyl и получил вот такое:

2018-11-09 08:02:02.471 [30361] vinyl.dump.0/103/task xlog.c:824 !> open, [./512/6/00000000000000010238.run.inprogress]: Too many open files
Segmentation fault
code: SEGV_MAPERR
addr: (nil)
context: 0x7fb34f03f780
siginfo: 0x7fb34f03f8b0
rax 0x6e9d2b0 115987120
rbx 0x353dc30 55827504
rcx 0x1239010 19107856
rdx 0x0 0
rsi 0x1239010 19107856
rdi 0x0 0
rsp 0x7fb34f03fd40 140408101535040
rbp 0x7fb34f03fd50 140408101535056
r8 0x80 128
r9 0x353d338 55825208
r10 0x4 4
r11 0x10000 65536
r12 0x353dc48 55827528
r13 0x353d760 55826272
r14 0x128fc48 19463240
r15 0x353dc30 55827504
rip 0x4ee0c7 5169351
eflags 0x10206 66054
cs 0x33 51
gs 0x0 0
fs 0x0 0
cr2 0x0 0
err 0x6 6
oldmask 0x0 0
trapno 0xe 14
Current time: 1541739722
Please file a bug at http://github.com/tarantool/tarantool/issues
Attempting backtrace... Note: since the server has already crashed,
this may fail as well
#0 0x4ec089 in print_backtrace+9
#1 0x40f547 in _ZL12sig_fatal_cbiP9siginfo_tPv+c7
#2 0x7fb3582b5890 in funlockfile+50
#3 0x4ee0c7 in cbus_stop_loop+37
#4 0x489fb7 in vy_worker_pool_stop.isra.36+47
#5 0x48da2a in vy_scheduler_destroy+5a
#6 0x43d916 in vinyl_engine_shutdown+26
#7 0x431be5 in engine_shutdown+45
#8 0x4b06b8 in box_free+28
#9 0x40ef93 in _Z14tarantool_freev+33
#10 0x7fb356f4d041 in __libc_secure_getenv+191
#11 0x7fb356f4d13a in exit+1a
#12 0x489a56 in vy_worker_pool_get+186
#13 0x48b2a0 in vy_scheduler_f+9c0
#14 0x40ea1c in ZL16fiber_cxx_invokePFiP13__va_list_tagES0+c
#15 0x4e9730 in fiber_loop+30
#16 0x61d55f in coro_init+3f
Аварийный останов (стек памяти сброшен на диск)

Это у меня руки кривые?

Alexander Turenko

unread,
Nov 9, 2018, 3:42:42 AM11/9/18
to tara...@googlegroups.com
Добрый день!

Вероятнее всего, уперлись в ulimit -n.

WBR, Alexander Turenko.

--
You received this message because you are subscribed to the Google Groups "Tarantool discussion group (English)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tarantool+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Sem

unread,
Nov 9, 2018, 3:56:12 AM11/9/18
to Tarantool discussion group (English)
Так и есть.
Спасибо, сразу почему то не подумал про это...

пятница, 9 ноября 2018 г., 11:42:42 UTC+3 пользователь Alexander Turenko написал:

Alex Sem

unread,
Nov 9, 2018, 5:20:11 AM11/9/18
to Tarantool discussion group (English)
А как понять сколько мне нужно установить лимит дескрипторов из расчета что у меня будет порядка 3000 спейсов vinyl?


пятница, 9 ноября 2018 г., 11:42:42 UTC+3 пользователь Alexander Turenko написал:
Добрый день!

Alexander Turenko

unread,
Nov 9, 2018, 5:52:03 AM11/9/18
to tara...@googlegroups.com
Точного ответа не знаю, но можно понаблюдать за
ls -ld /proc/${TARANTOOL_PID}/fd/* | wc -l
где ${TARANTOOL_PID} — номер процесса тарантула.

Можно поставить для начала unlimited (в /etc/security/limits.conf
или для конкретной сессии из-под рута).

Можно сократить количество спейсов, объединив их и добавив имя / номер
спейса первым полем в составной первичный ключ (хотя для 3000 это, возможно,
и не нужно).

WBR, Alexander Turenko.

Konstantin Osipov

unread,
Nov 9, 2018, 7:38:57 AM11/9/18
to tara...@googlegroups.com
* Alex Sem <lga...@gmail.com> [18/11/09 11:17]:
> Создал > 200 спейсов c engine=vinyl и получил вот такое:

segmentation fault не должно быть в любом случае.

какой Range size? и какой open files limit? Также просьба указать
версию.

В целом это баг.



--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

AE

unread,
Nov 11, 2018, 2:32:00 AM11/11/18
to tara...@googlegroups.com
ulimit -n
8192

localhost:3301> box.info()
---
- vinyl: []
  version: 1.10.2-26-gb2ddd18a1
  id: 1
  ro: false
  status: running
  vclock: {1: 2077422}
  uptime: 151966
  lsn: 2077422
  memory: []
  cluster:
    uuid: db18f40a-73d5-4c51-b2f5-ff4bfaf321e5
  pid: 1841
  gc: []
  signature: 2077422
  replication:
    1:
      id: 1
      uuid: 59865e69-3a4f-434a-8e27-f0ac6a347826
      lsn: 2077422
    2:
      id: 2
      uuid: c950ec01-5dee-4d84-b420-319b255ca735
      lsn: 0
    3:
      id: 3
      uuid: 167b3f09-43be-4925-bc87-30347fd528c9
      lsn: 0
      downstream:
        vclock: {1: 2077422}
  uuid: 59865e69-3a4f-434a-8e27-f0ac6a347826


пт, 9 нояб. 2018 г. в 15:38, Konstantin Osipov <kostja...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages