public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Gianni Tedesco <gianni@scaramanga.co.uk>
To: Anders Karlsson <anders@trudheim.com>
Cc: Karl Vogel <karl.vogel@seagha.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: How do I make this thing stop laging?  Reboot?  Sounds like  Windows!
Date: 18 Jun 2003 16:08:08 +0100	[thread overview]
Message-ID: <1055948888.3068.2.camel@sherbert> (raw)
In-Reply-To: <1055931810.2285.24.camel@tor.trudheim.com>

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

On Wed, 2003-06-18 at 11:23, Anders Karlsson wrote:
> AIX uses (or used to use) the exact same way of reading/writing data
> from/to disk for all I/O. AIX also makes a distinction between code and
> data. If code in RAM is unused, it simply gets flushed. If it is needed
> again at a later time, it is paged in from disk where it was originally
> loaded from. Only dirty data is paged out into swap.
> 
> Is it feasible to tweak the Linux VM to behave in the same fashion? If
> Linux already does it this way, I'll just shut up. :)

The distinction in Linux is between anonymous and file-backed mappings.
Executables are file mappings so the pages can just be dropped and they
will be read in from the backing file when needed again. This also holds
true for memory mapped files.

When a mapping has no file (anonymous) then the swap is used. This is
one of the reasons I like mmap() it means you dont end up using swap for
storing buffers containing bits of files which are on disk anyway.

-- 
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-06-18 14:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-18  0:30 How do I make this thing stop laging? Reboot? Sounds like Windows! rmoser
2003-06-18  8:22 ` Helge Hafting
2003-06-18  9:22   ` Karl Vogel
2003-06-18  9:44     ` Oliver Neukum
2003-06-18 10:23     ` Anders Karlsson
2003-06-18 15:08       ` Gianni Tedesco [this message]
2003-06-18 16:43     ` Joe
2003-06-18  9:30   ` Yaroslav Rastrigin
2003-06-18 11:02     ` Helge Hafting
2003-06-18 12:17       ` Mike Galbraith
2003-06-19  8:04   ` H. Peter Anvin
2003-06-19 10:00     ` Helge Hafting
2003-06-19 10:02       ` Nick Piggin
2003-06-19 15:54       ` Daniel Gryniewicz
  -- strict thread matches above, loose matches on Subject: below --
2003-06-18  9:56 Karl Vogel
2003-06-18 16:53 ` Oliver Neukum
2003-06-18 10:43 Karl Vogel
2003-06-18 10:49 Karl Vogel

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=1055948888.3068.2.camel@sherbert \
    --to=gianni@scaramanga.co.uk \
    --cc=anders@trudheim.com \
    --cc=karl.vogel@seagha.com \
    --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