From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Christoph Pleger <Christoph.Pleger@uni-dortmund.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Address space for user process
Date: Wed, 7 Jul 2004 10:50:47 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0407071039260.18280@chaos> (raw)
In-Reply-To: <20040707163535.02323a8f.Christoph.Pleger@uni-dortmund.de>
On Wed, 7 Jul 2004, Christoph Pleger wrote:
> Hello,
>
> I read that - at least in Kernel 2.4 - the amount of memory that can be
> addressed by a user process is limited to 3 GB, no matter how much
> virtual memory is present. Is it possible to raise that limit?
>
> Kind regards
> Christoph
Sure. Use two (or more) tasks. It is a per-process limit because
in Unix the kernel shares the processes address space. See
how your process is laid out by executing this:
#include <stdio.h>
extern char _start;
extern char _end;
char dat;
const char x[]="x";
int main()
{
char foo;
printf("start = %p\n", &_start);
printf(" main = %p\n", main);
printf(" data = %p\n", &dat);
printf("const = %p\n", x);
printf("stack = %p\n", &foo);
printf(" end = %p\n", &_end);
return 0;
}
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.
prev parent reply other threads:[~2004-07-07 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-07 14:35 Christoph Pleger
2004-07-07 14:46 ` Doug McNaught
2004-07-07 14:50 ` Richard B. Johnson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.53.0407071039260.18280@chaos \
--to=root@chaos.analogic.com \
--cc=Christoph.Pleger@uni-dortmund.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®