Search Postgresql Archives

Re: open file counts in 8.1.2?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ed L." <pgsql@xxxxxxxxxxxxx> writes:
> If we want to handle 16 clusters on this one box, each 
> with 300 max_connections and 2000 relations, would it be 
> ball-park reasonable to say that worst case we might have 300 
> backends with ~2000 open file descriptors each (300 * 2000 = 
> 600K open files per cluster, 600K * 16 clusters = 10M open 
> files)?

No, an individual backend should never exceed max_files_per_process open
files (1000 by default).  It will feel free to go up that high, though,
if it has reason to touch that many database files over its lifetime.

1000 is probably much higher than you really need for reasonable
performance; I'd be inclined to cut it to a couple hundred at most if
you need to sustain large numbers of backends.  I dunno what sort of
penalties the kernel might have for millions of open files but there
probably are some ...

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux