From: Rik van Riel <riel@conectiva.com.br>
To: deprogrammer <ttb@tentacle.dhs.org>
Cc: linux-mm@kvack.org
Subject: Re: test8-vmpatch performs great here!
Date: Fri, 8 Sep 2000 20:29:43 -0300 (BRST) [thread overview]
Message-ID: <Pine.LNX.4.21.0009082027060.1049-100000@duckman.distro.conectiva> (raw)
In-Reply-To: <20000908192042.A31685@tentacle.dhs.org>
On Fri, 8 Sep 2000, deprogrammer wrote:
> The box remained somewhat interactive, but a few times during
> the tar zxvf the box would stop responding for a few seconds
> during which there would be alot of disk activity, same for the
> tar xvf.
This seems to be due to kflushd (bdflush) waking up
tasks in LIFO order ...
>From fs/buffer.c:
in wakeup_bdflush()
2435 __set_current_state(TASK_UNINTERRUPTIBLE);
2436 add_wait_queue(&bdflush_done, &wait);
2437
2438 wake_up_process(bdflush_tsk);
2439 schedule();
(which adds our task to the front of the wait queue)
and in kflushd()
2622 wake_up(&bdflush_done);
(which wakes up the first task on the wait queue)
This results in LIFO ordering for the wakeup. I've
fixed this in my local tree (doing a wake_up_all()
instead) and will release a new patch after tweaking
things a bit more.
regards,
Rik
--
"What you're running that piece of shit Gnome?!?!"
-- Miguel de Icaza, UKUUG 2000
http://www.conectiva.com/ http://www.surriel.com/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next prev parent reply other threads:[~2000-09-08 23:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-08 23:20 deprogrammer
2000-09-08 23:29 ` Rik van Riel [this message]
2000-09-09 9:06 ` Stephen C. Tweedie
2000-09-09 22:12 ` Rik van Riel
2000-09-08 23:58 ` Martin Josefsson
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=Pine.LNX.4.21.0009082027060.1049-100000@duckman.distro.conectiva \
--to=riel@conectiva.com.br \
--cc=linux-mm@kvack.org \
--cc=ttb@tentacle.dhs.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