From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Calculation of a shared memory |
Date: | 2007-11-01 17:48:13 |
Message-ID: | 9045.1193939293@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> writes:
> inet% ipcs -b -m
> Shared Memory:
> T ID KEY MODE OWNER GROUP SEGSZ
> m 917504 5432001 --rw------- saito wheel 32571392
> 40*(400+270*64)= 707200
> 5*(600+270*64)= 89400
> 28MB= 29360128
> 64kB= 65536
> 1000*70= 70000
> 179200*6= 1075200
> Total :31367464
> ipcs-m:32571392
> -1203928 (difference is large: why?)
Hmm, those numbers never got updated for 8.2. The per-backend
multiplier is particularly off, since it's not accounting for
the in-memory pg_stat_activity array (PgBackendStatus is 1208
bytes on my machine...) Also, you neglected to add the fixed space,
which was claimed to be 500K as of 8.1, but seems to have bloated
to about 700K in 8.2 and 770K in HEAD.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-11-01 18:09:08 | Re: Postgresql 8.3 beta crash |
Previous Message | Pavel Stehule | 2007-11-01 16:30:43 | beta2, I can't set UTF-8 for czech locales on win |