LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-30-2011, 06:44 AM   #1
Sapfeer
LQ Newbie
 
Registered: Dec 2009
Posts: 12

Rep: Reputation: 0
Ubunt 9.04 slow boot


Hi there!

My Ubuntu boot very slow and I'm getting the following messages in dmesg which can point to the matter of slowing down the boot process:

Code:
[    5.983058] type=1505 audit(1312030470.538:2): operation="profile_load" pid=483 name=/usr/share/gdm/guest-session/Xsession
[    6.003696] type=1505 audit(1312030470.558:3): operation="profile_load" pid=484 name=/sbin/dhclient3
[    6.004503] type=1505 audit(1312030470.558:4): operation="profile_load" pid=484 name=/usr/lib/NetworkManager/nm-dhcp-client.action
[    6.004975] type=1505 audit(1312030470.558:5): operation="profile_load" pid=484 name=/usr/lib/connman/scripts/dhclient-script
[    6.057519] type=1505 audit(1312030470.608:6): operation="profile_load" pid=485 name=/usr/bin/evince
[    6.069471] type=1505 audit(1312030470.618:7): operation="profile_load" pid=485 name=/usr/bin/evince-previewer
[    6.076404] type=1505 audit(1312030470.628:8): operation="profile_load" pid=485 name=/usr/bin/evince-thumbnailer
[    6.138883] type=1505 audit(1312030470.688:9): operation="profile_load" pid=488 name=/usr/bin/freshclam
[    6.154024] type=1505 audit(1312030470.708:10): operation="profile_load" pid=489 name=/usr/lib/cups/backend/cups-pdf
[    6.154974] type=1505 audit(1312030470.708:11): operation="profile_load" pid=489 name=/usr/sbin/cupsd
[   30.885054] udev: starting version 147


Note the time between the last two lines. I didn't find any information in the internet about what audit is... Any comments and advices are welcome!..
 
Old 07-30-2011, 01:57 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Looking at it, it's not audit (which seems to be some kind of logging utility), but /usr/sbin/cupsd which is slowing you down (look at the ends of the lines). Do you use your printer at all? Because cupsd is your printer daemon.

EDIT: Sorry, I think this will work better for version 9:
Code:
sudo update-rc.d -f cups remove
This will stop it from starting at boot time (hopefully)

Last edited by Snark1994; 07-30-2011 at 01:59 PM.
 
Old 07-30-2011, 03:37 PM   #3
Sapfeer
LQ Newbie
 
Registered: Dec 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Snark1994 View Post
Looking at it, it's not audit (which seems to be some kind of logging utility), but /usr/sbin/cupsd which is slowing you down (look at the ends of the lines). Do you use your printer at all? Because cupsd is your printer daemon.

EDIT: Sorry, I think this will work better for version 9:
Code:
sudo update-rc.d -f cups remove
This will stop it from starting at boot time (hopefully)
Thanks for reply! I don't use printers - this was one of the first services to disable on my laptop. And I don't run auditd either. Here is output

Code:
/home/sapfeer $ pgrep -fl audit

/home/sapfeer $ pgrep -fl cup

/home/sapfeer $ find /etc/rc* -iname \*cup\*
/etc/rc1.d/K80cups
/etc/rc2.d/K80cups
/etc/rc3.d/K80cups
/etc/rc4.d/K80cups
/etc/rc5.d/K80cups
...so unfortunately, that's not my case. It seems that some process like audit is trying to load monitored applications profiles and it tries to find cupsd which is disabled and slows down the boot process
 
Old 07-30-2011, 03:51 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Huh. I've done a bit more research; it's not auditd, it's AppArmour. I'm not entirely sure how to configure it, but this link should help
 
Old 07-31-2011, 06:13 AM   #5
Sapfeer
LQ Newbie
 
Registered: Dec 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Snark1994 View Post
Huh. I've done a bit more research; it's not auditd, it's AppArmour. I'm not entirely sure how to configure it, but this link should help
Thanks for reply! Could you please share your way how did you find out that it was apparmor?.. I'm interested on how did you investigate it) But unfortunately, disabling cupsd profile didn't make boot process faster:
Code:
/home/sapfeer $ sudo apparmor_status 
apparmor module is loaded.
4 profiles are loaded.
4 profiles are in enforce mode.
   /usr/lib/connman/scripts/dhclient-script
   /usr/share/gdm/guest-session/Xsession
   /sbin/dhclient3
   /usr/lib/NetworkManager/nm-dhcp-client.action
0 profiles are in complain mode.
1 processes have profiles defined.
1 processes are in enforce mode :
   /sbin/dhclient3 (2153) 
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
Probably, little more information could make situation clearer:
Code:
4.463935] PM: Marking nosave pages: 0000000000001000 - 0000000000006000
[    4.463939] PM: Marking nosave pages: 000000000009f000 - 0000000000100000
[    4.463944] PM: Basic memory bitmaps created
[    4.473160] PM: Basic memory bitmaps freed
[    4.477163] ieee1394: Host added: ID:BUS[0-00:1023]  GUID[001e8c000170872e]
[    4.510125] kjournald starting.  Commit interval 5 seconds
[    4.510155] EXT3-fs: mounted filesystem with ordered data mode.
[    5.941849] type=1505 audit(1312107574.576:2): operation="profile_load" pid=483 name=/usr/share/gdm/guest-session/Xsession
[    5.962491] type=1505 audit(1312107574.596:3): operation="profile_load" pid=484 name=/sbin/dhclient3
[    5.963310] type=1505 audit(1312107574.596:4): operation="profile_load" pid=484 name=/usr/lib/NetworkManager/nm-dhcp-client.action
[    5.963782] type=1505 audit(1312107574.596:5): operation="profile_load" pid=484 name=/usr/lib/connman/scripts/dhclient-script
[   30.699228] udev: starting version 147
[   30.745031] lp: driver loaded but no devices found
[   30.788719] EXT3 FS on sda2, internal journal
[   30.902619] cfg80211: Calling CRDA to update world regulatory domain
[   30.917811] nvidia: module license 'NVIDIA' taints kernel.
[   30.917815] Disabling lock debugging due to kernel taint
Can my problem be connected to udev?.
 
Old 08-01-2011, 04:53 AM   #6
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, I'd seen AppArmour come up as top result in google a couple of times, but had ignored it because I was foolishly sure that auditd was generating them. Eventually I searched for "ubuntu 9 dmesg audit" and the second result was this.

And yes, it seems to be udev. There's a bug report, which is mentioned to affect Lucid/Maverick/Natty. No mention is made of Jaunty/Karmic, but there doesn't seem to be any consensus on what's actually going wrong...

A similar problem is described here, which is solved, but there the pause is after the udev message rather than before. Still, no harm in trying

Couple of other suggestions; you're running version 9, which is no longer supported. Have you considered upgrading to at least Maverick? It wouldn't need to replace your current install, you could do it side-by-side until you've checked whether the problem persists. It's probably a good idea anyway, as you're missing out on potentially important updates. If that fails, and the problem is big enough to bother you, I would humbly suggest trying another distro. I eventually got annoyed enough at Ubuntu's speed issues that (after a couple of false starts) I settled on Arch as a nice, relatively easy to use, configurable and fast distribution. Obviously, it's down to personal taste

Best of luck,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
any debian/ubunt based liveCD's that boot ok on iMac 27" iChick Linux - Hardware 4 10-22-2010 05:50 PM
slow to boot, slow dns resolution after host name change FC5 edavis6678 Linux - Newbie 3 01-03-2007 07:26 PM
problems by instaling ubunt on my notebook segaja Linux - Laptop and Netbook 2 11-01-2006 10:20 PM
Problem booting Ubunt robertri Linux - Desktop 1 08-12-2006 10:14 AM
Will Ubunt 5.10 work on my PC? Hamlets Ubuntu 6 05-31-2006 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration