HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   Is the linux userspace qualified to trigger a watchdog? (http://www.howtoforge.com/forums/showthread.php?t=56175)

00schneider 14th February 2012 17:10

Is the linux userspace qualified to trigger a watchdog?
 
Hello,

On my embedded board I have a watchdog which does a reset when it is not triggered longer than 1.5 seconds. I have a kernel module that controls that watchdog and I have the opportunity to trigger the watchdog from userspace via sysctl.
From time to time the board makes a reset (by watchdog) and I don't exactly know why.

I wrote a little program in userspace which contains nothing but a usleep(50) and time measurement before and after the operation (with clock_gettime(CLOCK_REALTIME, &mytime) ) and over 5 days I measured maximum values about 3 seconds.

So my question is: Is the linux userspace qualified at all to trigger a watchdog?

till 14th February 2012 17:20

Have you tried to set a higher priority of your application with the "nice" command?


All times are GMT +2. The time now is 11:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.