Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Mon Feb 24, 2025 10:21 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Tue Aug 21, 2007 2:32 pm 
Offline
Implementor

Joined: Wed Feb 27, 2002 4:00 pm
Posts: 8220
Location: Redwood City, California
We might have a memory leak, but I don't think so. We can be up for weeks and I don't see the amount of memory used by the server get signficantly higher than after a reboot.

Most games have some problems with memory over time. Even big MMOs will reboot their servers on a periodic basis. Although SK does crash occasionally, we are pretty stable. It's not unknown for the game to be up for weeks at a time. That's the biggest reason why the game starts to lag on a tick.

To explain briefly, when you update an area, the game has to get all of the items and NPCs from the area from main memory and feed it into the processor's smaller cache memory. When the game first starts up, all the NPCs and objects for an area will tend to be close together in memory, so most of them will be in the same memory page and the cache will only need to be changed a few times during the update. After the game has been up for a long time, most NPCs and objects that exist in the area are in completely different memory segments, so this generates many more page flips. If you are really unlucky, potentially once for every object and NPC being updated. This takes way more time to process.

The only easy solution is just to reboot more often.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 21, 2007 4:22 pm 
Offline
Mortal

Joined: Tue Aug 07, 2007 2:34 am
Posts: 300
Would a solution be a hardware up grade to a processor with a bigger l2 cache and a gig bus? Something akin to an fx57-58 on an amd 939 socket board?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Aug 21, 2007 5:56 pm 
Offline
Mortal Philanthropist

Joined: Mon Jun 21, 2004 12:58 pm
Posts: 3632
Location: Spokane, WA
Since, SK is on another co's server. I doubt it.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Aug 22, 2007 5:40 pm 
Offline
Implementor

Joined: Wed Feb 27, 2002 4:00 pm
Posts: 8220
Location: Redwood City, California
We currently run on servers that we own. That may not always be true going forward. However, what we have now is what was economical at the time we bought them. I'm sure that having a larger cache would help. The larger your cache, the less often you will need to reload the cache.

Newer and more powerful hardware is always going to have a positive affect on some level. But you have to work within your budget. And I'm pretty sure they still don't make cache sizes that are as big as the amount of memory that the MUD uses, so there are always going to be some page flips. Rebooting the MUD more often is still probably a better solution, even if both options had zero cost.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 180 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group