473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

pgSql Memory footprint

Hi:

Can anyone provide a rough guesstimate on how much memory does fully
conigured, with all the services turned on pgSql database require?

I'm trying to make an estimate on how much memory would be required in
Flash and RAM to run pgSql database.

Thanks.

Ish...
Nov 11 '05 #1
5 3872
On Friday 12 September 2003 20:43, Ish Ahluwalia wrote:
Hi:

Can anyone provide a rough guesstimate on how much memory does fully
conigured, with all the services turned on pgSql database require?

I'm trying to make an estimate on how much memory would be required in
Flash and RAM to run pgSql database.


Depends on how many users and what queries you are running. The less RAM you
have available, the more disk I/O there will be.

Can you give more details of what sort of system you are trying to build?
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 11 '05 #2
On Friday 12 September 2003 20:43, Ish Ahluwalia wrote:
Hi:

Can anyone provide a rough guesstimate on how much memory does fully
conigured, with all the services turned on pgSql database require?

I'm trying to make an estimate on how much memory would be required in
Flash and RAM to run pgSql database.


Depends on how many users and what queries you are running. The less RAM you
have available, the more disk I/O there will be.

Can you give more details of what sort of system you are trying to build?
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 11 '05 #3
In article <20********************@archonet.com>, de*@archonet.com
says...
On Friday 12 September 2003 20:43, Ish Ahluwalia wrote:
Hi:

Can anyone provide a rough guesstimate on how much memory does fully
conigured, with all the services turned on pgSql database require?

I'm trying to make an estimate on how much memory would be required in
Flash and RAM to run pgSql database.


Depends on how many users and what queries you are running. The less RAM you
have available, the more disk I/O there will be.

Can you give more details of what sort of system you are trying to build?

Hi Richard:

Thanks for the resply. We're looking to use pgSql in a embedded systems
environment especially for a telecom switch. Memory may not be that big
of a issue as we plan to have a reasonable size flash and decent RAM too
(64 to 128 Mb - which is a lot for embedded systems). The idea here is
to use the database as a way to store information for all the processes
that may be running. The memory footprint I was looking for relates to
the disk storage required to store the loadable module/or binary program
on the flash disk, and also some insight into RAM required to run the
databse. The configuration would be achieve highest speed with most
amount of reliability. Any rough estimate into worst case memory usage
will be very beneficial?

Thanks in advance.

Ish...
Nov 11 '05 #4
Ish Ahluwalia <ah*******@erinc.com> writes:
Thanks for the resply. We're looking to use pgSql in a embedded systems
environment especially for a telecom switch. Memory may not be that big
of a issue as we plan to have a reasonable size flash and decent RAM too
(64 to 128 Mb - which is a lot for embedded systems). The idea here is
to use the database as a way to store information for all the processes
that may be running.


You'd probably be happier with something like Berkeley DB. PG isn't
really designed for that sort of thing --- just to start with, you don't
want to point it at flash RAM as "disk" storage, because your flash RAM
life expectancy of ~10000 write cycles won't last long.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 11 '05 #5
Tom Lane wrote:
Ish Ahluwalia <ah*******@erinc.com> writes:

Thanks for the resply. We're looking to use pgSql in a embedded systems
environment especially for a telecom switch. Memory may not be that big
of a issue as we plan to have a reasonable size flash and decent RAM too
(64 to 128 Mb - which is a lot for embedded systems). The idea here is
to use the database as a way to store information for all the processes
that may be running.


You'd probably be happier with something like Berkeley DB. PG isn't
really designed for that sort of thing --- just to start with, you don't
want to point it at flash RAM as "disk" storage, because your flash RAM
life expectancy of ~10000 write cycles won't last long.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

------------------------------------------------------------------------

SPAM: REFERENCES (-6.6 points) Has a valid-looking References header
SPAM: IN_REP_TO (-3.3 points) Has a In-Reply-To header
SPAM: X_MAILING_LIST (-0.0 points) Has a X-Mailing-List header
Score Total: -9.9

Not that I think it is a good idea... But is there any way to reduce the
impact on a flash memory 'disk' by tweaking some PostgreSQL knobs in
usually unadvisable ways? Also, if you have an enormous amount of flash
memory, isn't that 10,000 writes more than 10.000 writes? I read
somewhere that flash disks try to 'spread out' the wear and tear over
all available 'cells' on the media. If the database was used mostly for
selects, with only seldom update/insert/delete, would this idea make
more sense? I understand that this particular application would not fit
that profile, but there may be others where a full-on SQL database might
be desirable, but that would have few data modifications.

Thanks!!

Ian
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 11 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Peretz | last post by:
I am trying to optimize my C# program, but no matter what I try the application keeps eating memory. I verified all the references and even got special software to count references. I made sure all...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: assi | last post by:
Hello all We are developing a large dotnet application, which includes ~ 120 assemblies. (total size of all binaries is ~ 20MB). Our application also references the following dotnet assemblies:...
0
by: Ish Ahluwalia | last post by:
Hi: Can anyone provide a rough guesstimate on how much memory does fully conigured, with all the services turned on pgSql database require? I'm trying to make an estimate on how much memory...
1
by: Derrick | last post by:
Thanks to many on this newsgroup, I now have a prototype Windows Forms C# app that reads xml documents into DataSets via XmlDataDocument, and does *stuff* with it. I basically have about 25 megs...
1
by: Derrick | last post by:
I am reading in xml files that equate to sql tables, via XmlDataDocument, and then operating on the DataSet. With the most simple app that just loads the xml doc, I see the memory footprint of the...
8
by: Bob Dufour | last post by:
We got a windows form application that we wrote in VB.Net. Essentially its a manager for a list of persons and their contacts and some other info about the persons. No rocket science but lots of...
12
by: Varun Kacholia | last post by:
Apologies if this has been answered somewhere, but Google did not produce any concrete results. I would like to find out the memory footprint of a vector<T>. I tried to dig in the STL code and...
9
by: neil.johnston | last post by:
I have a cut down example program that uses multiset to order some data. The data arrives from various sources and has a time stamp, data with identical timestamps can arrive and due to fifo's and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.