On Intel 3.2GHz + 2GB of memory (XP), numbers only at startup and on
de_dust:
srcds.exe -game cstrike +map de_dust +maxplayers 32 -heapsize xxxxxx
-heapsize 2097152 = Heap Used: error, "Failed to allocate minimum
requirement for game (48MB) - exhausted system memory
-heapsize 65535 = Heap Used: 27.56 MB (28899876 bytes)
-heapsize 32768 = Heap Used: 27.56 MB (28899876 bytes)
-heapsize 16384 = Heap Used: 27.56 MB (28899780 bytes) - borderline
starving
-heapsize 8192 = Heap Used: 20.61 MB (21609056 bytes) - starving
-heapsize 4096 = Heap Used: 16.17 MB (16953185 bytes) - starving
-heapsize 3072 = Heap Used: 15.67 MB (16426123 bytes) - starving
-heapsize 2570 = Heap Used: 15.03 MB (15761879 bytes) - starving
-heapsize 2304 = Heap Used: error, "Failed to allocate minimum
requirement for game (48MB)
-heapsize 2048 = Heap Used: error, "Failed to allocate minimum
requirement for game (48MB)
in all cases (that run) Hunk Memory Used: Total used memory: 1734176 Total
committed memory: 2621440
Basied on the above, the heapsize command appears to function as expected.
Best to leave the default alone (seems to be dynamic) and move on to other
issues :)
qUiCkSiLvEr
----- Original Message -----
From: "SeNtiX"
To: <[email protected]>
Sent: Thursday, May 11, 2006 7:00 AM
Subject: Re: [hlds_linux] Regarding Server Heapsize
meant "-heapsize x", my mistake, i'm sure i'm writing -heapsize while
starting the server, I just mistyped it in the reply
Kevin Ottalini wrote:
there is no command option "-hunkmegs" for SRCDS (are you thinking about
some other game?)
http://developer.valvesoftware.com/wiki/Command_Line_Options
a.. -heapsize <kilobytes> - Specifies the heapsize (in kilobyte) the game
will use.
----- Original Message -----
From: "SeNtiX" To: <[email protected]>
Sent: Thursday, May 11, 2006 6:21 AM
Subject: Re: [hlds_linux] Regarding Server Heapsize
My problem is though, when using "memory" I always see the same value of
committed memory, even though i change the "-hunkmegs x" at startup
Kevin Ottalini wrote:
Type "memory" into the console and it will tell you (at least win32
servers).
The start-up heap usages appears to vary slightly with the game type
and map
(probably with the number of players as well).
For me, with GUI panel, no bots:
-----------------------------------------------
DOD:S Heap Used: 58.10 MB (60919443 bytes) (for dod_anzio)
CS:S : Heap Used: 27.56 MB (28897793 bytes) (for de_dust)
HL2DM: Heap Used: 30.65 MB (32135217 bytes) (for dm_lockdown)
without GUI panel (-console), no bots:
------------------------------------------------------
DOD:S: Heap Used: 57.86 MB (60675031 bytes) (for dod_anzio)
CS:S: Heap Used: 27.33 MB (28656474 bytes) (for de_dust)
HL2DM: Heap Used: 30.42 MB (31892857 bytes) (for dm_lockdown)
(So the Win32 GUI uses just a little extra heap)
Testing with bots on CS:S only slightly increased usage (16 bots on
a 32
player server on de_dust):
CS:S Heap Used: 28.60 MB (29991687 bytes) (de_dust at startup with 16
bots)
Heap usage will vary from map to map (as expected). Heap usage on a
specific map at startup will not be the same if you return to the same
map
later. Running several other maps and then running de_dust again
later gave
me:
CS:S Heap Used: 35.22 MB (36935706 bytes) (de_dust after running
several
other maps - no bots)
Unless you are having map specific problems on your server you
should not
need to change the heapsize.
There is no evidence that changing the heapsize has any effect on
server
performance (as opposed to setting it wrong which might create any
number of
problems).
Here is what the report looks like (CS:S):
]memory
Heap Used:
27.56 MB (28897793 bytes)
Video Memory Used:
------------------
0.00 MB: total
Hunk Memory Used:
Total used memory: 2511872
Total committed memory: 2621440
qUiCkSiLvEr
----- Original Message -----
From: "SeNtiX"
To: <[email protected]>
Sent: Thursday, May 11, 2006 5:06 AM
Subject: [hlds_linux] Regarding Server Heapsize
I recently found out about the -heapsize command for the game, and I
need to ask a few questions regarding using the command in srcds
I am running a dedicated linux server
- Does it affect(increase) the server performance?
-What is the default heapsize?
-Is there anyway to check what's the current heapsize on the server?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux