Author Topic: Hunk Megs  (Read 5144 times)

Overdose

  • Posts: 396
  • Turrets: +52/-47
Hunk Megs
« on: October 06, 2008, 10:08:54 pm »
Hey, I recently installed a new firewall program for my computer - Comodo Firewall Pro on WinXP SP3 - but after everything was said and done when I started up Tremulous I got the "unable to allocate 1024 hunkmegs" error thing. I have 4GB of RAM, I'm still using a 32-bit OS but according to the Task Manager and a memory program I got from Corsair I still have over 2GB available (nearly 80% usable left). The weird thing is that I can run Tremulous and a multi-tabbed Firefox at the same time; Firefox uses more memory than the firewall does. So my question is - why can Trem all of a sudden not use that much memory when I clearly have plenty? Also, I just spent 20 minutes reading all other memory related threads/posts on the forums. As of right now I have hunkmegs set at 768 which works fine.

Thanks.

WinXP SP3
4GB DDR2 - 2.5GB seen due to 32-bit OS limitation
com_hunkmegs 1024
com_zonemegs 32
com_soundmegs 32
Chocolate Milk.

Hendrich

  • Posts: 898
  • Turrets: +168/-149
    • TremCommands
Re: Hunk Megs
« Reply #1 on: October 06, 2008, 10:20:44 pm »
Quote
As of right now I have hunkmegs set at 768 which works fine.

So does that mean Tremulous runs fine now, amd if so whats the problem with that?

Quote
4GB DDR2

4GB? Do you use Memory sticks on your computer, or is the RAM all built-in?

Syntac

  • Posts: 841
  • Turrets: +118/-104
    • Syntac's Stuff
Re: Hunk Megs
« Reply #2 on: October 06, 2008, 10:22:19 pm »
@YourMama: Well, judging from the data you posted, you tried to give slightly more than a gigabyte to Tremulous. Could it be that Windows is unable to allocate the extra memory (due to the aforesaid 32-bit OS limitation)?

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Hunk Megs
« Reply #3 on: October 06, 2008, 10:50:10 pm »
Then it wouldn't have run before the firewall was installed. Maybe the new firewall loads a DLL into the tremulous process' address space, so that the 2 GB available to the process are just split in the middle. Then you can't allocate a continuous chunk of 1 GB virtual memory even if enough physical memory is available.

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: Hunk Megs
« Reply #4 on: October 06, 2008, 11:00:28 pm »
@ Hendrich - Yes it's all built-in, I just finished building this computer and it's the fastest thing I've ever used. I can't use memory sticks in XP, only Vista has that feature.

@ Syntac - All the programs I used said that there was over 2GB left, so why wouldn't using 1GB of that work?

@ gimhael - That makes sense, but I don't know how to prove or disprove it.
Chocolate Milk.

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Hunk Megs
« Reply #5 on: October 06, 2008, 11:30:42 pm »
Try a value slightly less than 1 Gig f.e. 980 MB or 930 MB (concerning the memory already in use by com_zonemegs and com_soundmegs).

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: Hunk Megs
« Reply #6 on: October 07, 2008, 12:26:34 am »
I did what you suggested Bissig and I got some interesting results....I can use any value up to 1023 but at 1024 or higher I get the error. I find that very, very weird...For the time being I left it at 960 (1024-64).
Chocolate Milk.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Hunk Megs
« Reply #7 on: October 07, 2008, 12:27:05 am »
there is no reason to make trem use any more memory than the default. it doesn't make a difference until trem runs out, at which point it crashes, but no maps/mods use that much memory, because they would make the majority of all clients crash.
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Hunk Megs
« Reply #8 on: October 07, 2008, 12:51:26 am »
Well, Trem repeatedly crashed on my system loading the map "Veddak" before I turned on a swap file. I have one Gig of RAM. So, is that related to how much memory Tremulous uses or not? I had hunkmeg set to something like 600 MB. It seems to use what you throw at it and my guess is that the 1024 MB is an engine limitation or a 2^10 cvar limitation.

Hendrich

  • Posts: 898
  • Turrets: +168/-149
    • TremCommands
Re: Hunk Megs
« Reply #9 on: October 07, 2008, 03:26:38 am »
Yea, well, Tremulous (Or s[ecifically the Q3 Egnine, or Tremulous client) was designed for low end computers that has 512 mb or less, the developers probaly put theat limitation on there for two reasons:

a) They didn't have RAM larger then 512mb back then (As far as I know)

b) Tremulous doesn't need 2Gb (Or whatever) of RAM because theres no mods/whatever that could possibly take up that much RAM (Like what Bissig just said), so why don't you just leave it  at 960mb and call it a day, the only Tremulous could take more RAM is either making a compatible client of doing so, changing the engine limitation, changing the cvar limitation (Again, what Bissig just said), etc.  ;D

Besides,you don't really need more Ram for Tremulous to run, if you want Tremulous to go faster, go to a server with low ping. :P

Lava Croft

  • Guest
Re: Hunk Megs
« Reply #10 on: October 07, 2008, 05:16:01 am »
com_hunkmegs 1024 is ridiculous. 256 is more than enough.

Overdose

  • Posts: 396
  • Turrets: +52/-47
Re: Hunk Megs
« Reply #11 on: October 07, 2008, 06:32:43 am »
Yeah after reading all this and some info on Q3 I settled for 512. Even with the higher resolution textures I use it will probably be, as you said, more than enough.
Chocolate Milk.