Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
Yo.
I have searched but i didn't find any useful info other than that the srcds binaries is 32 bit. So, what's best? Srcds on 32bit or 64bit Debian?
Posts: 737
Threads: 26
Joined: Jan 2009
Reputation:
6
Only difference is how many servers you can host.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
64 bit systems seem to be better at least for srcds, while for hlds you might still be better off with an 32 bit system. This is not actually related to the address space but probably due to other differences in the kernel.
Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
Are there any "reasons" why 64 bit is better for SRCDS?
Posts: 226
Threads: 2
Joined: Aug 2009
Reputation:
1
There are none. The syscalls are all 32bit, since srcds is 32bit. There may be subtle differences in the translation code in the kernel, but nothing that will make it 'better' or 'worse'
Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
Alright, thanks for the answers!
Posts: 504
Threads: 9
Joined: Oct 2009
Reputation:
3
I would look at the ram for your question Ram >= 4Gb -> 64bit and Ram <= 4GB -> 32/64bit
If you are running Webspace with php too, i would go for 32bit since php uses more ram when it is under 64bit.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
In my experience, srcds doesn't run so well on 32 bit systems. I checked this recently again, 64 bit was really superiour. I cannot explain why. But if you look at the menuconfig mask and compare 32 bit and 64 bit kernels you see many differences. That implicates more than only some subtile differences... If in doubt, try both.
Btw: the limit is not 4 GB of RAM for 32 bit, but 3 GB. The kernel uses 1 GB of address space for other purposes. And actually also 32 bit systems can use even more than 4 GB RAM (that's called high memory support IIRC), but that works more like swapping with RAM instead of disk space. This is not well suited for game servers!
Question: Is there any reason not to use 64 bit? (even if you have that php issue, you could simply use 32 bit php on a 64 bit system...)
Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
Alright, I'm currently using the 32 bit version of debian.
It uses aprox 32 mb ram idle and 400mb when srcds is idling.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
err... a double is always 8 bytes, at least on gcc. and long double raised from 12 to 16 bits, but is so rarely used that you can probably forget about this. maybe the longer pointers increase the memory usage by a few percent, but if you have 4 GB RAM or more this will be strongly overcompensated by the additional RAM...
No, I don't think, it's a good idea to stick with an old technology longer than needed... It's only a question of time until the first distributions will only support 64 bit.
Posts: 882
Threads: 43
Joined: Dec 2010
Reputation:
13
Ah, i remember when i had my first computer with Windows 98 or something.
Then XP came out, and that screwed my poor machine over...
So yea, i wouldn't use a old technology either.