Re: 4.3: netstat question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Toni Mueller <openbsd-misc@...>, <misc@...>
Date: Friday, June 13, 2008 - 7:39 pm

On Fri, Jun 13, 2008 at 04:20:45PM -0700, Philip Guenther wrote:

Nope. That is not the problem. The main issues is that a full view will
need a lot of memory for the sysctl. This memory needs to be available as
real memory because it is wired into the kernel. If you run bgpd with full
views on a box with less then 512MB of RAM you're most probably run out of
memory. Theo and I had a look at this and bailing out in this situation is
the right thing to do. The right fix is to just spend 50 bucks on 1-2GB
of additional RAM.

>

There is already enough fudge in the sysctl itself. The estimate done by
the sysctl in the first run is 10% over the needed memory.

> b) retry the pair of calls if the second returns ENOMEM

Will not help either.

c) work around (ugly but works)
netstat -rnfinet -M /dev/mem

d) the route sysctl needs to be rewritten to be fully restartable and so
small chunks of the table can be fetched one after the other. This is a
massive change and it will not happen for the upcomming release.

--
:wq Claudio

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
4.3: netstat question, Toni Mueller, (Thu Jun 12, 6:47 pm)
Re: 4.3: netstat question, Philip Guenther, (Fri Jun 13, 7:20 pm)
Re: 4.3: netstat question, Claudio Jeker, (Fri Jun 13, 7:39 pm)
Re: 4.3: netstat question, Toni Mueller, (Sat Jun 14, 5:25 am)
Re: 4.3: netstat question, Henning Brauer, (Sat Jun 14, 1:11 pm)
Re: 4.3: netstat question, David Higgs, (Sat Jun 14, 7:53 pm)
Re: 4.3: netstat question, Henning Brauer, (Sat Jun 14, 9:16 pm)
Re: 4.3: netstat question, David Higgs, (Sat Jun 14, 10:55 pm)
Re: 4.3: netstat question, Claudio Jeker, (Sun Jun 15, 12:21 am)
Re: 4.3: netstat question, Philip Guenther, (Fri Jun 13, 11:28 pm)
Re: 4.3: netstat question, Pierre Riteau, (Thu Jun 12, 6:53 pm)