[PERFORM] pg 9.1 brings host machine down

2012-06-06 Thread Konstantin Mikhailov
I'm faced with a problem running postgres 9.1.3 which seems to nobody else see before. Tried to search and only one relevant post fond (about millions of files in pgsql_tmp). Sympthoms: Some postgres process size is getting abnormally big compared to other postgres processes. Top shows the 'norma

Re: [PERFORM] pg 9.1 brings host machine down

2012-06-06 Thread Vitalii Tymchyshyn
Hello. Seen this already. It looks like cross join + sort. Badly configured ORM tools like Hibernate with multiple one-to-many relationships fetched with 'join' strategy may produce such result. Unfortunately I don't know if it's possible to protect from such a case at server side. Best rega

Re: [PERFORM] pg 9.1 brings host machine down

2012-06-06 Thread Patric Bechtel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, which fs with which settings are you using? What's the work_mem settings? Which size do the files have? Depending on the answer of above questions I would suggest: - - RAM disk, SSD or separate disk for pgsql_tmp - - using xfs with noatime,nodi

Re: [PERFORM] pg 9.1 brings host machine down

2012-06-06 Thread Julien Cigar
if you have millions of files in data/pgsql_tmp it means that you're using temporary tables (very) heavily .. or you've a huge sorting activity (of large tables) and that the sort happens on disk (you can verify that with an EXPLAIN ANALYZE of the query, you'll see something like "external disk