View unanswered posts | View active topics It is currently Thu Jun 20, 2013 10:17 am



Reply to topic  [ 4 posts ] 
 Watchdog take lot of CPU 
Author Message

Joined: Wed Oct 21, 2009 6:02 pm
Posts: 13
Post Watchdog take lot of CPU
Hello

I am interested to take advantage of the watchdog functionality of fit-pc2 (which is a great computer by the way :-)).

I am using gentoo with the 2.6.32 kernel, I have enabled CONFIG_SBC_FITPC2_WATCHDOG=y on the config file and installed the watchdog daemon. But the daemon take a lot of CPU, every 5 seconds (approximately) it take 100 % of my CPU.

Is it normal ? I think it's not...

Is there another way to take advantage of the watchdog functionality ?
I have thought of a cron job which would write on the /dev/watchdog each 30 s, with watchdog activated on the bios ... will it work ??

PS : sorry for my bad english


Wed Dec 30, 2009 11:55 pm
Profile

Joined: Wed Oct 21, 2009 6:02 pm
Posts: 13
Post Re: Watchdog take lot of CPU
I tried :
echo "\0" | sudo tee /dev/watchdog

and it also take 100 % of my CPU for 2 second, as the daemon does.

So the daemon isn't the problème, it's the kernel driver...

Do you have an idea to solve the problem ?

PS : I didn't test this with watchdog activated in the BIOS, but I guess it's not necessary ... isn't it ?


Thu Dec 31, 2009 3:47 pm
Profile

Joined: Sun Apr 26, 2009 3:24 pm
Posts: 265
Post Re: Watchdog take lot of CPU
You will need to recompile watchdog driver.

In drivers/watchdog/sbc_fitpc2_wdt.c:
Instead mdelay(100) and mdelay(200) use msleep(100) and msleep(200).

Thanks for info, we will send this update upstream.

_________________
Denis, Fit-PC2/3/IntensePC support


Mon Jan 04, 2010 7:40 pm
Profile

Joined: Wed Oct 21, 2009 6:02 pm
Posts: 13
Post Re: Watchdog take lot of CPU
it works :-)

Thanks a lot.


Mon Jan 04, 2010 10:54 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.