[opensuse-factory] gconftool-2 makes factory update slow
Just updating factory I noticed that many gnome applications need a lot of time for running several instances of /usr/bin/gconftool-2 with --makefile- install-rule or --makefile-uninstall-rule arguments. in their install script. Compiz installation comsumed over 5 minutes for doing that Is this expected ? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Le lundi 23 février 2009, à 22:01 +0100, Markus Koßmann a écrit :
Just updating factory I noticed that many gnome applications need a lot of time for running several instances of /usr/bin/gconftool-2 with --makefile- install-rule or --makefile-uninstall-rule arguments. in their install script. Compiz installation comsumed over 5 minutes for doing that Is this expected ?
This is certainly not expected. I think it's because of this change in gconf2: Use "merged" for schema-install-source, for better performance. Michael, we might get better performance at runtime, but it's slow for package installations, which is not good for factory. Any opinion? Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi Vincent, On Thu, 2009-02-26 at 02:35 +0100, Vincent Untz wrote:
This is certainly not expected. I think it's because of this change in gconf2: Use "merged" for schema-install-source, for better performance.
Sure - it is this change; and yes - if we install schemas individually it's far, far slower - because we strip out the l10n translations and merge them into separate files.
Michael, we might get better performance at runtime, but it's slow for package installations, which is not good for factory. Any opinion?
Yep - we need to install multiple .scheme files at once; for gconf itself that means the: ls /etc/gconf/schemas/*.schema | xargs \ gconftool-2 --makefile-install-rule ie. if we only run one gconftool-2 - and get it to merge multiple schemas we get a linear speedup. What would also help is eg. stopping compiz installing 80 separate schema files ;-). But it should be trivial enough to get some big wins here. I wonder how Fedora & Debian do this - given that they also have merged gconf XML: presumably they glup schema installs together (?) - or perhaps they run a gconf daemon during install [ which is riskier and nastier I guess ]. I guess the same fixes to libgnome, and gnome-settings-daemon would be worthwhile, gnucash seems to install umpteen schemas, the panel and evince would be the others I suppose. HTH, Michael. -- michael.meeks@novell.com <><, Pseudo Engineer, itinerant idiot -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
At Thu, 26 Feb 2009 10:08:07 +0000, Michael Meeks wrote:
Hi Vincent,
On Thu, 2009-02-26 at 02:35 +0100, Vincent Untz wrote:
This is certainly not expected. I think it's because of this change in gconf2: Use "merged" for schema-install-source, for better performance.
Sure - it is this change; and yes - if we install schemas individually it's far, far slower - because we strip out the l10n translations and merge them into separate files.
Michael, we might get better performance at runtime, but it's slow for package installations, which is not good for factory. Any opinion?
Yep - we need to install multiple .scheme files at once; for gconf itself that means the:
ls /etc/gconf/schemas/*.schema | xargs \ gconftool-2 --makefile-install-rule
ie. if we only run one gconftool-2 - and get it to merge multiple schemas we get a linear speedup.
In old good days, we had used SuSEconfig for such a thing. Irony that we have to avoid it now ;) Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi, Le jeudi 26 février 2009, à 02:35 +0100, Vincent Untz a écrit :
Le lundi 23 février 2009, à 22:01 +0100, Markus Koßmann a écrit :
Just updating factory I noticed that many gnome applications need a lot of time for running several instances of /usr/bin/gconftool-2 with --makefile- install-rule or --makefile-uninstall-rule arguments. in their install script. Compiz installation comsumed over 5 minutes for doing that Is this expected ?
This is certainly not expected. I think it's because of this change in gconf2:
Use "merged" for schema-install-source, for better performance.
After some discussion with Michael, and thanks to his input, I made some changes to the gconf2 package which should solve the issue in most cases: + we call gconftool-2 --makefile-install-rule only once per package using gconf now, instead of multiple times. This should improve things significantly for some packages. (we still have to call gconftool-2 --makefile-uninstall-rule too) + if the schema file hasn't changed between the old and the new package, we just skip this test. And since schema files don't change that often, this is a huge win. I just put the updated gconf2 package in GNOME:Factory, so it'd be great to have people test GNOME:Factory to make sure it doesn't break anything. I'm a bit hesitant to directly push it to openSUSE:Factory since it can break stuff badly if I made a small mistake ;-) But we'll push it at some point. Note that to really experience the improvement, you'll need to update to GNOME packages compiled with this new gconf. And then, on the following updates, it will be much faster. (the first update is still somewhat slow because the package you currently have has the old %preun script which is not optimal) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (4)
-
Markus Koßmann
-
Michael Meeks
-
Takashi Iwai
-
Vincent Untz