Opened 10 years ago

Closed 10 years ago

Last modified 6 years ago

#55 closed баг (готово)

Выяснить, почему так много открытых pipe (нет ли утечки)

Reported by: alx Owned by: alx
Priority: низкий Milestone: Как-нибудь потом
Component: swd Keywords:
Cc:

Description

Выяснить, почему так много открытых pipe (нет ли утечки).
Особенно при перезапусках. А то иногда бывает так:

Jun 16 10:08:56 sw01 daemon.info swd[1072]: starting swd
Jun 16 10:08:57 sw01 daemon.info swd[1072]: current logins database version is 1
Jun 16 10:08:57 sw01 daemon.info swd[1072]: HTTP daemon started
Jun 16 10:08:57 sw01 daemon.info swd[1072]: my address is 9
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board SW-01 in slot 9
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: board_SW.cpp:256: slot 09: cannot create SPI object
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board GE-04 in slot 3
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board E1-08 in slot 5
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board PS-48 in slot 20
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board EM-04 in slot 6
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board FS-08 in slot 11
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board VE-01 in slot 12
Jun 16 10:08:58 sw01 daemon.err swd[1072]: board_VE01.cpp:109: slot 12: Error getting eth0 address: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.info swd[1072]: New board PE-04 in slot 14
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:08:58 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:09:00 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:09:00 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:09:00 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files
Jun 16 10:09:01 sw01 daemon.err swd[1072]: Failed to allocate interrupt pipe: Too many open files

Change History (2)

comment:1 by alx, 10 years ago

Resolution: fixed
Status: newclosed

In 1099/sw:

Устранен баг: при рестарте swd новый процесс наследовал открытые файловые дескрипторы от старого,
в результате происходила утечка труб: с каждым рестартом число открытых процессом pipes увеличивалось
приблизительно на сотню. Одним из эффектов от этого были проблемы с загрузкой обновлений. Fixes #55.

comment:2 by alx, 6 years ago

Milestone: Как-нибудь потом
Note: See TracTickets for help on using tickets.