Re: Postgres filling up hard drive with swap files

Поиск
Список
Период
Сортировка
От Joe Lester
Тема Re: Postgres filling up hard drive with swap files
Дата
Msg-id 51925696-F2C8-11D8-BDD7-000A95A58EA0@sweetwater.com
обсуждение исходный текст
Ответ на Re: Postgres filling up hard drive with swap files  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Log Clutter
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Log Clutter