Jump to content

Home

high cpu on bsd 4.5


wokka[eu]

Recommended Posts

before today, the server has run really good... averaged about 25% cpu utilization on my bsd 4.5 release server. Server is a dual 1 ghz p3 with 1 gig of ram. It runs several other games as well...

 

maxclients is 19 with 3 reserved spots, maxrate is 10k

 

the admin of this server recreated the config file with the runner program... and now its eating up cpu... i tried r_smp 1 to help, but i'm not even sure if this is utilized anymore

 

config will be below, but does anyone have any ideas?

 

TIA!

wokka

 

seta g_motd "Hosted by ^2www.eulogyclan.org^7 - we rent servers"

seta r_smp 1

seta sv_hostname " ^1-^7+^4IDS^7=^1-^4 Jedi Boot Camp^1* Do Not Type Kill * No Saber = No

Kill"

sets "Admin" "ElevenBravo"

sets "Admin E-Mail" "elevenbravo_11b@hotmail.com"

sets "Location" "Dallas, Tx"

sets "URL" "http://www.eulogyclan.org"

sets "Server Spec" "Dual OC3's | Dual P3 1 Gig's | 1 Gig Ram"

sets "Hours" "Evening"

sets "IRC" "#jediknight2 @ enterthegame.com"

sets "Clan" "-=IDS=-"

seta sv_privatePassword "****"

seta rconPassword "****"

seta g_needpass "0"

seta g_password ""

seta sv_maxclients "19"

seta sv_privateClients "3"

seta sv_maxPing "400"

seta g_inactivity "360"

seta com_HunkMegs "64"

seta sv_minclients "0"

seta sv_maxRate "10000"

seta sv_minPing "0"

seta g_forcerespawn "3"

seta sv_fps "85"

seta com_zoneMegs "16"

seta com_SoundMegs "16"

seta sv_reconnectlimit "3"

seta g_warmup "20"

seta sv_zombietime "30"

seta g_maxGameClients "18"

seta g_minGameClients "0"

//Advanced Saber Begin//

seta g_saberboxtracesize "2"

seta g_saberdmgvelocityscale "0"

seta g_saberdmgdelay_idle "350"

seta g_saberdmgdelay_wound "0"

seta g_saberghoul2collision "0"

seta g_sabertracesaberfirst "0"

seta _saberalwaysboxtrace "0"

//Advanced Saber End//

seta g_gravity "800"

seta g_speed "250"

seta g_timeouttospec "70"

seta g_dismember "2"

seta g_maxForceRank "7"

seta g_ForceRegenTime "200"

seta sv_timeout "300"

seta g_maxHolocronCarry "3"

seta g_weaponrespawn "5"

seta g_allowvote "1"

seta sv_allowDownload "0"

seta sv_allowAnonymous "0"

seta g_doWarmup "0"

seta sv_floodProtect "1"

seta g_friendlyfire "0"

seta g_teamForceBalance "0"

seta g_forceBasedTeams "0"

seta sv_pure "1"

seta g_synchronousclients "0"

seta g_teamAutoJoin "0"

seta g_privateDuel "1"

seta g_adaptrespawn "0"

seta g_smoothClients "0"

seta sv_padPackets "0"

seta g_saberLocking "1"

seta g_friendlySaber "0"

seta g_forcePowerDisable "0"

seta g_jediVmerc "0"

seta g_weaponDisable "65531" // Weapons Disabled

seta g_forcePowerDisable "0" // Force Power Disabled

seta dmflags "0"

seta sv_master5 ""

seta sv_master4 ""

seta sv_master3 "master0.gamespy.com"

seta sv_master2 "clanservers.net"

seta sv_master1 "masterjk2.ravensoft.com"

 

seta fraglimit "40"

seta timelimit "25"

seta capturelimit "10"

seta duel_fraglimit "1"

 

g_autoMapCycle "1"

map ffa_bespin

Link to comment
Share on other sites

i was hoping that i wasn't the only one experiencing this...

 

i did an upgrade to 4.6 release and built a new kernel, but haven't done the installworld or rebooted yet... waiting till someone is on site in the colo before i do this, just in case i have a PBKAC erorr on my part

 

that should happen this morning and am hoping it will fix this... doing the buildworld and compiling the kernel happened about the time that the cpu utils jumped...

 

will update after the reboot and upgrade

Link to comment
Share on other sites

well, it wasn't the kernel... and I would have figured that out faster if I had did the makeworld right... gotta remember to change the version setting in the standard-supfile

 

anyways... finally traced this down to a user error...

 

the servers admin had changed sv_fps from 20 to 85

 

thus quadrupling the load on the cpu... it jumped pings up by 20 to 30 on average from what i could tell... wasn't watching pings too closely though, was keeping an eye on my smoking cpu's :)

 

anyways, thanks to Matrix for posting replies in another topic that made me think to check that setting... i had combed the server.cfg a couple of times, but i overlooked that setting for some reason...

 

thanks again Matrix

wokka

Link to comment
Share on other sites

I'm running two JK2 servers on the same box. I'm using FreeBSD 4.5-P7. Both processes take up about 25% cpu each, with 25 people on both servers..

 

I have optimized my kernel, considerably.. If you are confident that you can recompile your FreeBSD kernel, it's a piece of cake to do.. The key is to comment out / remove drivers that you *know* you aren't going to need. Another thing is to increase the maxusers to 512. This ensures there are enough file descriptors to go around for everything (although, not really necessary for JK2).

 

Anyway, the key is to tone down your Kernel.. Remove unused drivers. I took my kernel from it's default 3mb, down to a little over 1mb. What a difference.

 

Here's a quick page that talks about recompiling your kernel, although, it's not the greatest. I think a google search would benefit you more..

 

http://www.defcon1.org/html/kernel_setup.html

 

Hope this helps.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...