[Libreoffice] master eat CPU even when it does nothing
Arno Teigseth
arnotixe at gmail.com
Sat Oct 29 20:06:53 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK thanks to moggi on libreoffice-dev irc, I installed valgrind.
Found that running in one terminal:
valgrind --trace-children=yes --tool=callgrind ./swriter
and in another terminal, after about 2 mins of "empty swriter document
idle" doing this:
callgrind_control -b 28236 (the actual swriter PID)
gives this:
PID 28236:
/home/arno/sys/libreoffice-git/core/solver/unxlngx6.pro/installation/opt/program/soffice.bin
- --writer --splash-pipe=6 [requesting 'Status'...]
Frame: Backtrace for Thread 1
[ 0] _int_free (967869 x)
[ 1] free_check (983990 x)
[ 2] free (449741 x)
[ 3] operator delete(void*) (322182 x)
[ 4] GtkHookedYieldMutex::ThreadsEnter() (322183 x)
[ 5] GdkThreadsEnter (161078 x)
[ 6] 0x0000000000059cf0 (161078 x)
[ 7] g_main_context_prepare (161147 x)
[ 8] 0x0000000000042ed0 (161130 x)
[ 9] g_main_context_iteration (161010 x)
[10] GtkData::Yield(bool, bool) (161010 x)
[11] GtkInstance::Yield(bool, bool) (161010 x)
[12] Application::Yield(bool) (161009 x)
and a lot more, to be read at http://pastebin.com/YuEvQC4y
I don't have a clue about how to interpret this. But if these are
function calls, maybe about a million calls are much?
Compared to GIMP running idle for 5 minutes, and it had just about
5500 calls to different things...
Hope this tells someone something.
best
Arno
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6sv00ACgkQEMIGVCc8BjBDdQCfcKW5nLDZJkSQ3JFxt2waYkwc
9WsAoLqzdWTYKhGGDPqsUBmT6fpAVh3N
=HmDk
-----END PGP SIGNATURE-----
More information about the LibreOffice
mailing list