* 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
* Re: Scheduler, or task priority problem ... i need help
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
0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2002-09-05 9:24 UTC (permalink / raw)
To: Thomas TESTASECCA; +Cc: Mtd
thomas.testasecca@etictelecom.com said:
> 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.
That should be fixed in the current CVS code. Can you try it?
I suppose there's something to be said for backporting the cond_resched()
additions to the 2.4 tree too.
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Scheduler, or task priority problem ... i need help
2002-09-05 9:24 ` David Woodhouse
@ 2002-09-05 13:57 ` Thomas TESTASECCA
2002-09-05 15:30 ` David Woodhouse
0 siblings, 1 reply; 5+ messages in thread
From: Thomas TESTASECCA @ 2002-09-05 13:57 UTC (permalink / raw)
To: David Woodhouse; +Cc: Mtd
Hi,
What do i need to do to update my kernel with last mtd cvs ?
Is just copying the files ?
tom
-----Message d'origine-----
De : linux-mtd-admin@lists.infradead.org
[mailto:linux-mtd-admin@lists.infradead.org]De la part de David
Woodhouse
Envoye : jeudi 5 septembre 2002 11:25
A : Thomas TESTASECCA
Cc : Mtd
Objet : Re: Scheduler, or task priority problem ... i need help
thomas.testasecca@etictelecom.com said:
> 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.
That should be fixed in the current CVS code. Can you try it?
I suppose there's something to be said for backporting the cond_resched()
additions to the 2.4 tree too.
--
dwmw2
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Scheduler, or task priority problem ... i need help
2002-09-05 13:57 ` Thomas TESTASECCA
@ 2002-09-05 15:30 ` David Woodhouse
0 siblings, 0 replies; 5+ messages in thread
From: David Woodhouse @ 2002-09-05 15:30 UTC (permalink / raw)
To: Thomas TESTASECCA; +Cc: Mtd
thomas.testasecca@etictelecom.com said:
> What do i need to do to update my kernel with last mtd cvs ? Is just
> copying the files ?
Yep.
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Scheduler, or task priority problem ... i need help
[not found] <8622.1031245320@redhat.com>
@ 2002-09-06 14:19 ` Thomas TESTASECCA
0 siblings, 0 replies; 5+ messages in thread
From: Thomas TESTASECCA @ 2002-09-06 14:19 UTC (permalink / raw)
To: Russell King - ARM Linux, David Woodhouse
Cc: Mtd, Linux-Arm-Kernel@Lists. Arm. Linux. Org. Uk, Der Herr Hofrat
Hi,
I have updated the MTD/JFFS2 drivers from current CVS, it works fine :)
Thanks for everything !!
greetings
TOM
-----Message d'origine-----
De : David Woodhouse [mailto:dwmw2@redhat.com]De la part de David
Woodhouse
Envoye : jeudi 5 septembre 2002 19:02
A : Russell King - ARM Linux
Cc : Der Herr Hofrat; Thomas TESTASECCA; Linux-Arm-Kernel@Lists. Arm.
Linux. Org. Uk
Objet : Re: Scheduler, or task priority problem ... i need help
linux@arm.linux.org.uk said:
> I'd recommend that you talk to the jffs2 people (see other mailing
> lists) about this problem - jffs2 shouldn't suck all the CPU time in
> the world, especially when there are other higher-priority threads
> wanting to run.
The current CVS code did get sprinkled with cond_resched() fairly recently.
I suppose the 2.4 branch could do with the same.
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
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