Is there any program in particular I can start my mud in and see which processes within the game are using the most CPU? Or which are causing the CPU to spike more?
I'd be careful with Electric Fence. My last experience with trying to use it for anything resulted in a huge resource drain on the server I ran it on. And the server was no slouch at the time. I haven't really played much with profiling but gprof seems to be the most widely recommended method.
I'd be careful with Electric Fence. My last experience with trying to use it for anything resulted in a huge resource drain on the server I ran it on. And the server was no slouch at the time. I haven't really played much with profiling but gprof seems to be the most widely recommended method.
I wound up running Valgrind, and I rewrote the entire aggro code, char_update, and mob_update systems and dropped CPU usage by nearly 80%, so things are flying now. :)
Also, can you run valgrind remotely? (Ie bash in shell)
Of course! You just have to make sure the server you're connected too has valgrind installed. Most sysadmins are not against getting it installed, so if you don't have it, just ask.
You also need to be mindful that some hosts won't appreciate the extra resource usage Valgrind involves. It may be less than Efence, but it can still push you past restriction limits pretty fast.
Great! Thanks for the info on Valgrind, I'll be sure to RTFM and dig in. I'm pretty sure Dale has it on most of his servers ;)
Great to hear Aidan! I hear you on rewriting heh. It seems the longer we go at this, the more we have our own ways of doing every little thing, until our source is a distant cousin of it's original self.
I was asked to relay this to you, Skol, because Kiasyn was on dial-up tonight: [ichat] Kiasyn@Drazon: someone tell skol in his 'just a question from curiosity' topic thing that dale *doesnt* have valgrind