If it is single threaded it will only use 1 core at a time.  It might use
all cores over time, but if you have 4 cores it will only use 25% of them at
most at any time.  Over time, the most CPU that can be used with 4 cores
would be 25%.

Just an FYI, srcds has 2 threads.  I thought it had 3, but
ps -eLf|grep srcds
only shows 2 threads, and 2 threads could use 2 cores at one time.

} -----Original Message-----
} From: [email protected] [mailto:hlds_linux-
} [email protected]] On Behalf Of kERPLUNK
} Sent: Wednesday, September 09, 2009 11:26 PM
} To: Half-Life dedicated Linux server mailing list; [email protected]
} Subject: Re: [hlds_linux] Very unstable FPS in hlds
} 
} sorry but its not like you said..
} hlds is single-threaded, thats true, but it use multiple cores at once
} time
} at least you use taskset to force to use only one core.
} 
} pentium 4 have hyperthreading, doesnt have 2 real core.. just a real core
} +
} "virtual" core (you will see 200% of cpu but its not very real)
} pentium d / pentium dual-core / core 2 duo have 2 cores (200% of real cpu)
} core 2 quad have 4 cores (400% of real cpu)
} core i7 have 4 real cores + 4 virtual cores (800% cpu but not very real)
} 
} about your fps problems, try running your server with:
} # chrt -p 5 ./hlds_run x x x x x x x
} 
} cheers!
} 
} kERPLUNK
} LocalStrike | Game Servers
} http://www.localstrike.com.ar/
} 
} ----- Original Message -----
} From: "Andrew Armstrong" <[email protected]>
} To: <[email protected]>; "'Half-Life dedicated Linux server mailing list'"
} <[email protected]>
} Sent: Thursday, September 10, 2009 12:05 AM
} Subject: Re: [hlds_linux] Very unstable FPS in hlds
} 
} 
} I have not read most of this thread, but you mentioned 23% CPU usage.
} 
} Remember that:
} * hlds is single-threaded. This means a single server can only use at most
} one CPU core at a time. If you have four cores on your processor, then the
} maximum amount of CPU power a single process will appear to use is 25%
} (100%
} of one core of the four available cores).
} * If you have 4 cores, then you are hitting maximum CPU already for this
} server (23% is pretty close to 25%!).
} 
} Cheers
} - Andrew
} 
} -----Original Message-----
} From: [email protected]
} [mailto:[email protected]] On Behalf Of Nevermore
} Sent: Thursday, 10 September 2009 12:49 PM
} To: Half-Life dedicated Linux server mailing list
} Subject: Re: [hlds_linux] Very unstable FPS in hlds
} 
} I talked with the datacenter.
} It is a Pentium 4 with hiperthreading.
} Sory about the confusion
} 
} Now, anybody have any clue about my fps problem?
} 
} El mi, 09-09-2009 a las 19:43 -0400, Nicholas Hastings escribi:
} > Yes, they were called Pentium D unless you're just talking about
} > hyperthreading
} >
} > Saul Rennison wrote:
} > > I'm sure dual-core P4's exist...
} > >
} > > Thanks,
} > > - Saul.
} > >
} > > On 9 Sep 2009, at 22:11, 1nsane <[email protected]> wrote:
} > >
} > >
} > >> Pentium D you mean?
} > >>
} > >> On Wed, Sep 9, 2009 at 3:19 PM, Rick Payton <[email protected]>
} > >> wrote:
} > >>
} > >>
} > >>> It might actually be a newer dual core P4, I got a 3.0GHz dual core
} > >>> model
} > >>> here at work ...
} > >>>
} > >>> --mauirixxx
} > >>>
} > >>> -----Original Message-----
} > >>> From: [email protected] [mailto:
} > >>> [email protected]] On Behalf Of ics
} > >>> Sent: Wednesday, September 09, 2009 8:41 AM
} > >>> To: Half-Life dedicated Linux server mailing list
} > >>> Subject: Re: [hlds_linux] Very unstable FPS in hlds
} > >>>
} > >>> That looks like P4 with Hyperthreading on it, not actual dual core
} > >>> cpu.
} > >>> What does cat /proc/cpuinfo say?
} > >>>
} > >>> -ics
} > >>>
} > >>> Dave Williams kirjoitti:
} > >>>
} > >>>> Now, i would suggest that your chip *could* be being identified
} > >>>>
} > >>> incorrectly. If this is the case it would be the kernel that is
} > >>> most likely
} > >>> at fault. Do you know if you have symmetric multi processing
} > >>> support enabled
} > >>> in your kernel? Also, what is the OS that you are using?
} > >>>
} > >>>> -----Original Message-----
} > >>>> From: [email protected] [mailto:
} > >>>>
} > >>> [email protected]] On Behalf Of Nevermore
} > >>>
} > >>>> Sent: 09 September 2009 17:08
} > >>>> To: Half-Life dedicated Linux server mailing list
} > >>>> Subject: Re: [hlds_linux] Very unstable FPS in hlds
} > >>>>
} > >>>> It's a dual core intel.
} > >>>>
} > >>>> dmesg says:
} > >>>> Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 03
} > >>>>
} > >>>> I am not sure about the model.
} > >>>>
} > >>>> Thank you
} > >>>>
} > >>>> El mi, 09-09-2009 a las 11:42 -0400, Eric Greer escribi:
} > >>>>
} > >>>>
} > >>>>> What CPU do you have in it?
} > >>>>>
} > >>>>> Eric
} > >>>>>
} > >>>>>
} > >>>>>
} > >>>>> On Wed, Sep 9, 2009 at 11:32 AM, Nevermore<[email protected]>
} > >>>>> wrote:
} > >>>>>
} > >>>>>
} > >>>>>> The topic about 1000fps servers made me take a look at my
} > >>>>>> server's fps.
} > >>>>>> I am seriously worried, because i have very unstable fps.
} > >>>>>>
} > >>>>>> Running HLDS with sys_ticrate 350, fps_max 0 and -pinbgoost 2:
} > >>>>>>
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 0.50  0.00  0.00       6     0  103.98       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 1.00  0.00  0.00       6     0  214.50       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 1.20  0.00  0.00       6     0  136.95       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 1.17  0.00  0.00       6     0  123.05       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 2.00  0.00  0.00       6     0  141.34       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 2.00  0.00  0.00       6     0  112.69       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 2.00  0.00  0.00       6     0  302.02       0
} > >>>>>>
} > >>>>>> Same configuration in a windows box:
} > >>>>>>
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 1.56  0.00  0.00    2651   978  250.84       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 1.56  0.00  0.00    2651   978  233.92       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 3.13  0.00  0.00    2651   978  252.14       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 3.13  0.00  0.00    2651   978  231.70       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 3.13  0.00  0.00    2651   978  238.05       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 3.13  0.00  0.00    2651   978  236.71       0
} > >>>>>> stats
} > >>>>>> CPU   In    Out   Uptime  Users   FPS    Players
} > >>>>>> 3.13  0.00  0.00    2651   978  240.79       0
} > >>>>>>
} > >>>>>> CPU usage of the box is at 23%, so this is not the problem.
} > >>>>>> I am using debian etch kernel 2.6.18-amd64
} > >>>>>> I tried recompiling for 1000hz and nothing changed.
} > >>>>>>
} > >>>>>> I dont want to change kernel version, because if i break the
} > >>>>>> system i
} > >>>>>> have not phisical access to the box to fix it.
} > >>>>>>
} > >>>>>> Thank you
} > >>>>>>
} > >>>>>>
} > >>>>>> _______________________________________________
} > >>>>>> 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
} > >>> _______________________________________________
} > >>> 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
} 
} 
} _______________________________________________
} 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