Re: [HACKERS] postgresql 7.1 file descriptor

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: [HACKERS] postgresql 7.1 file descriptor
Дата
Msg-id Pine.LNX.4.33.0205081112080.20291-100000@css120.ihs.com
обсуждение исходный текст
Ответ на postgresql 7.1 file descriptor  (jade <jade@vanzoest.com>)
Список pgsql-sql
On Tue, 7 May 2002, jade wrote:

> 
> Hi,
> 
> 
> I am running postgresql - 7.1 on Redhat 2.2.16-22 kernel.
> Sometimes this the system becomes totally unusable with
> "VFS: file-max limit 4096 reached" error?  The system is setup to have
> 4096 file descriptor as default.  I was wondering how many file descriptor
> does postgres open per backend process?

I think it depends on what those backends are doing.  I just ran a pgbench 
-c 100 -t 10 on my machine, and went from "2253    712     8192" in 
/proc/sys/fs/file-nr to "5316    3825    8192" in the same file.

According to /usr/src/linux-2.4/Documentation/sysctl/fs.txt on my machine, 
the first number is the number of file handles allocated, the second is 
the number in use, and the third is the max.

So, running 100 simos on my personal workstation used about 3000 file 
handles allocated, with about the same number showing use.

To easiest way to change these settings is through the use of sysctl.  If 
your machine doesn't have sysctl installed, find it and install it, it's a 
VERY easy way to change system / kernel settings.

After install, look at man sysctl for more info.

East explanation, sysctl -a shows all settings, sysctl -p process and sets 
all settings found in /etc/sysctl.conf

On production servers, the number for file-max is often set to 32768 or 
higher (on our big boxes we have it set to 65536 and often see usage of 
well over 20000 under load.)



В списке pgsql-sql по дате отправления:

Предыдущее
От: mlw
Дата:
Сообщение: Re: postgresql 7.1 file descriptor
Следующее
От: Holger Marzen
Дата:
Сообщение: Re: [GENERAL] Performance issues with compaq server