mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: James Courtier-Dutton <James@superbug.demon.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Latency profiling.
Date: Fri, 13 Aug 2004 13:02:14 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0408131254560.25667@chaos> (raw)
In-Reply-To: <411CE8DC.9010609@superbug.demon.co.uk>

On Fri, 13 Aug 2004, James Courtier-Dutton wrote:

> I have been looking, but I cannot find out if anyone has already done
> what I want.
>
> I have a problem that my desktop linux system becomes un-responsive when
> there is a lot of Hard Disc access. I.E. During HD access, the mouse
> fails to move.
>

	Yes.

> I suspect that this is due to a certain kernel process holding onto the
> CPU resources too long without letting the kernel schedule a different
> process.
>

There are no such kernel processes. Linux and other Unixes perform
functions on behalf of the caller. If there is some task hogging
the CPU then `top` will show it.

> I therefore need a kernel profiler that will log every kernel
> schedule/context switch, and if the interval between any switch is
> greater than X, it will write a log entry, telling me which
> process/function/module was holding onto the CPU for too long.
>

Some task, waiting for I/O to complete, will automatically
get the CPU taken away and given to some other task that
is not waiting for I/O to complete.

> I could then use this tool to help me track down exactly where the
> problem is, and therefore hopefully find a fix for it.
>
> Does a tool like this already exist?
>
> James

The problems you describe are most likely caused by your hard-disk
and/or driver. If you have an IDE drive with no DMA capability, you
are stuck. If you have ATA, Fiberchannel, SCSI or something professional
your processes will get CPU time while I/O is occurring.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
            Note 96.31% of all statistics are fiction.



      parent reply	other threads:[~2004-08-13 17:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13 16:14 James Courtier-Dutton
2004-08-13 16:27 ` Lenar Lõhmus
2004-08-13 17:02 ` Richard B. Johnson [this message]

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.53.0408131254560.25667@chaos \
    --to=root@chaos.analogic.com \
    --cc=James@superbug.demon.co.uk \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®