[MUD-Dev] Processor Usage

Ben Greear greearb at candelatech.com
Fri Mar 3 17:41:19 New Zealand Daylight Time 2000


Christopher Kohnert wrote:
> 
> Am I simply missing something, or do all these engines that report low
> processor usage (5-10% peak) not have a pseudo-real-time event
> scheduling mechanism?  I can sleep, waiting for both events and input
> from sockets, and not get it to drop below an average of 80%.  Does
> anyone have any ideas as to how other systems can claim these low
> usages?  No, I don't have any specific examples, (I can't remember them)
> I've just seen them float by on messages here and there, reporting this
> wonderful feat.
> 
> Chris

Scry (though lightly populated) rarely gets above 5% CPU.  I would suspect
you have a busy-wait somewhere..or that you have an enormous amount of events
happening close together.  Scry isn't threaded (uses a while loop, waits for
max .25 secs on IO before looping again to do AI and other timer based
activities.)

Did you try running some kind of performance monitoring tool (gproff?)
to see where the program spends all of it's time?

Ben
> 
> _______________________________________________
> MUD-Dev maillist  -  MUD-Dev at kanga.nu
> http://www.kanga.nu/lists/listinfo/mud-dev

--
Ben Greear (greearb at candelatech.com)  http://scry.wanfear.com/~greear 
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com



_______________________________________________
MUD-Dev maillist  -  MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev



More information about the MUD-Dev mailing list