On Mon, Feb 16, 2009 at 4:16 PM, Tom London selinux@gmail.com wrote:
On Mon, Feb 16, 2009 at 8:33 AM, Harald Hoyer harald@redhat.com wrote:
How to generate a bootchart:
- install bootchart
# yum install bootchart
note: this modifies your /etc/grub.conf and adds "init=/sbin/bootchartd"
- reboot
- login
- start a terminal
$ su - # bootchart -f png
produces bootchart.png
Does this work if your root is encrypted?
Doesn't seem to work for me.
Appears it is looking for '/sbin/bootchartd' before luksOpen/mount/... I never get prompted for passphrase.
Anyway, end up with "won't boot" kernels in /boot/grub/grub.conf: I have to remove 'init=/sbin/bootchartd' from boot parameters.
BZ'ed here: https://bugzilla.redhat.com/show_bug.cgi?id=485847
This now works!
Looking at the bootchart, appears that system is spending about 5 seconds elapsed time doing a "find".
I think I tracked this down to the following snippet from /etc/rc.d/rc.sysinit:
# Clean up /var. rm -rf /var/lock/cvs/* /var/run/screen/* find /var/lock /var/run ! -type d -exec rm -f {} ; rm -f /var/lib/rpm/__db* &> /dev/null rm -f /var/gdm/.gdmfifo &> /dev/null
The problem is, I seem to have over 325 entries in /var/run/gdm of the form:
[root@tlondon gdm]# ls |wc 326 326 6520 [root@tlondon gdm]#
[root@tlondon gdm]# ls -lt | head total 1304 drwxrwxrwt 2 tbl tbl 4096 2009-02-17 09:02 auth-for-tbl-VJxBYM drwxrwxrwt 2 gdm gdm 4096 2009-02-17 09:01 auth-for-gdm-Lpopiu drwxrwxrwt 2 tbl tbl 4096 2009-02-16 07:39 auth-for-tbl-CAt0DD drwxrwxrwt 2 gdm gdm 4096 2009-02-16 07:39 auth-for-gdm-zEKwWb drwxrwxrwt 2 tbl tbl 4096 2009-02-13 17:25 auth-for-tbl-Hhw23F drwxrwxrwt 2 gdm gdm 4096 2009-02-13 17:25 auth-for-gdm-CsXMMG drwxrwxrwt 2 gdm gdm 4096 2009-02-08 15:27 auth-for-gdm-KVALOw drwxrwxrwt 2 tbl tbl 4096 2009-02-08 15:27 auth-for-tbl-2JXTRC drwxrwxrwt 2 gdm gdm 4096 2009-02-06 12:56 auth-for-gdm-EOu7CD [root@tlondon gdm]#
Oldest entries:
[root@tlondon gdm]# ls -lrt | head total 1304 drwxrwxrwt 2 gdm gdm 4096 2008-10-17 14:11 auth-for-gdm-sA9Si4 drwxrwxrwt 2 tbl tbl 4096 2008-10-20 23:12 auth-for-tbl-0mcMmJ drwxrwxrwt 2 gdm gdm 4096 2008-10-20 23:12 auth-for-gdm-K9AaX6 drwxrwxrwt 2 tbl tbl 4096 2008-10-28 10:11 auth-for-tbl-9DQPFo drwxrwxrwt 2 gdm gdm 4096 2008-10-28 10:11 auth-for-gdm-qW9ehq drwxrwxrwt 2 tbl tbl 4096 2008-10-28 10:30 auth-for-tbl-tyoE78 drwxrwxrwt 2 gdm gdm 4096 2008-10-28 10:30 auth-for-gdm-rAR0ac drwxrwxrwt 2 tbl tbl 4096 2008-10-28 14:15 auth-for-tbl-O6TyNk drwxrwxrwt 2 gdm gdm 4096 2008-10-28 14:15 auth-for-gdm-KscdOd [root@tlondon gdm]#
What should be cleaning these up?
tom