[Home] [Groups] - Message: [Prev in Group] [Next in Group]
12666: Re: [MUD-Dev] Processor Usage
[Full Header] [Plain Text]
From: Ben Greear <greearb@candelatech.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Fri, 03 Mar 2000 17:41:19 -0700
References: [1]
Organization: Kanga.Nu
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@kanga.nu
> http://www.kanga.nu/lists/listinfo/mud-dev
--
Ben Greear (greearb@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@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev