On Tue, Jun 12, 2012 at 09:43:55AM +0200, Matthias Cramer wrote:
> Hi All
> 
> I have a newly set up OpenBSD VM which mainly runs bgpd. I have 2 full IPv6
> and 2 full IPv6 feeds and
> about 20 peerings. The sessions are all up for a bit more than 3 hours now and
> the bgpd session engine uses all the CPU it can get.
> 
> In a very similar setup the CPU is under 1%.
> 
> It's a 5.1 GENERIC.MP#207 amd64 install
> 
> Any Idea where to begin debugging ?
> 

First of all run "bgpctl log verbose". Also try other bgpctl commands to
see if there is something funky. Check the logs. Is only the SE running at
full throttle?

If there is nothing in the logs that may indicate what the SE is
doing it gets a bit more complex. My normal approach then is to ktrace
the process for a short while and see what syscalls happen on which fds
(fstat is of great help here as well). If it is network traffic then
tcpdump may give some insights as well. Attaching gdb is often not very
helpful on spinning processes unless there is a good understanding where
the loop most probably is (just verifying assumtions).

Having the SE running at 100% is very uncommon (the RDE is known to
chew a lot of CPU time but the SE is just moving packets back and forth).

-- 
:wq Claudio

Reply via email to