Jacob Gorm Hansen
2005-Apr-07 02:43 UTC
[Xen-devel] /sbin/hotplug exec''d lots of times during boot
hi, I just added a printk to do_execve() in xenolinux0, and noticed that /sbin/hotplug is being exec''ed more than a hundred times during boot, and that this happens before /sbin/init is exec''ed. This is with a version of xen-unstable less than one month old. It is probably a Linux issue, I was just wondering if anyone else had seen the same behaviour, and if this is supposed to happen (these days you never know)? Could it be the USB subsystem is acting weird? thanks, Jacob _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Chris Wright
2005-Apr-07 08:20 UTC
Re: [Xen-devel] /sbin/hotplug exec''d lots of times during boot
* Jacob Gorm Hansen (jacobg@diku.dk) wrote:> I just added a printk to do_execve() in xenolinux0, and noticed that > /sbin/hotplug is being exec''ed more than a hundred times during boot, > and that this happens before /sbin/init is exec''ed.This sounds pretty normal for Linux. Each kobject_add can generate a hotplug event, and execve("/sbin/init") happens quite late during bootup. thanks, -chris _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jacob Gorm Hansen
2005-Apr-07 16:29 UTC
Re: [Xen-devel] /sbin/hotplug exec''d lots of times during boot
Chris Wright wrote:> * Jacob Gorm Hansen (jacobg@diku.dk) wrote: > >>I just added a printk to do_execve() in xenolinux0, and noticed that >>/sbin/hotplug is being exec''ed more than a hundred times during boot, >>and that this happens before /sbin/init is exec''ed. > > > This sounds pretty normal for Linux. Each kobject_add can generate a > hotplug event, and execve("/sbin/init") happens quite late during bootup.No wonder it is slow to boot then ;-) ... How can one be sure that the /sbin/hotplugs are no longer running when /sbin/init runs, i.e. that init has pid==1? Are there no forks allowed in /sbin/hotplug? thanks, Jacob _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Chris Wright
2005-Apr-07 17:19 UTC
Re: [Xen-devel] /sbin/hotplug exec''d lots of times during boot
* Jacob Gorm Hansen (jacobg@diku.dk) wrote:> Chris Wright wrote: > >* Jacob Gorm Hansen (jacobg@diku.dk) wrote: > > > >>I just added a printk to do_execve() in xenolinux0, and noticed that > >>/sbin/hotplug is being exec''ed more than a hundred times during boot, > >>and that this happens before /sbin/init is exec''ed. > > > > > >This sounds pretty normal for Linux. Each kobject_add can generate a > >hotplug event, and execve("/sbin/init") happens quite late during bootup. > > No wonder it is slow to boot then ;-) ... How can one be sure that the > /sbin/hotplugs are no longer running when /sbin/init runs, i.e. that > init has pid==1? Are there no forks allowed in /sbin/hotplug?pid == 1 starts long before is execs itself into /sbin/init. thanks, -chris _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel