Обсуждение: Postgresql not getting assigned memory
Hello,
I'm new in postgresql, I'm sorry if I do something bad.
Default value or shared_buffers is 128MB, I have a dedicated server for postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and uncommented the entry in postgresql.conf. It shows now:
# - Memory -
shared_buffers = 2048MB # min 128kB
When I restart instance or even server, pgstartup.log indicates:
seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish and server is configured in spanish). But it shows something as: selecting shared_buffers value ... 128MB.
What I do bad? Thanks beforehand.
Cheers...
Hi,
Can you please check the output of below command:
postgres=# show shared_buffers ;
Thanks & Regards,
Abdul Sayeed
System Engineer
The Postgres Database Company
Are you updated: Latest version of Postgres Plus Advanced Server are 8.4.19.42, 9.0.16.34, 9.1.12.20, 9.2.8.19 and 9.3.4.10
To reach Support Call:
US: +1-732-331-1320 - UK: +44 - 2033719820
Brazil: +55-2139581371 - India: +91-20-32676535
Website: www.enterprisedb.com
EnterpriseDB Blog : http://blogs.enterprisedb.com
Follow us on Twitter : http://www.twitter.com/enterprisedb
____________________________________________________________
CONFIDENTIALITY NOTICE
This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone or return e-mail message and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.
On Fri, Jun 20, 2014 at 5:21 PM, Oliver <ofabelo@gmail.com> wrote:
Hello,I'm new in postgresql, I'm sorry if I do something bad.Default value or shared_buffers is 128MB, I have a dedicated server for postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and uncommented the entry in postgresql.conf. It shows now:# - Memory -shared_buffers = 2048MB # min 128kBWhen I restart instance or even server, pgstartup.log indicates:seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish and server is configured in spanish). But it shows something as: selecting shared_buffers value ... 128MB.What I do bad? Thanks beforehand.Cheers...
Thank you very much to all.
postgres=# show shared_buffers;
shared_buffers
----------------
2GB
(1 row)
Is it ok then, isn't it? DB hasn't activity now because it is a new instance, top command indicates only 350MB of used memory .. I understand that postgresql could reach until 2GB of server memory as total, correct?
Thanks beforehand.
Cheers...
2014-06-20 13:54 GMT+01:00 Abdul Sayeed <abdulsayeed24@gmail.com>:
Hi,Can you please check the output of below command:postgres=# show shared_buffers ;Thanks & Regards,Abdul SayeedSystem EngineerThe Postgres Database CompanyAre you updated: Latest version of Postgres Plus Advanced Server are 8.4.19.42, 9.0.16.34, 9.1.12.20, 9.2.8.19 and 9.3.4.10To reach Support Call:US: +1-732-331-1320 - UK: +44 - 2033719820Brazil: +55-2139581371 - India: +91-20-32676535Website: www.enterprisedb.comEnterpriseDB Blog : http://blogs.enterprisedb.comFollow us on Twitter : http://www.twitter.com/enterprisedb____________________________________________________________CONFIDENTIALITY NOTICEThis e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone or return e-mail message and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.On Fri, Jun 20, 2014 at 5:21 PM, Oliver <ofabelo@gmail.com> wrote:Hello,I'm new in postgresql, I'm sorry if I do something bad.Default value or shared_buffers is 128MB, I have a dedicated server for postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and uncommented the entry in postgresql.conf. It shows now:# - Memory -shared_buffers = 2048MB # min 128kBWhen I restart instance or even server, pgstartup.log indicates:seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish and server is configured in spanish). But it shows something as: selecting shared_buffers value ... 128MB.What I do bad? Thanks beforehand.Cheers...
Hi,
It shows 2GB. It means it is updated. Shared_buffer memory is used at postgresql database level, It will consume while doing operation such as INSERT, UPDATE, DELETE and other maintenance task (VACUUM/VACUUM FULL).
Thanks,
Abdul
On Fri, Jun 20, 2014 at 6:28 PM, Oliver <ofabelo@gmail.com> wrote:
Thank you very much to all.postgres=# show shared_buffers;shared_buffers----------------2GB(1 row)Is it ok then, isn't it? DB hasn't activity now because it is a new instance, top command indicates only 350MB of used memory .. I understand that postgresql could reach until 2GB of server memory as total, correct?Thanks beforehand.Cheers...2014-06-20 13:54 GMT+01:00 Abdul Sayeed <abdulsayeed24@gmail.com>:Hi,Can you please check the output of below command:postgres=# show shared_buffers ;Thanks & Regards,Abdul SayeedSystem EngineerThe Postgres Database CompanyAre you updated: Latest version of Postgres Plus Advanced Server are 8.4.19.42, 9.0.16.34, 9.1.12.20, 9.2.8.19 and 9.3.4.10To reach Support Call:US: +1-732-331-1320 - UK: +44 - 2033719820Brazil: +55-2139581371 - India: +91-20-32676535Website: www.enterprisedb.comEnterpriseDB Blog : http://blogs.enterprisedb.comFollow us on Twitter : http://www.twitter.com/enterprisedb____________________________________________________________CONFIDENTIALITY NOTICEThis e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone or return e-mail message and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you.On Fri, Jun 20, 2014 at 5:21 PM, Oliver <ofabelo@gmail.com> wrote:Hello,I'm new in postgresql, I'm sorry if I do something bad.Default value or shared_buffers is 128MB, I have a dedicated server for postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and uncommented the entry in postgresql.conf. It shows now:# - Memory -shared_buffers = 2048MB # min 128kBWhen I restart instance or even server, pgstartup.log indicates:seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish and server is configured in spanish). But it shows something as: selecting shared_buffers value ... 128MB.What I do bad? Thanks beforehand.Cheers...
Oliver <ofabelo@gmail.com> wrote: > DB hasn't activity now because it is a new instance, top command > indicates only 350MB of used memory .. I understand that > postgresql could reach until 2GB of server memory as total, > correct? It's usually much better to copy/paste what you're talking about than to just refer to it. On the varieties of Linux I use, if you're talking about the virtual memory, the full size should be included there for every postgres backend process which has connected to it, while only the portion which has been accessed by each backend will be included in its shared or resident memory. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
On Fri, Jun 20, 2014 at 4:51 AM, Oliver <ofabelo@gmail.com> wrote: > Hello, > I'm new in postgresql, I'm sorry if I do something bad. > Default value or shared_buffers is 128MB, I have a dedicated server for > postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and > uncommented the entry in postgresql.conf. It shows now: > > # - Memory - > > shared_buffers = 2048MB # min 128kB > > When I restart instance or even server, pgstartup.log indicates: > > seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish > and server is configured in spanish). But it shows something as: selecting > shared_buffers value ... 128MB. > What I do bad? Thanks beforehand. That message comes from initdb. initdb should not be run when you restart the database or the server, but only when you create a new database cluster. Perhaps you are looking at an old log file, not a new one. Or perhaps you have accidentally created more than one database cluster on your server (i.e. more than one data directory). The file "pgstartup.log" is not something that PostgreSQL itself creates. It may be part of the PostgreSQL start-up scripts distributed by the packager. What repository did you use to install PostgreSQL? Cheers, Jeff
Hi,
thanks for replying.
Yes, I've seen that information in that file was introduced by initdb initially. When I restart the server/PGSQL it appends/adds information to that file, wihout modifying information that was introduced initially by initdb .. so I'm sure that initdb was executed only once.
I'm using official repository of PGSQL for Red Hat 6.5 (http://yum.postgresql.org/9.3/redhat/rhel-6.5-x86_64/), I've followed official steps indicated here: http://www.postgresql.org/download/linux/redhat/
For finishing this thread then, I will think that all is ok, "show shared_buffers" query shows 2GB in psql, and system has little memory used due to inactivity of database and it will go reaching more when database has connections.
Thanks for all.
Cheers...
2014-06-20 17:13 GMT+01:00 Jeff Janes <jeff.janes@gmail.com>:
That message comes from initdb. initdb should not be run when youOn Fri, Jun 20, 2014 at 4:51 AM, Oliver <ofabelo@gmail.com> wrote:
> Hello,
> I'm new in postgresql, I'm sorry if I do something bad.
> Default value or shared_buffers is 128MB, I have a dedicated server for
> postgresql with 8GB RAM. I've changed shared_buffers value to 2048MB and
> uncommented the entry in postgresql.conf. It shows now:
>
> # - Memory -
>
> shared_buffers = 2048MB # min 128kB
>
> When I restart instance or even server, pgstartup.log indicates:
>
> seleccionando el valor para shared_buffers ... 128MB (I'm sorry, I'm spanish
> and server is configured in spanish). But it shows something as: selecting
> shared_buffers value ... 128MB.
> What I do bad? Thanks beforehand.
restart the database or the server, but only when you create a new
database cluster. Perhaps you are looking at an old log file, not a
new one. Or perhaps you have accidentally created more than one
database cluster on your server (i.e. more than one data directory).
The file "pgstartup.log" is not something that PostgreSQL itself
creates. It may be part of the PostgreSQL start-up scripts
distributed by the packager. What repository did you use to install
PostgreSQL?
Cheers,
Jeff