[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Too many open files



-----BEGIN PGP SIGNED MESSAGE-----

Hi,

I use leafnode on my OpenBSD-2.6/i386.
When I run fetchnews, I got the following errors.

- ---------------------------------------------------------------------
$ /usr/local/sbin/fetchnews -vvvv
1.9.13: verbosity level is 4
Trying to connect to nn2.news.ocn.ad.jp ... connected.
Getting new newsgroups from nn2.news.ocn.ad.jp
Read server info from /var/spool/news/leaf.node/nn2.news.ocn.ad.jp
fj.sys.palm: no new articles
fj.os.bsd.freebsd: considering articles 2626-2627
fj.os.bsd.freebsd: will fetch 2626 (<wkzoqbevjb.wl@xxxxxxxxxxxxxxxx>)
fj.os.bsd.freebsd: will fetch 2627 (<8ehdc4$6ju$1@xxxxxxxxxxxxxxxxxxxxxx>)

[...]

..saw header Path: 
..saw header Xref: 
storing <MZTYv6qs$GA.202@xxxxxxxxxxxxxxx>: pilot.programmer
.as article 445 in pilot.programmer
pilot.programmer: 1 articles fetched, 0 killed
Disconnected from news.massena.com.
$ article /var/spool/news/comp/lang/perl/modules/816 contained illegal headers
article /var/spool/news/comp/lang/perl/modules/817 contained illegal headers
article /var/spool/news/comp/lang/perl/modules/818 contained illegal headers
article /var/spool/news/comp/lang/perl/modules/819 contained illegal headers
article /var/spool/news/comp/lang/perl/modules/820 contained illegal headers
article /var/spool/news/comp/lang/perl/modules/821 contained illegal headers
- ---------------------------------------------------------------------

I logged all the messages which news facility gives with syslogd, and
the following errors recorded.

- ---------------------------------------------------------------------
Apr 30 23:44:10 orange fetchnews[16439]: pilot.programmer: 1 articles fetched (to 445), 0 killed
Apr 30 23:45:03 orange fetchnews[3891]: illegal article: /var/spool/news/comp/lang/perl/modules/816: Too many open files
Apr 30 23:45:03 orange fetchnews[3891]: illegal article: /var/spool/news/comp/lang/perl/modules/817: Too many open files

[...]

Apr 30 23:45:04 orange fetchnews[3891]: illegal article: /var/spool/news/comp/lang/perl/modules/844: Too many open files
Apr 30 23:45:04 orange fetchnews[3891]: illegal article: /var/spool/news/comp/lang/perl/modules/845: Too many open files
Apr 30 23:45:04 orange fetchnews[3891]: mkstemp of new .overview failed: Too many open files
Apr 30 23:45:04 orange fetchnews[3891]: opendir: Too many open files
Apr 30 23:45:05 orange last message repeated 28 times
- ---------------------------------------------------------------------

Then I tried the following:

$ ulimit -a
time(cpu-seconds)    unlimited
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         65536
stack(kbytes)        4096
lockedmem(kbytes)    8949
memory(kbytes)       26844
nofiles(descriptors) 64
processes            80
$ ulimit -n 128; /usr/local/sbin/fetchnews -vvvv

The errors disappeared.

I glanced xoverutil.c, but there is no descriptor leak (ofcource).
And OpenBSD-current's changelog has no reported descriptor leak.

So I think leafnode has the lower limit on descriptors.


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBOQ/RrUPp6IK9NdONAQEe+AP/UIjXAC88B0cLgIc8qf3fdEnD/x+V7aa0
87zNXoIkDTaVPQyMkIv1UpCUMvUuB42Ew8wBjzvLVYL4DQVYIMybDYQ4E7LUCQP3
rg0XB33ywjqurN9hAITZZo+S8URgi+ddFT2SI0aeDMqiZHLqqd+As9oM7yLLcZGV
zyvOeZzthZA=
=vHLa
-----END PGP SIGNATURE-----

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list