MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
2000fps #sourcekernel
2000fps #sourcekernel
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
Code:
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
int main() {
struct timeval t0,t1;
int usec;
gettimeofday(&t0,NULL);
usleep(250);
gettimeofday(&t1,NULL);
usec = t1.tv_usec - t0.tv_usec + 1000000*(t1.tv_sec - t0.tv_sec);
printf("usecs: %d\n",usec);
}
On my system (HZ=100 and dynticks) I get values slightly above 250 (e.g. 258) usecs, which proves that usleep does not depend on HZ - if you configure your kernel correctly.
Can someone test my howto on wiki.fragaholics.de if it works with HZ=100 and dynticks? It could make thinks a little better, because you have fewer interrupts...
Posts: 116
Threads: 16
Joined: Sep 2007
Reputation:
0
01-18-2009, 07:45 AM
(This post was last modified: 01-18-2009, 08:12 AM by drazah .)
I am trying it now with the tutorial and dyn tics and 100hz, i shall edit the post once done.
EDIT: The server fps didn't remain as stable.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
drazah Wrote: EDIT: The server fps didn't remain as stable.
can you post the result of a fps-meter measurement?
Posts: 32
Threads: 3
Joined: Jun 2008
Reputation:
0
BehaartesEtwas Wrote:
Code:
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
int main() {
struct timeval t0,t1;
int usec;
gettimeofday(&t0,NULL);
usleep(250);
gettimeofday(&t1,NULL);
usec = t1.tv_usec - t0.tv_usec + 1000000*(t1.tv_sec - t0.tv_sec);
printf("usecs: %d\n",usec);
}
On my system (HZ=100 and dynticks) I get values slightly above 250 (e.g. 258) usecs, which proves that usleep does not depend on HZ - if you configure your kernel correctly.
Can someone test my howto on wiki.fragaholics.de if it works with HZ=100 and dynticks? It could make thinks a little better, because you have fewer interrupts...
so what exactly does this code do? it makes it so you can go to 1000FPS on a 100hz kernel?
What is the benefit of using a 100hz kernel with this code compared to a 1000hz kernel?
Posts: 116
Threads: 16
Joined: Sep 2007
Reputation:
0
iliketohostservers Wrote: BehaartesEtwas Wrote:
Code:
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
int main() {
struct timeval t0,t1;
int usec;
gettimeofday(&t0,NULL);
usleep(250);
gettimeofday(&t1,NULL);
usec = t1.tv_usec - t0.tv_usec + 1000000*(t1.tv_sec - t0.tv_sec);
printf("usecs: %d\n",usec);
}
On my system (HZ=100 and dynticks) I get values slightly above 250 (e.g. 258) usecs, which proves that usleep does not depend on HZ - if you configure your kernel correctly.
Can someone test my howto on wiki.fragaholics.de if it works with HZ=100 and dynticks? It could make thinks a little better, because you have fewer interrupts...
so what exactly does this code do? it makes it so you can go to 1000FPS on a 100hz kernel?
What is the benefit of using a 100hz kernel with this code compared to a 1000hz kernel?
That "code" is just to check the usleep time. It has nothing to do with getting 1000FPS from the kernel.
Posts: 32
Threads: 3
Joined: Jun 2008
Reputation:
0
oh, how do you run the code? put it into a .sh file?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
no. put it into a c-file (e.g. test.c), then run "gcc test.c -o test" and "./test".
Posts: 32
Threads: 3
Joined: Jun 2008
Reputation:
0
Im getting 260, good or bad? I believe my kernels 1000hz
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
iliketohostservers Wrote: Im getting 260, good or bad? I believe my kernels 1000hz
in theory, you should get 250, as the usleep should sleep for 250 usecs. in reality you will not achieve this, especially if you dont give realtime scheduling and priority to the process, so 260 is pretty normal (i got 258 most of the time).
it should only demonstrate that usleep does not depend on kernel HZ. if it would, you could not get below 1000 usecs on a HZ=1000 kernel.
its
not meant to be some kind of benchmark ^^
Posts: 24
Threads: 6
Joined: Sep 2008
Reputation:
0
Hey BehaartesEtwas, I've sent you a PM. Would it be possible you could help me out?
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
Quote: Do not ask technical questions via PM!
Posts: 8
Threads: 0
Joined: Jan 2009
Reputation:
0
Hey!
I followed your kernel and I am trying to run CS 1.6 server. The server seems to be stable with 0 players, but when players join, like more than 6 (around 10) the fps starts to drop. It goes from 500-1000 every like 5 seconds.
I did not follow the priority part of your guide, since I start the server with nice already..
I am using Intel 5100 motherboard northbridge, and dual quad-core xeons at 2.33 ghz.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
Dario Wrote: I did not follow the priority part of your guide, since I start the server with nice already..
that's not the same and will probably the cause....
Posts: 8
Threads: 0
Joined: Jan 2009
Reputation:
0
01-21-2009, 01:13 AM
(This post was last modified: 01-21-2009, 01:14 AM by Dario .)
How many of those idlers should I run? And on which core? (I have an 8-core system).
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
Quote: Running only one idler even on systems with 2 or more cores should be enough (also if you run multiple game servers).
I generally don't recommend binding anything to specific cores, neither the game servers nor the idler.
Users browsing this thread: