Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
kkith wrote: m0gely wrote: Read my posts again. I had a 1.5 server running this same map and it did *not* happen. Hello? Also what the heck kind of services do you run that operate by consuming all available memory on a box when they shouldn't and thats considered normal? BTW 93 hours (3 days) and up to 351M now. Still climbing. stats CPU InOut Uptime Users FPSPlayers 0.00 0.00 0.005621 3356 99.95 0 I did read your idiot post. Hello!!! You ARENT RUNNING 1.5!!! I'm trying to suggest ways of tracking down the problem yet you seem to act like a little bitch about the whole thing. And who the hell cares about your stats! You're bitchin about memory...post that instead! Thats right, your argument is weak, so we will pull out the insults... *yawn* I take it you cant read. Look, he says quite clearly states his memory 351M, the stats shows uptime and no users... add them to whats hes put in his other posts, and the problem is very apparent. So take his advice, and go and read his posts again, because everyone else seemed to understand and see his problem. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
So tell me then, do you know for sure if it is an allocation problem or is it definitely a memory leak? if so, wher e is the leak coming from? how can you garnish all this from just seeing memory usage? do you know a memory leak is ? do you know how linux allocates memory from the kernel? what exactly do you understand? Jeremy Brooking wrote: add them to whats hes put in his other posts, and the problem is very apparent. So take his advice, and go and read his posts again, because everyone else seemed to understand and see his problem. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
Here is a suggestion for you Jeremy Brooking: read this - http://www.oreilly.com/catalog/linuxkernel/ i have, it helps. and it might help you too. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
Jeremy Brooking wrote: CS1.6 _NO_ metamod, nothing other than a standard install, 1 32player server, 1gig of ram, and within 3 days HLDS gets to the point it crashes due to being out of memory. Ahh yes...finally...someone who has completely used up memory. Knowing this, the coders for hlds has a better clue of finding the needle in the haystack. Have you debugged code before? Knowing the behavior of memory over periods of time will help track down where these bugs are. Especially in a code base as large as hlds. Look, to help track down this problem, the rate of memory usage has to be tracked. A lot finer than a day's resolution. Bytes per minute used would probably be good enough to help pinpoint where in the allocation this is happening. As this will be telling the coders WHAT (probably some sort of struct) is being allocated that is causing the memory leak? Follow so far? Regardless, a post earlier in this thread indicated that it MIGHT not be in the server binary itself, but in the glibc library. If that is the case, we should be barking up GNU's alley. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
On both this server, and another dod server (also 30 players, but only custom maps), the exact. same. copy. of metamod/amxx is running. The custom maps server does not have these memory issues. The regular maps one does. Next witch hunt please. - Original Message - From: kkith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 29, 2004 9:17 AM Subject: Re: [hlds_linux] Memory Leak - Part III - *No Metamod* Are you running metamod or anything else? Glenn Shannon wrote: I have a dod server. Fedora Core 2 Linux, After an uptime of 112 hours, memory usage/cpu usage at idle (0 players) is: CPU: 0.0% Memory usage 811MB Stop/restart the server, same map, still 0 players. CPU 0.0% Memory usage 64MB GLIBC version: 2.3.3 ___ 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
RE: [hlds_linux] Memory Leak - Part III - *No Metamod*
Cron restart your server every morning. Doesn't fix it but it is a fix for it. (If you get my meaning) Regards Richy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of m0gely Sent: 26 August 2004 22:18 To: [EMAIL PROTECTED] Subject: [hlds_linux] Memory Leak - Part III - *No Metamod* It's been a couple months since I last posted and now I have ran my server without even Metamod. While the memory usage appears to be a little better it's still not right. To recap: CS 1.5 server Iceworld 24/7 - 12 player Mods: MM 1.17, AMX 0.9.8a, WebMod .47, HLG 1.52 Mem usage: 310M after *90+ days* of uptime (from 65M at startup) Player connections: 85k+ The new info: CS 1.6 server Iceworld 24/7 - 12 player Mods: NONE. No metamod, NOTHING Mem usage: 164M after *24 hours* (from 65M at startup) Player connections: 1075 My server: AMD MP 2800+ (2) FreeBSD 4.9 I would like to know why a default hlds/1.6 has gained half the memory usage of a modded hlds/1.5 in roughly 1/90th of the time. Also, no the memory usage keeps rising it doesn't stop. So, as I said before, it's *not* AMX, and it's *not* Metamod. My 1.5 server after a week would be up to 75M *maybe*. This tells me there is a memory leak. -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ 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
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
I have the same problems with my 1.6 servers. However, I have not ran the server without metamod. Are we sure it is a memory leak? Is it possible that hlds does allocate memory and uses it as some sort of cache? I would suggest, running hlds without metamod until you run out of main memory and see what happens. IF the case is that the allocated memory is being used for caching purposes (like map information), it shouldn't be a problem IF the coders of hlds ensure that the game engine code stays in main memory. A way to confirm this would be to allow hlds to use up all your memory and let it start hitting swap. Once you know it is hitting swap, check to see what the latency becomes for all players in the server, if the server keeps the same latency, then it isn't a problem (until you run out of swap) for game play. But, if everyone's ping skyrockets once your hitting the swap partition, then that means the the net code/engine code and/or the engine/net code data is being swapped, which is definitely a memory leak and should be fixed. Currently the machine running my servers have: total used free shared buffers cached Mem: 514784 51164031440 8256 95732 -/+ buffers/cache: 407652107132 Swap: 987988 170836817152 with an uptime of... [EMAIL PROTECTED]:~$ uptime 12:33:34 up 4 days, 3:55, 1 user, load average: 0.68, 0.70, 0.64 I have a 26 and 21 player server. And the only users processes on the machine are hlds. I played last night on a full server with memory at that usage level and experienced no problems. I am using metamod, amx 0.9.9, hlguard, and headshot mod m0gely wrote: CS 1.6 server Iceworld 24/7 - 12 player Mods: NONE. No metamod, NOTHING Mem usage: 164M after *24 hours* (from 65M at startup) Player connections: 1075 ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
richy wrote: Cron restart your server every morning. Doesn't fix it but it is a fix for it. (If you get my meaning) You think i don't do this now? C'mon think a little harder than this. The purpose of this email is so I *don't* have to do this anymore. -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
kkith wrote: I would suggest, running hlds without metamod until you run out of main memory and see what happens. What would be the purpose in this? It's eating memory it should not. IF the case is that the allocated memory is being used for caching purposes (like map information) First of all its a 1 map server. Second when this same server was 1.5 this did not occur. CS 1.6 server Iceworld 24/7 - 12 player Mods: NONE. No metamod, NOTHING Mem usage: 164M after *24 hours* (from 65M at startup) Player connections: 1075 Now using 222M of memory. Remember, only 1 map! stats CPU InOut Uptime Users FPSPlayers 0.00 12.98 14.802774 1778 100.01 5 This *same* server running 1.5 did *not* do this. -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
Both CS 1.6 and CZ exhibit this behavior. I've seen a CZ server, completely stock, use over 300megs in under 24 hours. It doesn't always happen so quickly, but the more active a server is, the quicker it occurs. It has nothing to do with how many maps in the cycle or even which maps, it always occurs overtime. I would suspect that the server is either, A, not deallocating player slots correctly when players disconnect, or B, not deallocating maps correctly when mapchange occurs. Since it seems to occur more often when a server is active, I'd suspect A. richy wrote: Cron restart your server every morning. Doesn't fix it but it is a fix for it. (If you get my meaning) You think i don't do this now? C'mon think a little harder than this. The purpose of this email is so I *don't* have to do this anymore. -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ 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
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
On Fri, 27 Aug 2004, m0gely wrote: kkith wrote: I would suggest, running hlds without metamod until you run out of main memory and see what happens. What would be the purpose in this? It's eating memory it should not. IF the case is that the allocated memory is being used for caching purposes (like map information) First of all its a 1 map server. Second when this same server was 1.5 this did not occur. CS 1.6 server Iceworld 24/7 - 12 player Mods: NONE. No metamod, NOTHING Mem usage: 164M after *24 hours* (from 65M at startup) Player connections: 1075 Now using 222M of memory. Remember, only 1 map! stats CPU InOut Uptime Users FPSPlayers 0.00 12.98 14.802774 1778 100.01 5 This *same* server running 1.5 did *not* do this. m0gley, as you probably know I run all my servers on FreeBSD as you are... When running a no metamod server I do not get any memory leak. I run linux_base-8 on all servers... FreeBSD 4.X-STABLE... it can run for month without it eating memory... it sits at aprox 80-90MB after aprox two weeks of uptime... On the servers that run metamod and amx I get memoryleaks... I used to run out of memory within 2-3 days and hlds crashes. sometimes it takes sshd with it. Those system runs 5.2.1-RELEASE... today it has eaten aprox 300MB. I now restart hlds 05.00 every day. I dont know if its hlds or if it has something todo with 5.2.1... or if it is metamod... I however guess it has something todo with how metamod and hlds operate together... I did not see the memory leak before february... and I still use the same metamod and amx version since aprox a year back... I will soon move to amxx 0.2... I just have to rewrite my plugins first... /Bjorn -- There is a cow on my lawn... brb. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
kama wrote: m0gley, as you probably know I run all my servers on FreeBSD as you are... When running a no metamod server I do not get any memory leak. I run linux_base-8 on all servers... FreeBSD 4.X-STABLE... it can run for month without it eating memory... it sits at aprox 80-90MB after aprox two weeks of uptime... Same as me. I don't know what to say. Since my last email (5 1/2 hours ago) my server has consumed another 32M of memory. This has been a problem for me from the beginning w/ the 1.1.2.x binary. Other people have it. People that don't seem to be the exception. In my own testing with AMX enabled or disabled there was no difference in the memory usage. It rose regardless. This time it possibly seems a little slower without Metamod, but it's there. This just sucks. How about it Alfred or someone? Do you even care to comment? I'm not the only one here with this problem. I am willing to do more to try and solve this if someone would just give me some direction. I will soon move to amxx 0.2... I just have to rewrite my plugins first... According to their chart, this shouldn't be be necessary. Oops, did I say that out loud? -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
RE: [hlds_linux] Memory Leak - Part III - *No Metamod*
Try different GLIBC versions to see how that effects the speed of the leak. - Alfred Original Message From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of m0gely Sent: Friday, August 27, 2004 5:19 PM To: [EMAIL PROTECTED] Subject: Re: [hlds_linux] Memory Leak - Part III - *No Metamod* kama wrote: m0gley, as you probably know I run all my servers on FreeBSD as you are... When running a no metamod server I do not get any memory leak. I run linux_base-8 on all servers... FreeBSD 4.X-STABLE... it can run for month without it eating memory... it sits at aprox 80-90MB after aprox two weeks of uptime... Same as me. I don't know what to say. Since my last email (5 1/2 hours ago) my server has consumed another 32M of memory. This has been a problem for me from the beginning w/ the 1.1.2.x binary. Other people have it. People that don't seem to be the exception. In my own testing with AMX enabled or disabled there was no difference in the memory usage. It rose regardless. This time it possibly seems a little slower without Metamod, but it's there. This just sucks. How about it Alfred or someone? Do you even care to comment? I'm not the only one here with this problem. I am willing to do more to try and solve this if someone would just give me some direction. I will soon move to amxx 0.2... I just have to rewrite my plugins first... According to their chart, this shouldn't be be necessary. Oops, did I say that out loud? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux
Re: [hlds_linux] Memory Leak - Part III - *No Metamod*
Alfred Reynolds wrote: Try different GLIBC versions to see how that effects the speed of the leak. Unless someone would like to correct me (kama?) this isn't something that can easily be done. The linux_base-8 is the only Linux compat that comes with glibc 2.3 (mine is 2.3.2). The other linux base options (debian, base 6 7 come with 2.2 or 2.1) are too old to support some of the mods I run. There are not different version of 2.3.x. -- - m0gely http://quake2.telestream.com/ Q2 | Q3A | Counter-strike ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux