From: Matt Clark <matt@ymogen.net>
To: 'Scott Marlowe' <smarlowe@qwest.net>
To: jim.ewert@excite.com
Cc: matthew@zeut.net
Cc: pgsql-performance@postgresql.org
Subject: Re: Swapping in 7.4.3
Date: Fri, 16 Jul 2004 08:35:32 +0100
Message-ID: <00b101c46b07$79a758d0$8300a8c0@solent> (raw)
In-Reply-To: <1089908434.21324.8.camel@localhost.localdomain>
> This is normal. My personal workstation has been up for 16
> days, and it shows 65 megs used for swap. The linux kernel
> looks for things that haven't been accessed in quite a while
> and tosses them into swap to free up the memory for other uses.
>
> This isn't PostgreSQL's fault, or anything elses. It's how a
> typical Unix kernel works. I.e. you're seeing a problem that
> simply isn't there.
Actually it (and other OSes) does slightly better than that. It _copies_
the least recently used pages into swap, but leaves them in memory. Then
when there really is a need to swap stuff out there is no need to actually
write to swap because it's already been done, and conversely if those pages
are wanted then they don't have to be read from disk because they were never
removed from memory.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: matt@ymogen.net, smarlowe@qwest.net, jim.ewert@excite.com, matthew@zeut.net
Subject: Re: Swapping in 7.4.3
In-Reply-To: <00b101c46b07$79a758d0$8300a8c0@solent>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox