473,327 Members | 1,930 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,327 software developers and data experts.

Process and its memory Limit. (Linux biased)

When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

The size of First two is fixed and their upperlimit is fixed by the
compiler. (Plz correct if i'm wrong)
Now The Data Segment : at the start it's size is small but as the
process goes on and requires Dynamic Memory allocation, its size
increases.

Can i know the limit that how much memory a process can request
dynamically. is there any limit set by process upon a process.

if i want to develop my own memory manager including Garbage collector
for Linux, what are the points should i consider as a precaution.

Jul 8 '07 #1
8 3149
On Jul 8, 3:23 pm, Nehil <nehilparas...@gmail.comwrote:
When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

The size of First two is fixed and their upperlimit is fixed by the
compiler. (Plz correct if i'm wrong)
Now The Data Segment : at the start it's size is small but as the
process goes on and requires Dynamic Memory allocation, its size
increases.

Can i know the limit that how much memory a process can request
dynamically. is there any limit set by process upon a process.

if i want to develop my own memory manager including Garbage collector
for Linux, what are the points should i consider as a precaution.
ONE CORRECTION :
plz read following
is there any limit set by process upon a process.
as
is there any limit set by Operating System upon a process.

Jul 8 '07 #2
Nehil wrote:

Firstly direct further Linux based questions to one of the groups in
the comp.os.linux hierarchy or possibly to comp.unix.programmer, if
it's common across several Unix'es.
When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

The size of First two is fixed and their upperlimit is fixed by the
compiler. (Plz correct if i'm wrong)
Now The Data Segment : at the start it's size is small but as the
process goes on and requires Dynamic Memory allocation, its size
increases.

Can i know the limit that how much memory a process can request
dynamically. is there any limit set by process upon a process.
All the details regarding segments are totally off-topic here. They're
more topical is a Linux or assembly language group like
comp.lang.asm.x86 or alt.lang.asm.
>From a Standard C prespective, a program can request as much memory as
the system is able to provide. It's as simple and as vague as that.
When an allocation request cannot be satisfied malloc or calloc or
realloc return a null pointer. Standard C provides no more facilities.

To find out the system's installed and free memory and any process
based limits, you'll need to consult the APIs provided by your
operating system and C library.
if i want to develop my own memory manager including Garbage collector
for Linux, what are the points should i consider as a precaution.
Again it's best to ask this question in a group dealing with Linux or
Unix.

Jul 8 '07 #3
Nehil wrote:
>
When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.
I see no such things in the C standard. I.e. you are off-topic.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com

Jul 8 '07 #4
Nehil wrote:
ONE CORRECTION :
plz read following
is there any limit set by process upon a process.
as
is there any limit set by Operating System upon a process.
Those are platform-specific questions. Why not post them in
platform-specific newsgroups?
Rui Maciel
Jul 8 '07 #5
On Sun, 08 Jul 2007 03:23:07 -0700, Nehil <ne***********@gmail.com>
wrote:
>When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

The size of First two is fixed and their upperlimit is fixed by the
compiler. (Plz correct if i'm wrong)
Now The Data Segment : at the start it's size is small but as the
process goes on and requires Dynamic Memory allocation, its size
increases.

Can i know the limit that how much memory a process can request
dynamically. is there any limit set by process upon a process.

if i want to develop my own memory manager including Garbage collector
for Linux, what are the points should i consider as a precaution.
If any of this is true (none of it is on my system), it is specific to
your OS, compiler, and run-time library. You will have better luck
discussing this in a group where they are topical.
Remove del for email
Jul 8 '07 #6
On Sun, 08 Jul 2007 03:23:07 -0700, in comp.lang.c , Nehil
<ne***********@gmail.comwrote:
>When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

The size of First two is fixed and their upperlimit is fixed by the
compiler. (Plz correct if i'm wrong)
This is platform=specific, If you want to discuss how it works, you
need to ask the experts in your platform in a group specialising in
it.
>Can i know the limit that how much memory a process can request
dynamically. is there any limit set by process upon a process.
if i want to develop my own memory manager including Garbage collector
for Linux, what are the points should i consider as a precaution.
comp.unix.programmer
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jul 8 '07 #7
CBFalconer wrote:
Nehil wrote:
>When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

I see no such things in the C standard. I.e. you are off-topic.
And anyway, he meant:

1) Text.
2) Data.
3) BSS.

--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Jul 9 '07 #8
Charles Richmond wrote, On 09/07/07 19:17:
CBFalconer wrote:
>Nehil wrote:
>>When a process is started three segments are created :
1) Text.
2) Stack.
3) Data.

I see no such things in the C standard. I.e. you are off-topic.

And anyway, he meant:

1) Text.
2) Data.
3) BSS.
Or maybe not, depending on the implementation. I'm sure I've used an
implementation with a stack section, and if not one implementation I've
used would definitely allow me to create a section called stack and put
the stack in it (or anything else I wanted there).
--
Flash Gordon
Jul 9 '07 #9

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

Similar topics

14
by: Ember | last post by:
Does anyone have documentation on the limit for database shared memory on Red Hat AS 2.1? On AIX, I know it's 2 GB minus the segments allocated for db2 core functionality (so about 1.7), but I need...
35
by: Alex Martelli | last post by:
Having fixed a memory leak (not the leak of a Python reference, some other stuff I wasn't properly freeing in certain cases) in a C-coded extension I maintain, I need a way to test that the leak is...
22
by: Zen | last post by:
Hi, My production machine has 2G of memory, when aspnet_wp.exe goes up to about ~1.2G of memory usage, I start get out-of-memory exception. Other processes don't use as much memory and I added...
3
by: sadanjan | last post by:
Hi , Appreciate if someone can clarify if database Share Memory Limit (2 GB ) in Unix 32 bit boxes is the top limit for all the databases put together in a database or is it for each of the...
13
by: kolmogolov | last post by:
/* Hi, I have removed things irrelevant to reproducing the problem. What's wrong with my code? Thanks in advance for any hint! 1166425362 */ #include <stdio.h> #include <stdlib.h> #include...
17
by: frederic.pica | last post by:
Greets, I've some troubles getting my memory freed by python, how can I force it to release the memory ? I've tried del and gc.collect() with no success. Here is a code sample, parsing an XML...
4
by: Daniel | last post by:
is there some per-process-limit on memory in .net processes? is there any way to increase it? i keep getting System.OutOfMemoryException when my box has 8 gigs of unused memory.
2
by: Gary Robinson | last post by:
I'm running a Python job on OS X 10.5.3 and the Python 2.5.2 that's available as a binary download at python.org for OS X. I ran a python program tonight that ended up using much more memory than...
5
by: Max2006 | last post by:
Hi, What is the limit for memory that a .NET process or AppDomain can use? Thank you, Max
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.