pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Spiegelberg <gspiegelberg@cranel.com>
To: stange@rentec.com
Cc: Kevin Schroeder <kschroeder@mirageworks.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Swapping on Solaris
Date: Wed, 19 Jan 2005 10:07:45 -0500
Message-ID: <41EE77C1.1010900@cranel.com> (raw)
In-Reply-To: <41EE65FC.2000909@rentec.com>
References: <042a01c4fdaf$fbb3b860$0200a8c0@WORKSTATION>
	<41EE0F05.9080901@coretech.co.nz>
	<41EE65FC.2000909@rentec.com>

Alan Stange wrote:
> 
> Note that files in /tmp are usually in a tmpfs file system.   These 
> files may be the usage of swap that you're seeing (as they will be paged 
> out on an active system with some memory pressure)

You can do a couple things with /tmp.  Create a separate file system
for it so it will have zero impact on swap and use the "noatime" mount
option.  Alternatively, limit the size of /tmp using the mount option
"size=MBm" replacing "MB" with the size you want it to be in MBytes.  If
your application uses /tmp heavily, be sure to put it on a speedy,
local LUN.


> Finally, just as everyone suggests upgrading to newer postgresql 
> releases, you probably want to get to a newer Solaris release.

If you really want to avoid swapping I'd suggest tuning your database
first with swap turned off and put it under a "normal" load while
watching both top and vmstat.  When you're happy with it, turn swap
back on for those "heavy" load times and move on.

Greg

-- 
Greg Spiegelberg
  Product Development Manager
  Cranel, Incorporated.
  Phone: 614.318.4314
  Fax:   614.431.8388
  Email: gspiegelberg@cranel.com
Technology. Integrity. Focus.




view thread (22+ messages)  latest in thread

Message-ID: <41EE77C1.1010900@cranel.com>
Permalink:  ../41EE77C1.1010900@cranel.com/
Also on:    postgresql.org/message-id/41EE77C1.1010900@cranel.com

 · 

reply

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: gspiegelberg@cranel.com, stange@rentec.com, kschroeder@mirageworks.com
  Subject: Re: Swapping on Solaris
  In-Reply-To: <41EE77C1.1010900@cranel.com>

* 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