public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Egger <degger@fhm.edu>
To: Mark Hahn <hahn@physics.mcmaster.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: mmapping large files hits swap in 2.4?
Date: 11 Aug 2002 00:19:59 +0200	[thread overview]
Message-ID: <1029018000.2539.7.camel@sonja.de.interearth.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0208101437380.838-100000@coffee.psychology.mcmaster.ca>

Am Sam, 2002-08-10 um 20.49 schrieb Mark Hahn:

> > It is just that it seems the mmaped region is not really bakked by
> > the underlying file but by swap space which was exactly what I 
> > was trying to avoid by using a file.

> why do you think that?

Because the amount of free swap shrinks continously with mmaped memory
being touched. If I understood the concept of mmap correctly the system
should buffer read/writes to the mapped memory location with real RAM
and page out to the file.

My problem actually is that although I have enough memory to buffer the
whole area the kernel decides to hit hard on the disc which makes the
performance suck.

-- 
Servus,
       Daniel


       reply	other threads:[~2002-08-10 22:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.33.0208101437380.838-100000@coffee.psychology.mcmaster.ca>
2002-08-10 22:19 ` Daniel Egger [this message]
2002-08-12  9:11   ` mmapping large files hits swap in 2.4? Helge Hafting
2002-08-12 11:41     ` Daniel Egger
2002-08-09 17:26 Daniel Egger
2002-08-10 12:12 ` Richard Zidlicky
2002-08-10 16:17   ` Daniel Egger
2002-08-10 23:13     ` Richard Zidlicky

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=1029018000.2539.7.camel@sonja.de.interearth.com \
    --to=degger@fhm.edu \
    --cc=hahn@physics.mcmaster.ca \
    --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