[Bug 555288] New: optimizing installation startup speed
http://bugzilla.novell.com/show_bug.cgi?id=555288 Summary: optimizing installation startup speed Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cyberorg@opensuse.org QAContact: jsrain@novell.com Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 Just before the installation starts: /usr/share/YaST2/clients/inst_prepareprogress.ycp runs: if (Mode::live_installation()) { string cmd = sformat ("du -x -B 1024 -s %1", "/"); y2milestone ("Executing %1", cmd); map out = (map)SCR::Execute (.target.bash_output, cmd); y2milestone ("Output: %1", out); string total_str = out["stdout"]:""; live_size = tointeger (total_str); if (live_size == 0) live_size = 1024*1024; // 1 GB is a good approximation } "du -x -B 1024 -s %1", "/" takes really long time, approximately 8 minutes on openSUSE Edu live DVD where the compressed size is 2.8G and normal size is about 8G. df should be used in place of du as it is much faster returning the size of / if that is all it requires. Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288#c1 --- Comment #1 from Jigish Gohil <cyberorg@opensuse.org> 2009-11-18 13:17:58 UTC --- There is another call to du -sh in usr/share/YaST2/modules/ImageInstallation.ycp line: 895 that needs to be changed to something fast for large installation images. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |locilka@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c2 Lukas Ocilka <locilka@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|locilka@novell.com |jsrain@novell.com --- Comment #2 from Lukas Ocilka <locilka@novell.com> 2009-11-23 10:03:21 UTC --- Jiri, 'du' is yours :) ;) BTW, using 'df' sounds like a good idea. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c3 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED --- Comment #3 from Jiri Srain <jsrain@novell.com> 2009-12-07 11:48:21 UTC --- The disadvantage of 'df' is that it gives worse approximation of the file size (counts whole blocks). On the other hand, it should still be sufficient for the progress report. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c4 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Enhancement |Normal --- Comment #4 from Jigish Gohil <cyberorg@opensuse.org> 2010-07-20 17:23:20 UTC --- This is still broken on 11.3, I had forgotten about it as we had patched Edu images to use "echo whatever" in all the places liveinstaller calls: du -x -B 1048576 -s and du -x -B 1024 -s Again I am not sure why there are two calls with two different -B. /usr/share/YaST2/modules/ImageInstallation.ycp /usr/share/YaST2/clients/inst_prepareprogress.ycp Forgot to patch 11.3 image and now everyone have to wait 8 minute for installation to begin :( This is no longer enhancement request, it is a bug that needs fixing, please use more efficient way to find out image size, accuracy is not that important in progress bar. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c5 Jigish Gohil <cyberorg@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com, | |ms@novell.com --- Comment #5 from Jigish Gohil <cyberorg@opensuse.org> 2010-07-21 08:52:58 UTC --- May be kiwi can directly get the size of fsdata.ext3, add it to some file for the live-installer to read from? That way du will only be required to run once during building the image, not on everyone's PC when installing. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c6 --- Comment #6 from Stephan Kulow <coolo@novell.com> 2010-07-21 11:02:47 CEST --- you can install tons of software into memory in addition before starting installations. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c7 --- Comment #7 from Jigish Gohil <cyberorg@opensuse.org> 2010-07-21 09:26:15 UTC --- In that case progress bar will be little inaccurate, but the installation will still start immediately and not wait for du to finish on the DVD. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c8 --- Comment #8 from Stephan Kulow <coolo@novell.com> 2010-07-21 11:36:03 CEST --- if that's the goal, just drop the progress bar. But bars that can hit 100% while the progress isn't done are nonsense. And I tell you if you drop the bar, more people than you will complain. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c9 --- Comment #9 from Jigish Gohil <cyberorg@opensuse.org> 2010-07-21 09:37:12 UTC --- then we do need something faster than du :) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=555288 https://bugzilla.novell.com/show_bug.cgi?id=555288#c10 --- Comment #10 from Jiri Srain <jsrain@novell.com> 2010-11-18 13:28:56 UTC --- Actually, if we use df instead of du, it will result in slightly bigger disk consumption than du. Which will mean that the progress will never hit 100%. As package installation (resp. copying the image) is not the last item in the proress, it should not do any harm - there may just be one bigger step around, say, 90%. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=555288 https://bugzilla.novell.com/show_bug.cgi?id=555288#c11 --- Comment #11 from Jiri Srain <jsrain@novell.com> 2010-11-18 14:25:51 UTC --- df reports on my root 2.1% more than du, IMO it is acceptable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=555288 https://bugzilla.novell.com/show_bug.cgi?id=555288#c12 Jiri Srain <jsrain@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #12 from Jiri Srain <jsrain@novell.com> 2010-11-18 15:20:12 UTC --- Fix is now in factory, let's see how it works in real life with next Milestone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=555288 http://bugzilla.novell.com/show_bug.cgi?id=555288#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (555288) was mentioned in https://build.opensuse.org/request/show/53345 Factory / yast2-installation -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com