[Bug 629882] New: YaST reads YCP include files 1 byte at a time
http://bugzilla.novell.com/show_bug.cgi?id=629882 http://bugzilla.novell.com/show_bug.cgi?id=629882#c0 Summary: YaST reads YCP include files 1 byte at a time Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: mvidner@novell.com ReportedBy: mvidner@novell.com QAContact: jsrain@novell.com CC: kmachalkova@novell.com Found By: Development Blocker: --- In discussing another bug(*), Bubli mentioned that strace output was full of lines like
[pid 8194] read(7, "b", 1) = 1 [pid 8194] read(7, "u", 1) = 1 [pid 8194] read(7, "s", 1) = 1 [pid 8194] read(7, ";", 1) = 1 which clutters the output and makes stracing, if not regular runs, much slower.
It turns out that for certain files, ones pulled in by the YCP include statement, input buffering is not enabled. *) http://lists.opensuse.org/yast-devel/2010-08/msg00012.html -- 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=629882 http://bugzilla.novell.com/show_bug.cgi?id=629882#c1 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Martin Vidner <mvidner@novell.com> 2010-08-11 11:02:08 CEST --- Fixed in yast2-core-2.19.3, http://svn.opensuse.org/viewvc/yast?view=revision&revision=62375 submitted to Factory as https://build.opensuse.org/request/show/45353 Bubli says: Buffered reading did the trick. It reduced start-up time of y2-users (which I used as benchmark) from 4.5 minutes to 12 seconds -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c2 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|YaST reads YCP include |YaST reads YCP include |files 1 byte at a time |files 1 byte at a time, | |AppArmor(auditd) logs it | |all slow as hell --- Comment #2 from Martin Vidner <mvidner@novell.com> 2010-08-24 14:08:46 CEST --- It turns out AppArmor was set up to complain about yast, by this profile: /etc/apparmor.d/sbin.yast2 : # Last Modified: Mon Oct 26 23:07:05 2009 # REPOSITORY: http://apparmor.opensuse.org/backend/api thebahdness 4106 #include <tunables/global> /sbin/yast2 flags=(complain) { #include <abstractions/base> #include <abstractions/bash> /bin/bash ix, } That made auditd fill (and rotate away) all of /var/log/audit/audit.log with messages like type=APPARMOR_ALLOWED msg=audit(1282649559.788:165674): operation="file_perm" pid=6304 parent=6271 profile="/sbin/yast2//null-120" requested_mask="r::" denied_mask="r::" fsuid=0 ouid=0 name="/usr/share/YaST2/include/nfs/ui.ycp" -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c3 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #3 from Martin Vidner <mvidner@novell.com> 2010-08-24 14:24:47 CEST --- will ask for an update -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c4 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #4 from Martin Vidner <mvidner@novell.com> 2010-08-24 14:26:50 CEST --- In certain (non-default) AppArmor configurations, YaST becomes verrry slow. It is very little work for me to make an 11.3 update. The yast2-core behavior is present since SLES9, but applying the patches there would be more work. I think we should make an update for 11.3, with low priority. If that's OK, please give me a Swamp ID. -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c5 --- Comment #5 from Leonardo Chiquitto <lchiquitto@novell.com> 2010-08-25 15:16:15 UTC --- Patch is trivial, I think we should update, +1. -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c6 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:35563:low --- Comment #6 from Swamp Workflow Management <swamp@suse.com> 2010-08-30 13:20:12 UTC --- The SWAMPID for this issue is 35563. This issue was rated as low. Please submit fixed packages until 2010-09-27. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/35563 -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c7 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED CC| |cdengler@novell.com InfoProvider|maintenance@opensuse.org | --- Comment #7 from Christian Dengler <cdengler@novell.com> 2010-08-30 13:20:41 UTC --- +1 update started -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c8 --- Comment #8 from Martin Vidner <mvidner@novell.com> 2010-09-02 09:01:57 CEST --- Submitted, osc rq show 46945 -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c9 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:35563:low |maint:running:35563:low | |maint:released:11.3:35616 --- Comment #9 from Swamp Workflow Management <swamp@suse.com> 2010-09-07 13:30:40 UTC --- Update released for: yast2-core, yast2-core-debuginfo, yast2-core-debugsource, yast2-core-devel Products: openSUSE 11.3 (debug, i586, x86_64) -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:35563:low |maint:released:11.3:35616 |maint:released:11.3:35616 | -- 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=629882 https://bugzilla.novell.com/show_bug.cgi?id=629882#c10 Martin Vidner <mvidner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #10 from Martin Vidner <mvidner@novell.com> 2011-02-03 16:26:12 CET --- Forgot to close in comment 8 -- 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=629882 http://bugzilla.novell.com/show_bug.cgi?id=629882#c11 --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (629882) was mentioned in https://build.opensuse.org/request/show/46945 11.3:Test / yast2-core -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com