Red Hat Bugzilla – Bug 502042
system-config-lvm start-up extremely slow with remote display over a slow network
Last modified: 2016-04-26 10:42:12 EDT
Created attachment 344983 [details]
Description of problem:
system-config-lvm startup is extremely slow when used and display over a slow network connection such as a slow VPN.
Version-Release number of selected component (if applicable):
100% reproducible in the case of our customer
Steps to Reproduce:
1. Run system-config-lvm over a very slow network connection
system-config-lvm takes ages to startup and seems to hang
suystem-config-lvm starts up rapidly
The problem is caused by the refresh of the progress bar at startup.
For each line output by each command ran by system-config-lvm, the UI is refreshed.
225 while len(in_list) != 0:
226 # let GUI update
227 if update_gtk:
228 while gtk.events_pending():
230 i,o,e = select.select(in_list, , , 0.1)
231 for fd in i:
232 if fd == read:
233 s = os.read(read, 1000)
234 if s == '':
236 rc = rc + s
237 if fd == read_err:
238 s = os.read(read_err, 1000)
239 if s == '':
241 rc_err = rc_err + s
Removing the while gtk.events_pending()/gtk.main_iteration() fixes the issue for the customer but obviously does not refresh the progress bar anymore.
Instead, an in-between solution might be to move the refresh out of the loop so that the UI is refreshed only once per command launched (still s-c-lvm runs a lot of commands, I counted more than 250 external commands launched by system-config-lvm, and that's only on a simple virtual machine, I would expect a lot more on a real production system with more storage)
That's what the attached patch does. I will propose a test package to our customer to see if that improves the start-up time to something acceptable in his case.
There might be other approaches to the problem, like adding a command line option or even try to detect if the DISPLAY is local or remote but I am not sure this would be adequate.
Progress bar is fluent after removing that update on local computer, so I set it as default.
~~ Attention Customers and Partners - RHEL 5.5 Beta is now available on RHN ~~
RHEL 5.5 Beta has been released! There should be a fix present in this
release that addresses your request. Please test and report back results
here, by March 3rd 2010 (2010-03-03) or sooner.
Upon successful verification of this request, post your results and update
the Verified field in Bugzilla with the appropriate value.
If you encounter any issues while testing, please describe them and set
this bug into NEED_INFO. If you encounter new defects or have additional
patch(es) to request for inclusion, please clone this bug per each request
and escalate through your support representative.
*** Bug 568417 has been marked as a duplicate of this bug. ***
fix verified in system-config-lvm-1.1.5-4.el5
tested over a vpn connection across public networks. Moderate network traffic on the desktop. sc-lvm started about as fast as any other X application, certainly not 20 minutes.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.