weird but if I use top to set the -20 prio on an hlds process it only sticks
for less than a min then reverts back. This is on a gentoo system.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel
Sent: Wednesday, November 24, 2004 8:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [hlds_linux] OS optimizations for *nix for hlds servers



TCP tweaks won't help much :)

This *can* help with consistency of gameplay:
games:~$ cat /etc/cron.d/games-halflife2
# halflife 2 crons

# game servers are all that matter
*/10 * * * *    root    ps auxwww | grep srcds_i486 | grep -v grep | awk
{'print $2'} | xargs renice -20 -p > /dev/null

# restart servers for update purposes at 8am
5 8 * * *    halflife2    ps auxwww | grep srcds | grep -v grep | awk
{'print $2'} | xargs kill -9 > /dev/null

Similiar for hlds just replace srcds with hlds :)

Using 2.6 kernel with a manually set lower HZ value (like 50 instead of
1000) can also give you performance gains.

Tank


On Mon, 22 Nov 2004, Matt Heler wrote:

> But the following in your sysctl.conf on Linux and then issues a sysctl
> -p /etc/sysctl.cnf
>
> net.ipv4.tcp_syncookies = 0
> # change syncookies to 1 if you will use them
> net.ipv4.tcp_ecn = 0
> net.core.rmem_max = 8388608
> net.core.rmem_default = 262143
> net.core.wmem_max = 8388608
> net.core.wmem_default = 262143
> net.ipv4.tcp_rmem = 4096 87380 4194304
> net.ipv4.tcp_wmem = 4096 87380 4194304
> net.ipv4.tcp_max_syn_backlog = 16384
> net.ipv4.tcp_fin_timeout = 15
> net.ipv4.tcp_tw_reuse = 1
> net.ipv4.tcp_tw_recycle = 1
> net.ipv4.ip_local_port_range = 1024 65535
>
> You can also look into using hdparm to turn on ultra dma and writeback
cache
> support on your ide drive , if you use an ide drive. An example is as
> follows ::
>
> hdparm -W1 -c1 -M254 -d1 /dev/hda
>
> matt
>
>
> On Monday 22 November 2004 7:17 pm, [EMAIL PROTECTED] wrote:
>> Anyone have any optimizations/tweaks to the os/network that they want to
>> share? I thought it might be beneficial to start a thread on it so we
could
>> get input from everyone to see what works / doesnt work.
>>
>> --
>> Dedicated Servers Available
>> East Coast Only - 1200gb BW
>> p4 thru xeon - AIM: gotgameservers
>>
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux





_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to