Hi everyone, I've been trying to see what's eating up all the CPU in gtk2. Although my other gtk2 programs do have an increased memory usage over their gtk1 counterparts, there's not really an increase in CPU usage. gtk-gnutella sits at like 3% CPU usage for gtk1 and spikes and jumps all over for gtk2, sometimes it's around 45%, sometimes it spikes to 60% or more. This has to be our fault or at least we should be able to work around it somehow. Moreover, I think we have to as gtk1 is getting older and outdated.
Anyway, I'm confused about the profiling results I'm getting. It seems like gtk2 is totally going crazy with calling all these qrt functions, even with no searches, uploads, or downloads. I don't know much about the core but it seems like this shouldn't be triggering like this. For example: "qrt_dump_is_slot_present" was called 13 million times in 10 minutes... Aside from maybe being called unnecessarily, I'm not sure why there's a discrepancy with gtk1 as these are "core" functions. At http://dist.struggle.ca/gtkg/gtkg-profileinfo-feb21.tar.gz there is profiling information for both gtk1 and gtk2. Using the same config run one right after another. There were no downloads (or fileinfos), no searches, and no uploads allowed. gtk2 ran for 10 minutes, gtk1 ran for 15 (I know I know, I forgot to shut it down on time). The thing is even if gtk1 calls are artificially high, they're still out of proportion with gtk2 (ie, they're still way way too low). I'm new to profiling but from what I gather there is a whole mess of extra calls being generated for some reason and the bug has something to do with the "node" code I think (node_parse or node_read). The biggest indicators are qrt_handle_patch and qrt_dump_is_slot_present. The discrepancy between the gtk1 and gtk2 results are consistent between runs (I tried 3 times, each time alternating between gtk2 and gtk1). So, does anyone know a) why qrt is being used so much when there are no dl's etc? and b) any reason why there would be more calls being issued in gtk2 than gtk1? Any insight would be appreciated, I don't know the core at all. Emile ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
