Re: Howto Increased performace ?

From: Cosimo Streppone
Subject: Re: Howto Increased performace ?
Date: ,
Msg-id: 41CFF3D2.3090305@team2k.net
(view: Whole thread, Raw)
In response to: Re: Howto Increased performace ?  ("Iain")
List: pgsql-performance

Tree view

Howto Increased performace ?  ("Amrit Angsusingh", )
 Re: Howto Increased performace ?  (Ragnar Hafstað, )
 Re: Howto Increased performace ?  ("Iain", )
 Re: Howto Increased performace ?  ("Iain", )
  Re: Howto Increased performace ?  (Cosimo Streppone, )
 Re: Howto Increased performace ?  (Ragnar Hafstað, )
 Re: Howto Increased performace ?  ("Iain", )
 Re: Howto Increased performace ?  ("Iain", )
 Re: Howto Increased performace ?  ("Iain", )

Iain wrote:

> sort_mem 4096 (=400MB RAM for 100 connections)

If I understand correctly, memory usage related to `sort_mem'
is per connection *and* per sort.
If every client runs a query with 3 sorts in its plan, you are
going to need (in theory) 100 connections * 4Mb * 3 sorts,
which is 1.2 Gb.

Please correct me if I'm wrong...

--
Cosimo



pgsql-performance by date:

From: Bruno Wolff III
Date:
Subject: Re: Why so much time difference with a same query/plan?
From: amrit@health2.moph.go.th
Date:
Subject: Low Performance for big hospital server ..