SRCDS Steam group


Compiling Kernel for 500 fps
#1
I have a Q6600 @ 2.4Ghz with 8GB RAM.
I have tried to get 500 fps out of it for days now, but the best I can do is get it to hover around 485 fps.
{this is what I get from stats:
stats
CPU In Out Uptime Users FPS Players
9.80 0.00 0.00 4 0 483.56 0
}

I've read as many guides and checklists as I can find, but I can't seem to find the magic combination to make it hit 500 fps. I've tried 32 bit and 64 bit.

Does anyone have a Centos checklist?
I tried this one to no avail:
http://forums.steampowered.com/forums/showthread.php?s=d40bc25584c94f2063cf9b50d69b003c&t=486424

I've been using CentOS 5.1, but I'm willing to try something else because this is quite bloated. What about Gentoo?
Is there any particular distro that makes it easier?


all ideas graciously accepted...
Reply
#2
did you change the param.h and jiffies.h files? also what kernel are you using?
Reply
#3
running kernel 2.6.25.4

I changed the param.h and jiffie.h files just as the author suggested...

I edited the ./include/asm-x86/param.h ... Hope that was the right one
(because that seemed to be the most logical...and there was no ./asm-i386/param.h )
it looks like this now:
#ifndef _ASM_X86_PARAM_H
#define _ASM_X86_PARAM_H
#ifdef __KERNEL__
# define HZ CONFIG_HZ /* Internal kernel timer frequency */
# define USER_HZ 1000 /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#endif
#ifndef HZ
#define HZ 100
#endif
#define EXEC_PAGESIZE 4096
#ifndef NOGROUP
#define NOGROUP (-1)
#endif
#define MAXHOSTNAMELEN 64 /* max length of hostname */
#endif /* _ASM_X86_PARAM_H */
Reply
#4
then you set the kernel to 1000hz in the config as well (either the text gui or the long options that scroll by)?
Reply
#5
I set 1000 Hz in the 'make menuconfig' gui
I think it's under processors...
but yes, I did.

I'm rather frustrated at this point...I didn't think it should be this hard...
Reply
#6
lvnv Wrote:I've been using CentOS 5.1, but I'm willing to try something else because this is quite bloated. What about Gentoo?
Is there any particular distro that makes it easier?

No distro is better than the other when it comes to compiling the kernel.

For me it's all the same what the distro is as long as it's got package manager which can download all the dependencies automatically, or then it's slackware which assumes the user knows what he's doing. People get enthuastic about distros, so asking which one would be better is usually bad question. You'll get 10 different answers.

Try to set the process affinity for one core only by "taskset -c 0 ./srcds_run -game ...". This FPS question is also answered million times and every time many users tell you to install "1000 tick kernel", but I don't think many of the people giving the instructions have even installed a new kernel by themselves. They just repeat what they've seen in the 'net.

I've seen that when I set "fps_max 0", I get FPS around 600-900. Then if I set "fps_max 500", I get 350-500.

Nephyrin Zey has also investigated very well about the FPS thing. He's tampered with sleep() function and has achieved FPS over 30000 (yes 30000!):

Nephyrin Zey: "Note the CPU usage. This means that the server isn't sleeping more when it's overshooting its FPS goal, nor is it staying awake longer when its not quite getting there." (you need to register on the mailing list before you can read it).
Reply
#7
the taskset helped alot. It consistently gets me above 490 now.

What is this sleep() call that he refers to? Is that a Steam function?
Reply
#8
ok, so I recompiled at 64 bit and took out as much bloat as I thought was possible.
Getting 494-495 fps, but still can't get 500 fps.

Is this the best I should expect to ever get?
Reply
#9
That's about as good as it gets unfortunately, it will vary by system a little and the only difference maker I've seen is the chipset being used.

(Another identical thread: http://forums.srcds.com/viewtopic/7398)
Game Server Administration Services
Linux & Windows performance specialist.
http://www.viGeek.net
Reply
#10
Lol No offense but your doing this much work over 15 fps...lol
you wont notice a difference between 485 and 500 fps. 500 is just the maximum, no server will ever be locked at 500 fps, its impossible to 'lock' the fps at a specific number it is ALWAYS fluctuating
Reply
#11
thats probably as close as your gonna get
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)