It's highly unlikely that the audit_printk_skb() function is itself slowing down your boot; it is designed to operate with extremely low overhead, and the ratelimiting that is in effect here means that the slowest portion of the function, actually writing characters to the system log, is skipped entirely.
Probably what is actually slow is recompiling AppArmor policies; this is an extremely computational heavy task that has been subject to extensive optimization. We're planning further caching efforts in the future to reduce the number of times that the policies must be recomputed. Chances are quite good a second reboot, immediately after this one, would run faster, since the profiles would probably not need to be rebuilt immediately. Thanks -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1458014 Title: audit_printk_skb slowing down boot Status in apparmor package in Ubuntu: New Bug description: Subjectively, my system slowed down after the recent GRUB update. As you can see from the following, audit_printk_skb is consuming a lot of boot time: [ 13.243280] vboxdrv: Successfully loaded version 4.3.10_Ubuntu (interface 0x001a0007). [ 13.257947] vboxpci: IOMMU not found (not registered) [ 13.862999] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 13.865996] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 14.195776] r8169 0000:04:00.0 eth0: link down [ 14.195796] r8169 0000:04:00.0 eth0: link down [ 14.195827] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 14.196138] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 15.769090] r8169 0000:04:00.0 eth0: link up [ 15.769097] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 16.223084] init: plymouth-upstart-bridge main process ended, respawning [ 42.424836] audit_printk_skb: 195 callbacks suppressed [ 42.424839] type=1400 audit(1431891089.974:77): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2632 comm="apparmor_parser" [ 42.424844] type=1400 audit(1431891089.974:78): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2632 comm="apparmor_parser" [ 42.425185] type=1400 audit(1431891089.974:79): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2632 comm="apparmor_parser" (END) ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: apparmor 2.8.95~2430-0ubuntu5.1 ProcVersionSignature: Ubuntu 3.13.0-53.88-generic 3.13.11-ckt19 Uname: Linux 3.13.0-53-generic i686 ApportVersion: 2.14.1-0ubuntu3.10 Architecture: i386 CurrentDesktop: Unity Date: Fri May 22 14:18:46 2015 EcryptfsInUse: Yes InstallationDate: Installed on 2014-04-29 (388 days ago) InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417) ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.13.0-53-generic root=UUID=8cf458ab-4ff9-4505-9a16-27da1ea7ec10 ro quiet splash vt.handoff=7 SourcePackage: apparmor Syslog: UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1458014/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

