-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Takeshi,

could you please trace InitNG, i.e. attach a gdb to it and when the timeout 
happens, post a stack trace to the ML? I can only make wild guesses here. 
One would be to ask whether your device has any NICs or whether nwpboot 
enables NIC hardware or not.

I fear InitNG gets stuck somewhere in the initng_io_module_poll(int timeout) 
heap. Would be good to know definetly where.

Thanks.

                        -- Eric

On Thursday 05 November 2009, Takeshi MATSUOKA 
<[email protected]> wrote:
> Hi Eric and Ismael, and folks,
> 
> > Today this problem occurred again, but the latency was not just two
> > minutes.
> 
> Sorry, this report was wrong, it was not correct time.
> I tested it again last night, and confirmed that the latency was just
> two minutes.
> 
> BTW, I found two minutes delay (not a timer) in
> 'plugins/netdev/initng_netdev.c'.
> probe_network_devices() : initng_global_set_sleep(120);
> 
> I changed this value to 60 sec for trial.
> The result was following.
> Jan  1 00:02:13 MYHOST InitNG: Service service/nwpboot is starting.
> Jan  1 00:02:18 MYHOST service/nwpboot: writing done
> Jan  1 00:03:18 MYHOST InitNG: Service service/nwpboot is up.
> 
> I think my nwpboot service doesn't depend on probing any network
> devices. Would you show me a purpose of this delay?
> I want to customize this value if possible.
> 
> regards,
> Takeshi.
> 
> > Hi Eric and Ismael,
> >
> > Thanks for your quick response.
> > Today this problem occurred again, but the latency was not just two
> > minutes.
> >
> > I'll try the test with debug output, and trace it with dependent
> > programs.
> >
> > regards,
> > Takeshi.
> >
> >> Eric MSP Veith escribió:
> >>> Welcome to the list!
> >>>
> >>> There's no timeout in InitNG's service handling that produces a "ok"
> >>> signal. At least none that I know about. The great master, Ismael,
> >>> should verify this. ;-)
> >>
> >> We have a timeout for hanged services, but this has nothing to do with
> >> it, because it's not failing.
> >>
> >>> Let's start by adding some debug output. Could you please modify your
> >>> service that it looks like this:
> >>>
> >>> ----%<----
> >>> echo $(date) nwpboot
> >>> time /usr/bin/nwpboot /root/nwp_program userapp
> >>> rc=$?
> >>> echo $(date) done nwpboot
> >>> exit $rc
> >>> ---->%----
> >>>
> >>> Let's see how it behaves. :-)
> >>
> >> If it's a problem with the program, tracing it would give useful info
> >> :).
> >>
> >>
> >>
> >> ----------------------------------------------------------------------
> >>--
> 
> --
> _______________________________________________
> Initng mailing list
> [email protected]
> http://jw.dyndns.org/mailman/listinfo/initng
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrzl9sACgkQhS0drJ3goJIC/gCfa/lkg64MO1HsrVTF8YYwyxY7
pGAAnidH0Ahg0q+djsM5kTSerPoVMuML
=OUIr
-----END PGP SIGNATURE-----
--
_______________________________________________
Initng mailing list
[email protected]
http://jw.dyndns.org/mailman/listinfo/initng

Reply via email to