Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

OpenBSD error

Posted on 2006-05-03
11
Medium Priority
?
581 Views
Last Modified: 2013-12-09
I am getting an error on my OpenBSD box.  It happened yesterday for the first time (boxes have been up for about two weeks).  I have two OpenBSD boxes running in a CARP configuration.  They are only acting as apache web servers.  The error I get is
kernel: page fault trap code=0  stopped at pool_get+0x131: mov1 %eax.0x8(%ecx)
The boxes are not reachable at this point.  I have to reboot them to access the web server.  Any ideas?
0
Comment
Question by:BloodCenter
  • 6
  • 4
10 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 16620614
uname -a please.
0
 

Author Comment

by:BloodCenter
ID: 16640481
OpenBSD hostname 3.8 GENERIC#138 i386
0
 
LVL 62

Expert Comment

by:gheist
ID: 16642278
Did you do "trace" and "ps" in kernel debugger at that moment? Please do if problem repeats.
Do the boxes do only static webpages with default config or there is some database backend or apache customizations in place?
Please shortly describe customizations if any.

Error may mean exhausted kernel memory pool, or network memory pool or whatever pool kernel holds.
Easiest is socket buffers that exceed nmbclusters.
But might be CARP's or whatever memory or other resource leakage.

vmstat -s; vmstat -m ; netstat -m may hint with pool usage while system works, and let you patch one after another.
Is this GENERIC kernel from distribution or custom built locally ???
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:BloodCenter
ID: 16642449
I did not do a trace and ps in kernel debugger.  I did not happen to be at the site when this happened.  It happened again today, but they were rebooted right away.  I will troubleshoot the next time it happens.  The two boxes are acting as reverse proxy servers.  That is all they do at the moment.  I installed OpenBSD 3.8 with the default minimum install and nothing else.  I wanted to keep it as simple as possible.  I will try out the vmstat and netstat to see if something is growing on me.
0
 
LVL 62

Expert Comment

by:gheist
ID: 16642524
That is fine, thanks.

cp /bsd /bsd.GENERIC
config -e /bsd /bsd.GENERIC
ukc> nkmempg
ukc> nkmempg=<twice what was before>
ukc> quit

now wait it to crash or reboot now.

reference:
http://www.openbsd.org/cgi-bin/man.cgi?query=config&manpath=OpenBSD+3.8
0
 
LVL 62

Expert Comment

by:gheist
ID: 16642538
Actually
config -e -o /bsd /bsd.GENERIC

...
0
 
LVL 62

Accepted Solution

by:
gheist earned 1000 total points
ID: 16801915
B grade please - that could be nmbclusters too.
0
 

Author Comment

by:BloodCenter
ID: 16807656
As it turns out, I had to turn off load balancing and now the servers seem to be stable.
0
 
LVL 62

Expert Comment

by:gheist
ID: 16813909
So there is a resource leak in balancing code. ( was it arpbalance ???)

Were you able to trace kernel ???

If nothing, say clearly that you need refund.
0
 

Author Comment

by:BloodCenter
ID: 16816852
I was able to trace kernel.  I was using arpbalance. I kind of think that both boxes thought there was a duplicate IP address on the network.  Maybe I had it setup wrong, but it seems pretty straight forward.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month10 days, 8 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question