Re: Postgres filling up hard drive with swap files - Mailing list pgsql-general

From Joe Lester
Subject Re: Postgres filling up hard drive with swap files
Date
Msg-id 51925696-F2C8-11D8-BDD7-000A95A58EA0@sweetwater.com
Whole thread Raw
In response to Re: Postgres filling up hard drive with swap files  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Responses Re: Postgres filling up hard drive with swap files  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: Postgres filling up hard drive with swap files  (Bill Moran <wmoran@potentialtech.com>)
List pgsql-general
Thanks for the response!

> Maybe you said this before, but I didn't follow the previous thread.
> What do you mean by swap files?

By swap files I mean the files that contain the memory that the OS is
maintaining on the hard disk, after physical RAM has overflowed.

> Where are those files located?

I can see the swap files and watch them grow over time. They are
located on my Mac OS 10.3.2 eMac at /var/vm/.

> Can you show a listing of them?

Right now there are not that many since I just restarted the server
recently. But already, they total 3 GB.

officelink:/var/vm root# ls -lh
drwx--x--x  14 root  wheel       476B 17 Feb  2004 app_profile
-rw------T   1 root  wheel        64M 31 Jul 09:10 swapfile0
-rw------T   1 root  wheel        64M 31 Jul 15:13 swapfile1
-rw------T   1 root  wheel       128M 31 Jul 16:08 swapfile2
-rw------T   1 root  wheel       256M  3 Aug 13:20 swapfile3
-rw------T   1 root  wheel       512M 18 Aug 14:29 swapfile4
-rw------T   1 root  wheel       512M 18 Aug 16:24 swapfile5
-rw------T   1 root  wheel       512M 18 Aug 23:30 swapfile6
-rw------T   1 root  wheel       512M 19 Aug 12:59 swapfile7
-rw------T   1 root  wheel       512M 20 Aug 09:56 swapfile8

> I assume, of course, that your data proper does not grow linearly with
> those "swap files," does it?

The total amount of disk space consumed by the swap files vastly
exceeds the size of my postgres data directory, if that's what you're
asking, which is about 300 MB or so.



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Log Clutter
Next
From: Alvaro Herrera
Date:
Subject: Re: Log Clutter