473,750 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3896
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*******@postg resql.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*******@postg resql.org

Nov 11 '05 #3
In article <20************ ********@archon et.com>, de*@archonet.co m
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*******@erin c.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*******@erin c.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
3345
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 the reference count reaches zero for all the objects that are no longer used. I also call Dispose as much as possible. Regardless, the memory is not freed. Even if I force the GC, some memory gets freed but not much.
6
3277
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, no memory is lying around. GC reports only 84k of allocations. Starting 5-10 of this apps is going to start taking a considerable amount of memory. Is there a way to reduce this? Tom
2
2961
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: System,System.XML, System.Windows.Forms, System.Drawing, System.Data, System.Design. We use dotnet framework 1.1 During initialization, the application scans a directory and loads the assemblies (using Assembly.LoadFrom). It then scans all...
0
484
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 would be required in Flash and RAM to run pgSql database. Thanks.
1
2025
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 worth of xml data that I read in and operate on. Once loaded, before doing anything of substance with the data, my app's memory footprint goes up to nearly 140 megs right off the bat. Question is, if this is not an expected observation, what...
1
416
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 app grow to roughly 5x the size of the xml document after the xml doc is read. Can anyone comment on this? Is this expected? Below are two samples, the first hits northwind, and creates a 19meg (roughly, on my machine) xml file. The second...
8
1872
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 textboxes and comboxes to use lookup lists, some tab controls allow viewing of data about a person in logical groupings. We find that as we load the app with only a few hundred records of data in a lookup list (Rough estimate of data only at...
12
5052
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 if I understand correctly, its 3 * void(*) + sizeof(T) * size_of_vector. (3 ptrs for __M_start, __M_finish and __M_end_of_storage). If any STL guru could confirm my findings, that would be much appreciated.
9
3387
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 block sizes data from one source with a later time stamp may arrive before data from another source with and earlier time stamp. Looking at the STL i thought multiset was just the job for this. The idea was to set a window of x seconds and read...
0
9001
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9583
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6808
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.