Launching MaxIDE pegs xorg CPU usage
Archives Forums/Linux Discussion/Launching MaxIDE pegs xorg CPU usage
| ||
When I launch MaxIDE 1.3 - the version available for download separately from the forum here - xorg's CPU usage pegs to around 25% and remains there. This doesn't happen with any other applications I use on a regular basis, not even firefox or other IDEs. Before launching maxide: top - 22:01:22 up 41 min, 3 users, load average: 0.07, 0.19, 0.27 Tasks: 122 total, 1 running, 121 sleeping, 0 stopped, 0 zombie Cpu(s): 0.6%us, 0.3%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2044196k total, 927012k used, 1117184k free, 25308k buffers Swap: 781240k total, 0k used, 781240k free, 507972k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7156 isaac 20 0 24676 17m 7072 S 1 0.9 0:05.68 compiz.real 6880 root 20 0 395m 50m 9208 S 1 2.5 0:41.47 Xorg 7022 isaac 20 0 15172 2656 1812 S 1 0.1 0:00.80 gnome-screensav 7286 isaac 20 0 77992 20m 11m S 1 1.0 0:00.98 gnome-terminal 1 root 20 0 2828 1752 608 S 0 0.1 0:01.20 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.20 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 46 root 15 -5 0 0 0 S 0 0.0 0:00.06 kblockd/0 47 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 After launching maxide (no files open): top - 22:02:46 up 42 min, 3 users, load average: 0.28, 0.21, 0.27 Tasks: 123 total, 3 running, 120 sleeping, 0 stopped, 0 zombie Cpu(s): 14.7%us, 1.5%sy, 0.0%ni, 83.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2044196k total, 941700k used, 1102496k free, 25348k buffers Swap: 781240k total, 0k used, 781240k free, 507976k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6880 root 20 0 404m 59m 9220 R 27 3.0 0:58.71 Xorg 7156 isaac 20 0 24816 17m 7088 S 2 0.9 0:06.88 compiz.real 7527 isaac 20 0 10420 7132 2440 S 2 0.3 0:01.24 MaxIDE 7022 isaac 20 0 15172 2656 1812 S 1 0.1 0:00.90 gnome-screensav 7091 isaac 20 0 20920 8292 7036 S 1 0.4 0:00.50 multiload-apple 7286 isaac 20 0 78060 20m 11m R 1 1.0 0:01.20 gnome-terminal 1 root 20 0 2828 1752 608 S 0 0.1 0:01.20 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.20 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.02 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper |
| ||
This might be related to how many files are / were open. If I open MaxIDE, and close any automatically opened files, the CPU remains at around 25% for xorg. If I then close MaxIDE and reopen it (therefore there are no files automatically loaded), xorg stays at about 1% CPU or less. It looks like perhaps something with the way that the text areas are drawn, and maybe that they are not cleaned up properly when the files are closed. Just a theory though. |
| ||
sounds for me really strange. what distribution are you using? version of xorg/xorg-server? does it happen to older versions of maxide? what arch are you using? 32bit or 64bit? if 64bit...are you using a chroot or a multilib system?top - 17:49:42 up 1:24, 0 users, load average: 0.02, 0.14, 0.17 Tasks: 90 total, 1 running, 89 sleeping, 0 stopped, 0 zombie Cpu(s): 2.1%us, 0.3%sy, 0.0%ni, 97.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2059056k total, 1433560k used, 625496k free, 76084k buffers Swap: 2096472k total, 0k used, 2096472k free, 760308k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3847 stephan 20 0 568m 162m 27m S 5 8.1 2:16.57 firefox 3720 stephan 20 0 942m 231m 26m S 3 11.5 0:53.16 java 3559 root 20 0 164m 72m 23m S 1 3.6 2:32.52 X 3971 stephan 20 0 11640 8224 2408 S 1 0.4 1:16.29 MaxIDE 6204 stephan 20 0 10592 1220 924 R 0 0.1 0:00.01 top 1 root 20 0 3796 620 536 S 0 0.0 0:00.49 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.09 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.35 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.38 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 12 root 15 -5 0 0 0 S 0 0.0 0:00.01 kblockd/0 |
| ||
I'm using Ubuntu 8.04 on a MacBook, 32bit 2.6.24-19-generic Not sure how to get the xorg version, but it should be the one that comes with Ubuntu 8.04 I didn't notice this before, but I can see if it happens with other versions, provided they launch... |
| ||
Well, this is weird, I just launched the original ide that came with the 1.30 ZIP file,top - 12:37:48 up 2:10, 2 users, load average: 0.73, 0.52, 0.27 Tasks: 122 total, 1 running, 121 sleeping, 0 stopped, 0 zombie Cpu(s): 7.7%us, 1.8%sy, 0.0%ni, 90.5%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2044196k total, 1577540k used, 466656k free, 103148k buffers Swap: 781240k total, 0k used, 781240k free, 843364k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8000 isaac 20 0 163m 55m 21m S 8 2.8 4:41.68 rhythmbox 5841 root 20 0 447m 97m 12m S 1 4.9 2:54.54 Xorg 9426 isaac 20 0 10988 7488 2072 S 1 0.4 0:00.26 MaxIDE-original 6200 isaac 20 0 25352 17m 7088 S 0 0.9 0:45.92 compiz.real 6419 isaac 20 0 108m 30m 19m S 0 1.5 0:05.00 pidgin 1 root 20 0 2844 1688 544 S 0 0.1 0:01.20 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.26 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.08 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.10 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 46 root 15 -5 0 0 0 S 0 0.0 0:00.16 kblockd/0 Retrying the new one downloaded from the forum still gives oddly high xorg CPU usage. System has been restarted a few times since I originally posted so it isn't a transient issue. top - 12:38:45 up 2:11, 2 users, load average: 0.75, 0.56, 0.30 Tasks: 123 total, 1 running, 122 sleeping, 0 stopped, 0 zombie Cpu(s): 18.7%us, 1.1%sy, 0.0%ni, 80.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2044196k total, 1647000k used, 397196k free, 103272k buffers Swap: 781240k total, 0k used, 781240k free, 846912k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5841 root 20 0 459m 109m 12m S 18 5.5 3:00.57 Xorg 8000 isaac 20 0 163m 55m 21m S 3 2.8 4:44.01 rhythmbox 9483 isaac 20 0 10456 7120 2396 S 2 0.3 0:00.44 MaxIDE 6200 isaac 20 0 25352 17m 7088 S 2 0.9 0:46.49 compiz.real 9433 isaac 20 0 205m 76m 22m S 1 3.8 0:08.25 firefox 9414 isaac 20 0 2308 1120 852 R 1 0.1 0:00.20 top 1 root 20 0 2844 1688 544 S 0 0.1 0:01.20 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.28 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.00 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.08 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.10 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:00.06 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper I'm not sure what changed in this version of the IDE but it clearly is doing something to make xorg freak out a bit. There is a different visual style / skin or something. It does look much nicer than the original IDE that came with 1.30... Not sure what else I can try. I pretty much can't use this as-is though, mainly because I don't trust it or like the potential effects of my machine never going idle. |
| ||
My guess... new one : gcc 4.x old one : gcc 3.x ? (well, I thought Seb was using 4.x now, but I might be wrong :-) |
| ||
I noticed similar behaviour but I haven't yet been able to track down what's eating the cycles. I am using gcc4.x to compile on my Ubuntu PC. If anyone has MaxGUI, and wants to see whether this is the problem, they can checkout and compile the latest versions of maxide.bmx and MaxGUI from their respective repositories, and let me know if they still experience high CPU cycles when running MaxIDE built from gcc3.x. |