public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Thomas TESTASECCA" <thomas.testasecca@etictelecom.com>
To: "Mtd" <linux-mtd@lists.infradead.org>
Subject: Scheduler, or task priority problem ... i need help
Date: Thu, 5 Sep 2002 11:00:18 +0200	[thread overview]
Message-ID: <AEEFILJDOOHJLBCFOBJDIEIJDAAA.thomas.testasecca@etictelecom.com> (raw)

 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

             reply	other threads:[~2002-09-05  9:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05  9:00 Thomas TESTASECCA [this message]
2002-09-05  9:24 ` Scheduler, or task priority problem ... i need help 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AEEFILJDOOHJLBCFOBJDIEIJDAAA.thomas.testasecca@etictelecom.com \
    --to=thomas.testasecca@etictelecom.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox