Watchdog take lot of CPU

Post Reply
akira86
Posts: 13
Joined: Wed Oct 21, 2009 6:02 pm

Watchdog take lot of CPU

Post by akira86 »

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

akira86
Posts: 13
Joined: Wed Oct 21, 2009 6:02 pm

Re: Watchdog take lot of CPU

Post by akira86 »

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 ?

Denis
Posts: 301
Joined: Sun Apr 26, 2009 3:24 pm

Re: Watchdog take lot of CPU

Post by Denis »

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.
Compulab's Linux support

akira86
Posts: 13
Joined: Wed Oct 21, 2009 6:02 pm

Re: Watchdog take lot of CPU

Post by akira86 »

it works :-)

Thanks a lot.

Post Reply

Return to “Linux on fit-PC2”