[mohaa] Linux Performance

[-SF-]Shockwave shockwave at clanshortfuse.com
Fri Nov 15 00:43:59 EST 2002


Hello Eduardo,

I think you might be having trouble because of this line:

> seta sv_maxRate "100000" // bandwith allowed per client, in bytes/sec

If I remember correctly, this is the amount of bandwidth in bits/second for
each client that connects.  With your current setting and the 1.5Mbps cable
connection, the math gives you this:

1,500,000bps total bandwidth / 100,000bps for each player = 15 players
maximum

This would be the case under perfect conditions.  I know that your cable
company says you have a 1.5Mbps connection, however cable is normally shared
bandwidth which means your total throughput will vary based upon network
traffic in your area.  I have been running my server with sv_maxRate set to
9000 and have never had a problem.  Try adjusting this value in your
configuration file, restart your server, and see if it solves your problem.


Shockwave


----- Original Message -----
From: "Eduardo E. Silva" <esilva at silvex.com>
To: <mohaa at icculus.org>
Sent: Thursday, November 14, 2002 11:00 PM
Subject: [mohaa] Linux Performance


> I have been testing this 1.5M/1.5M cable modem on a Linux based server:
>
> Pentium III 800MHz
> 1 GIG of RAM
> Intel Pro 100s set to 10mbps half duplex, because of cable modem
limitation.
>
> RedHat 7.0 with Kernel 2.4.18 built for P3
>
> The server seems to be idle MOST of the times with CPU going from 70% to
80
> idle. THe network does a 50KB per second transmitions and 30KB when 16
players
> are blasting away.
>
> The problem lies on the pings, once I hit 0ver 10 players the pings go
over
> 300+ for everybody. I am on a different network behind the server and my
pings
> go from 1 to 15!.
>
> FROM TOP
> 110 processes: 108 sleeping, 1 running, 1 zombie, 0 stopped
> CPU states:  1.7% user,  2.9% system,  7.2% nice, 88.0% idle
> Mem:  1028748K av,  954040K used,   74708K free,       0K shrd,   38628K
buff
> Swap: 1028120K av,    5552K used, 1022568K free                  346972K
cached
>
>   PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
>  1395 root      18  10 83328  81M  2400 S N   7.0  8.0   6:26 xterm
> 12643 root      18  10  1068 1068   828 R N   1.9  0.1   0:01 top
>  9132 mohaa      9   0 76228  74M  2696 S     1.7  7.3  39:22 mohaa_lnxded
>     1 root       8   0   536  536   468 S     0.0  0.0   0:04 init
>     2 root       9   0     0    0     0 SW    0.0  0.0   0:00 keventd
>     3 root      19  19     0    0     0 SWN   0.0  0.0   0:00
ksoftirqd_CPU0
>     4 root       9   0     0    0     0 SW    0.0  0.0   0:03 kswapd
>     5 root       9   0     0    0     0 SW    0.0  0.0   0:00 bdflush
>     6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
>     7 root       9   0     0    0     0 SW    0.0  0.0   0:00 scsi_eh_0
>     8 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
>     9 root      -1 -20     0    0     0 SW<   0.0  0.0   0:00 mdrecoveryd
>   446 root       9   0   600  600   500 S     0.0  0.0   0:01 syslogd
>   456 root       9   0  1344 1344   464 S     0.0  0.1   0:00 klogd
>   471 rpc        9   0   580  580   496 S     0.0  0.0   0:00 portmap
>   531 nobody     9   0   728  728   612 S     0.0  0.0   0:00 identd
>   535 nobody     9   0   728  728   612 S     0.0  0.0   0:00 identd
>
>
>
> What could posibbly be the problem??
>
> This is my server.cfg
> seta sv_hostname "[RGA] Clan OMAHA Only! No Dialups! T1"
> sets Admin "silvex"
> seta g_motd "Welcome to Silvex Linux base MOH:AA Server\nGet maps at
> http://www.planetotb.com"
> sets URL ""
> sets Connection "FULL T1"
>
> set fs_outputdir /var/log/mohaa/
> set sv_chatter "1"
> set Logfile "2"
> set logfilename mohaa_log.txt
> seta developer "0"
>
> seta sv_maxclients "20"
> set g_gametype "4"
> seta sv_minPing "1"
> seta sv_maxPing "300"
> seta g_teamdamage "0"
> seta sv_gamespy "1"
> seta sv_allowDownload "0"
>
> seta g_maxintermission "15"
> seta g_forcerespawn "1"
> seta g_dropclips "2"
> seta g_droppeditemlife "60"
> seta sv_crouchspeedmult "0.6"
> seta sv_dmspeedmult "1.1"
> seta sv_walkspeed "150"
> seta sv_runspeed "250"
> seta g_allowjointime "30"
> seta g_spectate_allow_full_chat "1" // this turn on/off chat mode for spec
mode.
> seta cheats "0"
>
> set g_inactiveSpectate "60"
> set g_inactiveKick "3600"
> seta timelimit "15"
> seta fraglimit "0"
>
> seta net_noipx 1
> seta com_hunkMegs "128" // this is some performance stuff
> seta com_zoneMegs "64" // this is some performance stuff
>
> seta sv_gamespy "2" // Change this to "0" if you don't want to advertise
on
> the internet
> seta sv_master1 "mohmaster.2015.com" // master server
> seta sv_master2 "master.gamespy.com" // master server
>
> seta rconpassword "XXX" // rcon password
> seta g_password "xxx" // game password
> seta sv_privatePassword "xxx" // password for private slots
>
> seta sv_allowDownload "1" // set to 0 to disallow clients to download maps
e.a.
> seta sv_reconnectlimit "128" // how many times a player can reconnect
before
> he's refused
> seta sv_zombietime "3" // How long to keep connection when client does not
> reposnd
> seta g_allowVote "0" // Allow clients to vote for new maps
> seta g_voteduration "120" // How long a vote takes
> seta g_respawnInvulnerability "7" // how many seconds a player is
invulnerable
> after respawning
> seta username "This Idiot doesn't have name!" // name a player gets if he
> doesn't supply one himself
> seta sv_timeout "100" // ??
>
> seta sv_floodProtect "1" // client spam protection??
> seta g_voiceFloodCount 20 // client spam protection??
> seta g_voiceFloodPenalty 120 // client spam protection??
> seta pmove_fixed "0" // ??
> seta pmove_msec "16" // ??
> seta sv_fps "20" // minimal desired frame rate?
> seta sv_maxRate "100000" // bandwith allowed per client, in bytes/sec
> seta sv_minRate "2000" // bandwith allowed per client, in bytes/sec
> set cl_packetdup "3"
>
> seta g_filterBan "1" // enable ban feature
> exec banned.cfg // file holding IP bans
>
> seta sv_maplist "obj/obj_team3"
> map obj/obj_team3
>
> say " Silvex Linux MOH:AA Server ready!"
>
> heartbeat
>
>
> Ed Silva
> Silvex Consulting Inc.
> (714) 504-6870 Cell
>
>
>





More information about the Mohaa mailing list