Re: Log says temporary files are being created

From: "Campbell, Lance" <lance(at)illinois(dot)edu>
To: "'Artem Tomyuk'" <admin(at)leboutique(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Log says temporary files are being created
Date: 2016-06-22 16:03:02
Message-ID: B75CD08C73BD3543B97E4EF3964B7D70306CA3CB@CITESMBX1.ad.uillinois.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

This is occurring on a production system.

My current work memory setting is:

work_mem = 16MB

Based on the temp file size that was created can I then deduce how much more to increase the work_mem by?

Thanks for your assistance.

Lance

From: Artem Tomyuk [mailto:admin(at)leboutique(dot)com]
Sent: Wednesday, June 22, 2016 10:58 AM
To: Campbell, Lance <lance(at)illinois(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Log says temporary files are being created

By default temp files are created on hard drive as a result of low work_mem setting in postgres.conf. If your server runs on slow desktop hdd's it could be serious bottleneck in your performance so Yes, you should be concerned about it and tune work_mem parameter.

2016-06-22 18:50 GMT+03:00 Campbell, Lance <lance(at)illinois(dot)edu<mailto:lance(at)illinois(dot)edu>>:
PostgreSQL 5.3.2
I am seeing entries like this appearing in my PostgreSQL log.

Log entry:
temporary file: path "base/pgsql_tmp/pgsql_tmp10336.0", size 17809408

1) Should this concern me?

2) What would I need to modify in my configuration in order to stop temporary file creation from occurring?

Thanks,

Lance

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Artem Tomyuk 2016-06-22 16:09:00 Re: Log says temporary files are being created
Previous Message Artem Tomyuk 2016-06-22 15:57:31 Re: Log says temporary files are being created