public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: "Richard B. Johnson" <root@chaos.analogic.com>
Cc: Leandro Tavares Carneiro <leandro@ep.petrobras.com.br>,
	Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: High Memory Address Space
Date: Fri, 3 May 2002 10:09:29 -0700	[thread overview]
Message-ID: <20020503170929.GS32767@holomorphy.com> (raw)
In-Reply-To: <1020437001.2951.45.camel@linux60> <Pine.LNX.3.95.1020503123034.1208A-100000@chaos.analogic.com>

On Fri, May 03, 2002 at 12:46:12PM -0400, Richard B. Johnson wrote:
> Unix/Linux on 32-bit machines use 32-bit address space. All addresses
> are virtual so some of the pages can come from anywhere, including
> so-called "high memory". The memory managment makes these pages
> appear contiguous to each task (and to the kernel itself). One of
> the Unix characteristics is that the kernel address space is
> shared with each of the process address space. This means that the
> actual process address-space does not start at 0 and extend to
> 0xffffffff. Instead it starts at an address that leaves room for
> the kernel. This split can, in principle, be changed. However
> it will result in only a few more megabytes of user address space
> and might interfere with the memory mapping of runtime libraries
> which, last time I checked, presume certain starting addresses:

Well, since the kernel is using up a whole 1GB for itself, from a
naive point of view, it might seem a target for reclamation.

On Fri, May 03, 2002 at 12:46:12PM -0400, Richard B. Johnson wrote:
> Script started on Fri May  3 12:39:03 2002
> # cat >xxx.c
> main() { return 0; }
> # gcc -c -o xxx.o xxx.c
> # ld -o xxx xxx.o
> ld: warning: cannot find entry symbol _start; defaulting to 08048074
> # exit
> exit
> Script done on Fri May  3 12:39:45 2002
> You can see that the assumed starting address is 08048074.

This is default linker script (SVR4 ABI) stuff, the portion of the process
address space reserved for the kernel extends from 3GB to 4GB in Linux.
It's fully well possible to link and run executables so that they are
loaded at the first page above the zero page, though little does it.


Cheers,
Bill

      reply	other threads:[~2002-05-03 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03 14:43 High Memory Address Space Leandro Tavares Carneiro
2002-05-03 16:05 ` Martin J. Bligh
2002-05-03 16:46 ` Richard B. Johnson
2002-05-03 17:09   ` William Lee Irwin III [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=20020503170929.GS32767@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=leandro@ep.petrobras.com.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    /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