All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manfred Spraul <manfred@colorfullife.com>
To: neelam_saboo@usa.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: paging behavior in Linux
Date: Wed, 28 Feb 2001 22:35:01 +0100	[thread overview]
Message-ID: <3A9D6F05.F24D5558@colorfullife.com> (raw)

> 
> When I run my program on a readhat linux machine, I dont get results as 
> expected, work thread seems to be stuck when prefetch thread is waiting on 
> a page fault
>
That's a known problem:

The paging io for a process is controlled with a per-process semaphore.
The semaphore is held while waiting for the actual io. Thus the paging
in multi threaded applications is single threaded.
Probably your prefetch thread is waiting for disk io, and the worker
thread causes a minor pagefault --> worker thread sleeps until the disk
io is completed.

--
	Manfred

             reply	other threads:[~2001-02-28 21:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-28 21:35 Manfred Spraul [this message]
2001-02-28 21:54 ` paging behavior in Linux David Mansfield
2001-02-28 23:00   ` Andrew Morton
  -- strict thread matches above, loose matches on Subject: below --
2001-02-28 17:58 Neelam Saboo

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=3A9D6F05.F24D5558@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neelam_saboo@usa.net \
    /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.