[Bug 544940] New: launch cupsd via xinetd ...
http://bugzilla.novell.com/show_bug.cgi?id=544940 Summary: launch cupsd via xinetd ... Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Printing AssignedTo: jsmeix@novell.com ReportedBy: mmeeks@novell.com QAContact: jsmeix@novell.com CC: coolo@suse.de Found By: --- Intel / Moblin have some patches to allow CUPS to be launched via xinetd. This seems to work quite nicely, and of course saves a lot of boot time & pain - at the cost of not having cupsd running all the time (and presumably sharing your printers - or whatever) - though I guess xinetd can start it for remote users too: I've just not tested it. Patches attached; we'll ship this in SUSE/Moblin - it'd be great to have it in 11.2 too. -- 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=544940 User mmeeks@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c1 --- Comment #1 from Michael Meeks <mmeeks@novell.com> 2009-10-07 05:13:28 MDT --- Created an attachment (id=321427) --> (http://bugzilla.novell.com/attachment.cgi?id=321427) xinetd patch -- 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=544940 User mmeeks@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c2 --- Comment #2 from Michael Meeks <mmeeks@novell.com> 2009-10-07 05:14:03 MDT --- Created an attachment (id=321428) --> (http://bugzilla.novell.com/attachment.cgi?id=321428) extended xinetd config -- 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=544940 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c3 Johannes Meixner <jsmeix@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |UPSTREAM --- Comment #3 from Johannes Meixner <jsmeix@novell.com> 2009-10-07 05:50:25 MDT --- Please file such major enhancement requests directly to upstream because only upstream can decide if it could be accepted via http://www.cups.org/str.php?U "Submit Bug or Feature Request" -- 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=544940 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c6 --- Comment #6 from Johannes Meixner <jsmeix@novell.com> 2009-10-07 06:15:47 MDT --- Filed upstream feature request: STR #3366: launch cupsd via xinetd http://www.cups.org/str.php?L3366 -- 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=544940 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c7 --- Comment #7 from Johannes Meixner <jsmeix@novell.com> 2009-10-07 06:36:42 MDT --- I do not understand why it saves a lot of boot time? On my openSUSE 11.1 workstation the "rccups start" command returns after about a tenth of a second so that this command alone should not make the boot time longer. On my openSUSE 11.1 workstation only "smb" depends on "cupsd" because in /etc/init.d/smb there is ------------------------------------------------------- # Should-Start: cupsd winbind nmb ------------------------------------------------------- but no other service depends on "smb" so that from my current point of view starting cupsd during system boot should not cause "pain" as you described in comment #0. -- 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=544940 User mmeeks@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c8 --- Comment #8 from Michael Meeks <mmeeks@novell.com> 2009-10-07 08:12:30 MDT --- 'rccups start' ? - surely that forks and exits before spawns cups - so that time is pretty meaningless. Doing an strace -f -ttt - it took me of the order of a second to get a cups up and quiescent on a very fast, un-loaded, warm-disk-cache, machine. the problem is not - that cups might be able to start fast on an un-loaded machine with all it's data set in memory; but that when you have fifteen processes burning only a second of (a fast) CPU at start - that is a fifteen second boot ;-) and when you have fifteen processes all wanting to read 500k of scattered data - that is a lot of seeks to process. So - anything to defer that work much appreciated: and of course, the race is still then on to make cups start as quickly as possible when xinetd starts it :-) -- 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=544940 User jsmeix@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c9 --- Comment #9 from Johannes Meixner <jsmeix@novell.com> 2009-10-07 08:51:51 MDT --- I think the 'rccups start' time is not meaningless, If this would take a longer time until it returns, it could delay the boot process and I liked to mention that this does not happen. If I understand you correctly, the issue is not that cupsd start needs an unreasonable amount of resources but the issue is to get as many processes as possible out of what is actually required to boot the system i.e. when cupsd is started by xinetd its start is deferred until it is actually needed for the first time. -- 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=544940 User mmeeks@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544940#c10 --- Comment #10 from Michael Meeks <mmeeks@novell.com> 2009-10-08 02:40:01 MDT --- Well - certainly, if rccups start takes a minute - we will have an extra minute on boot time, so it's appreciated that it only takes a few ms ;-) but many rc scripts fairly quickly fork, exec and return in a similar way. And yes - we need to get as much work deferred as humanly possible to get a five second boot; and cups is just one part of that. Thanks. -- 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.
participants (1)
-
bugzilla_noreply@novell.com