public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Scheduler, or task priority problem ... i need help
@ 2002-09-05  9:00 Thomas TESTASECCA
  2002-09-05  9:24 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas TESTASECCA @ 2002-09-05  9:00 UTC (permalink / raw)
  To: Mtd

 Hi all,
I works on our design which is similar to the cdb89712 dev board ( ep7311,
1x16bits*4Mo strataflash ...)

I works with arm-linux-2.4.18-rmk7.

This is my problem :

I' ve got a periodic task which feeds the watchdog every 2 seconds, let's us
call it the WD task.

It's a shell script which looks like that :

while true; do

    echo 3000 > /proc/WD # i feed the Watch Dog

    sleep 2

done

Ok, it works fine most of the time.

I also have an ftp server running (pure-ftpd), with the "ftp" directory into
a jffs2.

When i upload (by ftp) a file into the jffs2 (for a 200kByte file it takes
approx 40s) during the upload time the pure-ftpd process really loads the
system, and my WD task, doesn't run anymore until the end of the upload.

It looks like the ftpd proccess had a higher priority than the WD process,
or it is the scheduler that doesn't do his job.

So i've tried to run "nice" on the two process, with max priority for WD
task, and min prio for ftp : the result is a little better : the WD process
runs approx every 15-20s during the upload ( instead of 2seconds !!! ).


I think it may come from MTD/JFFS2 that doesn't give the hand back to the
kernel.

But that's not satisfactory !! i want the WD fed, when i want !!

Does anyone has experienced the same kind of problem ?

Any idea will be really appreciate ...

Thanks

Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <8622.1031245320@redhat.com>]

end of thread, other threads:[~2002-09-06 14:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05  9:00 Scheduler, or task priority problem ... i need help Thomas TESTASECCA
2002-09-05  9:24 ` David Woodhouse
2002-09-05 13:57   ` Thomas TESTASECCA
2002-09-05 15:30     ` David Woodhouse
     [not found] <8622.1031245320@redhat.com>
2002-09-06 14:19 ` Thomas TESTASECCA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox