DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th October 2010
badkuk badkuk is offline
New User
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default high cpu usage by system process

Hi peeps,

Recently i've noticed a significant slowdown on an old OpenBSD 3.5 box, which we run IPSec/VPN on. System load consistently reached 2.70+, and upon closer investigation it seems the system process hogs up the cpu.

We're using some el cheapo NICs on it, so i began to suspect that maybe the box is getting drowned in interrupts...but the systat reports below doesn't suggest that:

************************************************** ************************************************** **
load averages: 2.58, 2.50, 2.27 18:21:36

14 processes: 1 running, 13 idle

CPU states: 0.0% user, 0.0% nice, 96.2% system, 0.4% interrupt, 3.3% idle

Memory: Real: 4764K/60M act/tot Free: 439M Swap: 0K/4093M used/tot



PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND

4930 root 2 0 308K 992K idle select 0:00 0.00% sshd

5549 root 28 0 216K 860K run - 0:00 0.00% top

31061 root 2 0 292K 564K idle select 0:00 0.00% cron

5500 _syslogd 2 0 172K 496K idle poll 0:00 0.00% syslogd

23416 root 2 0 364K 1476K sleep select 0:00 0.00% sshd

1 root 10 0 368K 228K idle wait 0:00 0.00% init

11404 root 18 0 340K 304K idle pause 0:00 0.00% csh

22485 root 2 0 144K 456K idle netio 0:00 0.00% syslogd

31382 root 3 0 92K 476K idle ttyin 0:00 0.00% getty

13179 root 2 0 104K 492K idle select 0:00 0.00% inetd

19389 root 3 0 84K 476K idle ttyin 0:00 0.00% getty

10293 root 3 0 88K 476K idle ttyin 0:00 0.00% getty

19331 root 3 0 56K 476K idle ttyin 0:00 0.00% getty

20411 root 3 0 56K 476K idle ttyin 0:00 0.00% getty





************************************************** ************************
output of systat :io



/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10

Load Average ||||||||||||||||||



/0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100

cpu user|

nice|

system|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXX

interrupt|

idle|



/0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100

wd0 Kps|

tps|


************************************************** ************************

output of systat :swap





/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10

Load Average ||||||||||||||



Disk 1K-blocks Used /0% /10% /20% /30% /40% /50% /60% /70% /80% /90% /100%

swap_ 4191248 0





************************************************** ************************

output of mbufs:





/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10

Load Average >>>>>>>>>>>



/0 /5 /10 /15 /20 /25 /30 /35 /40 /45 /50 /55 /60

sockets XXX

data X

headers X




************************************************** ************************

output of pigs:





/0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10

Load Average <<<<<<<<<<<<<<



/0 /10 /20 /30 /40 /50 /60 /70 /80 /90 /100

<idle> XXXXXXXXXXXXX





************************************************** ************************

1 users Load 2.19 2.72 2.51 Thu Oct 7 18:27:26 2010



memory totals (in KB) PAGING SWAPPING Interrupts

real virtual free in out in out 8506 total

Active 4948 4948 449388 ops 100 clock

All 61624 61624 4640632 pages 4593 rl0

128 rtc

Proc:r d s w Csw Trp Sys Int Sof Flt forks 3685 vr0

2 56 7 44 13210 1 10 fkppw pciide1

fksvm

91.3% Sys 0.0% User 0.0% Nice 8.4% Idle pwait

| | | | | | | | | | | relck

============================================== rlkok

noram

Namei Sys-cache Proc-cache No-cache ndcpy

Calls hits % hits % miss % fltcp

13 13 100 1 8 -1 -8 1 zfod

cow

Disks wd0 128 fmin

seeks 170 ftarg

xfers itarg

Kbyte 54 wired

sec pdfre

Showing vmstat, refresh every 5 seconds.




************************************************** ************************

i'm beginning to suspect that maybe the box can't handle all that VPN/IPSec processing; what else can i check to determine this?

And how to do i solve this btw? Currently the box has 512MB RAM and a P4 2.0Ghz processor; i doubt if bumping up the RAM and going dual core is going to solve things...

tia
Reply With Quote
  #2   (View Single Post)  
Old 7th October 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

OpenBSD 3.5 (..not a typo?) was released in 2004, that's 5 years ago.. it's quite unsupported.

I doubt anyone here even remembers it enough to help you, 4.8 is due out next month.. it would be a good idea to look into reinstalling and trying to replicate your configuration.

Load averages are calculated differently than Linux or other Unix systems, as is often mentioned on the mailing lists.. these values are not indicative of any problem.

Also, when posting program output here.. please use [code][/code] as it preserves formatting.
Reply With Quote
  #3   (View Single Post)  
Old 7th October 2010
badkuk badkuk is offline
New User
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default

oops, sorry about the thing.

In my case, console response became very slow; i can't pinpoint a specific process hogging up the CPU -- it's not even the interrupts.

Anyways, maybe i'll just wait for 4.8 to come along and replace it outright. thanks
Reply With Quote
  #4   (View Single Post)  
Old 7th October 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,674
Thanked 214 Times in 189 Posts
Default

Memory is not your problem, all processes and kernel together consume 60MB.

Load has directly to do with the number of active processes during a "top" window. Less than 3. But your "Top" output is confusing, not just because of formatting, because your largest consumer of cpu, sshd, shows 0%. The "i" command will toggle the display of idle processes, and the "S" command will toggle the display of system processes. Those may help.

Support for your OS ceased on 19 May, 2005.
Reply With Quote
  #5   (View Single Post)  
Old 18th October 2010
badkuk badkuk is offline
New User
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default

so i've set up an OpenBSD4.7 box and swapped it in...system load is still very high, specifically the crypto process is taking up 88-97% cpu while in the "bored" state.

Any suggestions? i'm using a P4 2.66Ghz box.
Reply With Quote
  #6   (View Single Post)  
Old 18th October 2010
badkuk badkuk is offline
New User
 
Join Date: Oct 2010
Posts: 4
Thanked 0 Times in 0 Posts
Default

would a multicore cpu help in this matter? i think for basic routing stuff multicores is not that big of a help, but IPSec encryption could be a different matter...
Reply With Quote
  #7   (View Single Post)  
Old 18th October 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,879
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by badkuk View Post
so i've set up an OpenBSD4.7 box and swapped it in...system load is still very high...
If you upgraded from 3.5, this required all of the incremental changes -- 3.5 to 3.6, 3.6 to 3.7, etc. all the way up to 4.7. Otherwise, you could have simply done a fresh install of OpenBSD 4.7. Any other method is not officially supported.

What other applications/daemons are running?

And posting the output of dmesg(8) would be helpful.
Reply With Quote
  #8   (View Single Post)  
Old 19th October 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 768
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by badkuk View Post
would a multicore cpu help in this matter? i think for basic routing stuff multicores is not that big of a help, but IPSec encryption could be a different matter...
Unfortunately not for now unless you can write the kernel code yourself

http://marc.info/?l=openbsd-misc&m=128691532410484&w=1
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Process Warnings IronForge OpenBSD Installation and Upgrading 9 22nd January 2010 11:21 AM
Loader, MBR and the boot process Jago FreeBSD Installation and Upgrading 1 22nd January 2010 04:52 AM
Any Solution for Xorg high CPU usage in Ubuntu 9.04? Mantazz Other BSD and UNIX/UNIX-like 11 14th July 2009 06:10 AM
See what process is generating DNS traffic? Bruco FreeBSD General 3 2nd July 2009 05:57 PM
shell script-start another process bsdnewbie999 Programming 2 23rd April 2009 07:48 PM


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick