473,385 Members | 1,553 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,385 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 3871
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.