Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th February 2012, 16:10
00schneider 00schneider is offline
Junior Member
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 14th February 2012, 16:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,034
Thanks: 826
Thanked 5,382 Times in 4,229 Posts
 
Default

Have you tried to set a higher priority of your application with the "nice" command?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
Unsupported memory accesses after HowTo Installing Xen On An Ubuntu 8.04 petervanbussel HOWTO-Related Questions 10 20th December 2009 19:46
PPTP causes Postfix reload fpizzinini Server Operation 4 3rd October 2008 19:43
Problems installing NForce4 sound drivers Wraithfire Installation/Configuration 21 16th April 2006 17:30
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 12:59


All times are GMT +2. The time now is 02:21.


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