Roland Tollenaar wrote:
Hi Jan,

Thanks for the response.

The device that gets lost is the latter. Its a recent problem and we have exchanged the network card (we are using the realtek 8139 chip) but although the problem has not occurred again (in the last 30 minutes) I was wondering whether there were any other possible causes of this happening that are worth investigating?

Advice would be appreciated.

That's weird. The /proc output is built from iterating over all possible device numbers, looking the structure up via rtdev_get_by_index(). So if /proc tells you that there is no rteth0 anymore while the rest of RTnet still uses it, something must have corrupted rtnet_devices[]. Maybe some
Perhaps I have not been entirely clear in my email. But the application that generally uses rteth0 does not get hold of it either when it cannot be found in /proc/rtnet/devices. It appears that the application did have hold of rteth0 but lost it. When checking /proc/rtnet/devices after the application no longer has access to it, it appears to be gone.

The application code has been operational for 7 months on a number of separate but identical machines and never displayed this behaviour before. Only one of the machines is now playing up with this.

Same hardware, specifically same NIC and driver?


Its a bit worrying if you tell me that once the output of /proc/rtnet/devices has been generated, there is no more updating done there.

No, no. It is generated from the internal device registry each time you dump /proc/rtnet/devices. So it does reflect the current state.

Maybe you want to check now if someone deregisters the device. You could add a WARN_ON(1); into rt_unregister_rtnetdev(). After the device disappeared, you should either have a stack dump in your kernel log or... we really see a memory corruption. :-/

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to