From: Alexander Zarochentsev <zam@namesys.com>
To: reiserfs-list@namesys.com
Cc: David Masover <ninja@slaphack.com>
Subject: Re: BitTorrent+Reiser4: curiouser and curiouser
Date: Fri, 22 Sep 2006 12:45:47 +0400 [thread overview]
Message-ID: <200609221245.47857.zam@namesys.com> (raw)
In-Reply-To: <4513827A.50809@slaphack.com>
Hi,
On 22 September 2006 10:28, David Masover wrote:
> Azureus had a problem. Once it got up to a good clip downloading, it
> would thrash the disk. It would thrash the disk, and the system, so
> hard that even web browsing was difficult, due to disk access being
> many, many times slower than Internet access, even an Internet which
> is being hogged by BitTorrent.
>
> After changing Azureus' cache to 32 megs, and telling it not to write
> files immediately, I thought I had the problem solved -- no thrashing
> at all. Until the cache got full. Then: Thrashing. Less freqent,
> but much more vigorous -- Azureus becomes extremely unresponsive for
> a few minutes.
>
> It shouldn't be touching the disk AT ALL when there's over a gig of
> FREE RAM (as in, neither buffer nor cache nor actually used yet), and
> the file I'm attempting to download is less than 200 megs. I tried
> an strace, but as I am not at all skilled in the ways of debugging or
> reverse engineering, I got syscall spam -- a 200 meg log file, and
> when I finally found a decent way to analyze it, I found most of
> Azureus' system call wall time is spent in futex(). Huh?
I guess futex (, FUTEX_WAIT, ) calls can be ignored in this analysis.
They just wait another threat to call futex(, FUTEX_WAKE, ).
Interesting to find that thread and look what it was doing before
FUTEX_WAKE? Or FUTEX_WAIT returns ETIMEDOUT?
> Looked up "futex" on Wikipedia, and I still have no clue how this
> makes any sense. Either futex was somehow thrashing the disk, or
> Azureus has somehow managed to fork completely out of strace's
> control. Or maybe it's somehow something that the kernel is doing on
> its own, which is somehow forcing azureus to block, but somehow not
> tripping strace's timers while doing so.
>
[ ... ]
--
Alex.
next prev parent reply other threads:[~2006-09-22 8:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-22 6:28 BitTorrent+Reiser4: curiouser and curiouser David Masover
2006-09-22 8:45 ` Alexander Zarochentsev [this message]
2006-09-22 17:23 ` David Masover
2006-09-22 9:26 ` Konstantin Münning
2006-09-22 17:20 ` David Masover
2006-09-22 21:01 ` Milan Holzäpfel
2006-09-25 19:27 ` Nicolas STRANSKY
2006-09-25 21:03 ` Craig Shelley
2006-10-02 15:39 ` rvalles
[not found] ` <20061002153947.GB12563@rvalles.homedns.org>
2006-10-03 3:47 ` Christopher Sawtell
2006-10-05 3:08 ` rvalles
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=200609221245.47857.zam@namesys.com \
--to=zam@namesys.com \
--cc=ninja@slaphack.com \
--cc=reiserfs-list@namesys.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.