https://bugzilla.novell.com/show_bug.cgi?id=481299
Summary: Yast Scanner Model and Driver Devours system resources at the expense of basic O/S Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: x86-64 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: alpha096@virginbroadband.com.au QAContact: jsrain@novell.com Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1 Firefox/3.0.6
I attached a Cannon USB scanner and went to Yast>Hardware>Scanner to configure it. This Yast Model consumes vast system resources and 10% mac CPU and as Much Physical RAM as it want to constrict the driver database. Auto detection took over 2 Minutes.
Once the scanner Model is auto found I edited the selection to ensure the most appropriate selection - again System Resources were swallowed up like nothing on earth. This process took over 2 Minutes
Once the List of Drivers were displayed I entered a search string which again started to devour more resources again taking over two minutes.
Once Again selecting the "Show Complete List" took over 3 mins and consumed more resources.
My PC is a Processor (CPU): AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ Speed: 2,410.96 MHz Cores: 2
with Total memory (RAM): 1.7 GB Free memory: 696.9 MB (+ 412.2 MB Caches) Free swap: 10.0 GB
The Free memory amount started at 980MB and this small yast program has reduced it to a current 696.9MB and is dropping all the time
Reproducible: Always
Steps to Reproduce: 1.Auto detect any USB Scanner and monitor sysinfo in Konqueror as above 2. 3. Actual Results: Totally unacceptable and unrestrained use of system resources and inordinate wait times - we must and can do much better with this module!
Expected Results: I am sure we dont need 1 Yast module to be 1 able to access seemingly unrestricted resources and I am sure we can either index the data base better to cut down searches and possibly consider using a bubble sort rather than straight index sort.
The PC has been processing "Show complete List for over 5 minutes now and available RAM has dropped to 580MB and going down
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c1
Scott Couston alpha096@virginbroadband.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alpha096@virginbroadband.co | |m.au Severity|Normal |Major
--- Comment #1 from Scott Couston alpha096@virginbroadband.com.au 2009-03-02 22:25:54 MST --- The PC I was working on for the above test - shut down as CPU and RAM reached over 60C. The CPU temp initiated total shutdown of PC, which it has never done before, as it was the result of just adding and configuring a USB scanner.
Adjusting Priority!
I am always happy to provide any logs in the event you are unable to duplicate the above.
https://bugzilla.novell.com/show_bug.cgi?id=481299
Martin Vidner mvidner@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |jsmeix@novell.com |ovo.novell.com |
https://bugzilla.novell.com/show_bug.cgi?id=481299
User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c2
Johannes Meixner jsmeix@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|jsmeix@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com
--- Comment #2 from Johannes Meixner jsmeix@novell.com 2009-03-12 08:58:09 MST --- It works well on my 3 GHZ dual core workstation with 500 MB RAM. Only creating the database can take some seconds (e.g. 20 seconds) but all the rest works with reasonable speed for me.
Therefore it is no issue in the YCP code of the scanner module but perhaps something in the YaST base system (or even at a lower level).
https://bugzilla.novell.com/show_bug.cgi?id=481299
User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c3
Johannes Meixner jsmeix@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jsmeix@novell.com Info Provider| |alpha096@virginbroadband.co | |m.au
--- Comment #3 from Johannes Meixner jsmeix@novell.com 2009-03-12 09:06:44 MST --- Have a look at bug #442173 which describes a related issue.
But the issue in this bug here is different because here for the user almost every step takes minutes.
Scott Couston, to verify if it is perhaps a YaST GUI issue, run it in text-only mode. As root call yast scanner and test if it works reasonable fast in text-only mode.
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c4
--- Comment #4 from Scott Couston alpha096@virginbroadband.com.au 2009-03-17 02:24:41 MST --- No problem I will reply from today +7
My apologies for my 2 weeks absence, I got flooded out in my region and am only getting things slowly back together.
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c5
Scott Couston alpha096@virginbroadband.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|alpha096@virginbroadband.co | |m.au |
--- Comment #5 from Scott Couston alpha096@virginbroadband.com.au 2009-03-17 19:41:30 MST --- I re-ran test. I logged out of GUI session and chose to login via console. I logged in as root no problems - I received the "have lots of fun" welcome.
I entered Yast2 - deleted the current entry>Exit
Yast2>Hardware>Scanner>Default Auto detect took less than 2 seconds! A 'Search' string only took 3 seconds max The 'Show All' took less than 3 seconds
Text based Yast2 - unreal response
Re-enter KWIN I just clicked on -Show All" and I have made a cup of coffee and had 2 smokes and come back to complete this bug and its sill in the process of 'Show All"
Appear from the grab for all resources and the enormity of the task that just happens to be running there appears there in NO error level in exceeded time.
Thats the biggest problem with Yast - If ANY action - no matter the cause - the user cannot terminate the process and there is no error level time exceeded and the O/S kill continue to devote resources until the process can be fulfilled. Many Yast Processes can take a very very long time if they cannot (for any reason) complete the task, however this one is like no other given times in initial comment.
Here the Abort key does nothing as its only usage is to exit out of any Yast process without saving the changes.
As a conventional user the only option now is to shut down/restart the PC which will now take a good 3 minutes to do.
Can I help be providing ANY log information ??????
https://bugzilla.novell.com/show_bug.cgi?id=481299
Cyril Hrubis chrubis@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com |
https://bugzilla.novell.com/show_bug.cgi?id=481299
User mantel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c6
Hubert Mantel mantel@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mantel@novell.com Info Provider| |alpha096@virginbroadband.co | |m.au
--- Comment #6 from Hubert Mantel mantel@novell.com 2009-03-23 08:57:07 MST --- Since things work fine in text mode this seems to be a problem with the graphical UI. Scott, could you please provide the YaST logs so we can investigate closer?
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c7
--- Comment #7 from Scott Couston alpha096@virginbroadband.com.au 2009-03-23 15:53:18 MST --- Sure can provide YAST2 Logs, however please give me a few days to trash my test PC - its currently running gnome and the error is not present under Yast in Gnome. I will trash test PC and install KDE in both 11.0 and 11.1 for you. Leave on Needinfo for date plus 7
https://bugzilla.novell.com/show_bug.cgi?id=481299
User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c8
--- Comment #8 from Johannes Meixner jsmeix@novell.com 2009-03-24 07:44:44 MST --- FYI: Regarding the bad side-effect which is mentioned in comment #5 that "Abort key does nothing" compare https://bugzilla.novell.com/show_bug.cgi?id=442173#c4
https://bugzilla.novell.com/show_bug.cgi?id=481299
User mantel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c9
--- Comment #9 from Hubert Mantel mantel@novell.com 2009-03-24 08:35:48 MST --- Just to gather some more data points: Scott, Johannes, is there a difference when using gnome, kde3 or kde4? Maybe we are seeing an issue in qt here...
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c10
--- Comment #10 from Scott Couston alpha096@virginbroadband.com.au 2009-03-24 14:53:26 MST --- Yes Gnome on Version 11.0 Yast runs light lightening, just a bit faster than text Yast. I can provide logs and details of V11.0 KDE and 11.1 KDE in due course - cannot answer that 11.1 KDE is also very slow atm - Test was done on 11.0 KDE.
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c11
--- Comment #11 from Scott Couston alpha096@virginbroadband.com.au 2009-03-24 15:37:47 MST --- BTW This is another reason why case in point of Bug 442475 needs action rather than just the perpetual INVALID close. If ' Skip Refresh can work well why does the Cancel button become useless?
I believe this issue is purely related to KDE 4.x X Windows Manager as this problem was not evident in KDE 3.5,Not Evident in text, Not evident in V11.0 Gnome, and not evident in 11.1 in Gmome.
I have noted the massive amount of Extra Resources that KDE4.n requires to support ALL X Windows Function which I am sure you have noticed before in monitoring both 11.0 and 11.1 KDE - which demands huge resources no matter what application is opened and running - not only Yast
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c12
--- Comment #12 from Scott Couston alpha096@virginbroadband.com.au 2009-03-25 16:12:09 MST --- The issue has major implication on Bug 442475 to fix the inability to halt ANY YAST Application using the ABORT function as it was useless when ANY Yast application misbehaves - It was closed as wontfix as I was told in no uncertain terms that it was not possible for the ABORT button to stop any YAST application that misbehaves - Bug 442475 has implications to case in point on all other bug reports on misbehaving YAST bugs as well as this one.
Yast logs in a few hours of date
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c13
--- Comment #13 from Scott Couston alpha096@virginbroadband.com.au 2009-03-25 17:37:05 MST --- Created an attachment (id=282090) --> (https://bugzilla.novell.com/attachment.cgi?id=282090) startup log
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c14
--- Comment #14 from Scott Couston alpha096@virginbroadband.com.au 2009-03-25 17:37:43 MST --- Created an attachment (id=282091) --> (https://bugzilla.novell.com/attachment.cgi?id=282091) system log
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c15
Scott Couston alpha096@virginbroadband.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|alpha096@virginbroadband.co | |m.au |
--- Comment #15 from Scott Couston alpha096@virginbroadband.com.au 2009-03-25 17:38:52 MST --- Created an attachment (id=282092) --> (https://bugzilla.novell.com/attachment.cgi?id=282092) Yast2 logs
https://bugzilla.novell.com/show_bug.cgi?id=481299
Johannes Meixner jsmeix@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com |
https://bugzilla.novell.com/show_bug.cgi?id=481299
User jsrain@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c18
Jiri Srain jsrain@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |alpha096@virginbroadband.co | |m.au
--- Comment #18 from Jiri Srain jsrain@novell.com 2009-03-31 07:54:47 MDT --- 2009-03-26 09:34:19 <1> linux-ncbv(6392) [YCP] Scanner.ycp:327 Executing bash commandline: /usr/lib/YaST2/bin/create_scanner_database YCP
/var/lib/YaST2/scanner_database.ycp
2009-03-26 09:34:40 <1> linux-ncbv(6392) [YCP] Scanner.ycp:327 Executing bash commandline: /usr/lib/YaST2/bin/determine_active_scanners YCP
/var/lib/YaST2/active_scanners.ycp
This takes 21 seconds; whole run of yast2-scanner takes c.a. 30 seconds, at most 50 seconds (there is a 20-second gap in the log before another module is started); this is tne only run of the scanner module which I found in the logs
Would it be possible to get logs (ideally with Y2DEBUG=1 environment variable) showing that any operation really takes at least minutes?
https://bugzilla.novell.com/show_bug.cgi?id=481299
User jsmeix@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c19
--- Comment #19 from Johannes Meixner jsmeix@novell.com 2009-03-31 09:04:31 MDT --- create_scanner_database takes 21 seconds for the reporter exactly as I wrote in comment #2 - just have a look.
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c20
Scott Couston alpha096@virginbroadband.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|alpha096@virginbroadband.co | |m.au |
--- Comment #20 from Scott Couston alpha096@virginbroadband.com.au 2009-03-31 15:59:44 MDT --- How can I help with logs on the reported X64 PC? Have you also tried inserting new scanner USB device (or any other USB device for that matter) in a different Bus slot in PC and the booting it?
https://bugzilla.novell.com/show_bug.cgi?id=481299
User snwint@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c21
Steffen Winterfeldt snwint@novell.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |alpha096@virginbroadband.co | |m.au
--- Comment #21 from Steffen Winterfeldt snwint@novell.com 2009-04-01 04:20:10 MDT --- Scott, can you please attach logs from a run with all those minute-long delays?
https://bugzilla.novell.com/show_bug.cgi?id=481299
User alpha096@virginbroadband.com.au added comment https://bugzilla.novell.com/show_bug.cgi?id=481299#c22
--- Comment #22 from Scott Couston alpha096@virginbroadband.com.au 2009-04-01 08:11:23 MDT --- I can do that - give me +5 days to trash my Test PC and install and provide logs. If I get time I will do the same for 11.1 -I will leave bug at 11.0, but provide logs for 11.1 FYI - that is unless you want this difference in version in 2 separate bugs - If so I can clone.
Leave on NEEDINFO