From: | Craig Ringer <craig(at)2ndQuadrant(dot)com> |
---|---|
To: | Wu Ming <rdyf4ever(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: PostreSQL v9.2 uses a lot of memory in Windows XP |
Date: | 2012-11-13 02:08:06 |
Message-ID: | 50A1AB86.8020200@2ndQuadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On 11/12/2012 10:17 PM, Wu Ming wrote:
> See this screenshot link from the Process Explorer:
>
> http://i45.tinypic.com/vr4t3b.png
That looks pretty reasonable to me.
The "virtual size" includes the shared memory segment, so the
per-process use is actually much lower than it looks. The real use will
be closer to one of the virtual sizes plus the working sets of all the
rest of the processes. They are processes, not threads.
There may be a genuine issue here, but it isn't demonstrated by the
screenshot.
How do you determine that it's "lagging"? What's the overall system
memory pressure like? Check Task Manager. What's the system's swap
usage? Are there other big processes?
> You can see that there are a lot of threads spawned. Is the threads
> that caused the high memory usage?
PostgreSQL has a process-based architecture. They're processes not
threads. Each process only uses a fairly small amount of memory - the
exact amount depends on settings like work_mem and what the queries
running are doing, but it's usually not much. Most of the apparent use
is shared memory.
--
Craig Ringer http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Jon Nelson | 2012-11-13 19:13:40 | postgres 8.4, COPY, and high concurrency |
Previous Message | Tom Lane | 2012-11-12 21:26:37 | Re: performance regression with 9.2 |