Re: large binary immediately SEGV's

From: Jean-David Beyer (jdbeyer_at_exit109.com)
Date: 02/21/04


Date: Sat, 21 Feb 2004 13:56:35 -0500

John Reiser wrote:

>> Just to make sure, and regardless of how certain people view them,
>> there's nothing that limits the size of an ELF binary or any of its
>> sections besides physical RAM, correct?
>
>
> If swapspace is available, then physical RAM should matter only for
> speed. Virtual address assignments also matter, but they're an order
> of magnitude larger than the 91MB of this case. For instance, many
> common "workstation" configurations for x86 limit user address space
> to 3GB; trying to put a PT_LOAD for an ET_EXEC file at 0xc0000000 (or
> above) will fail. For some "server" configurations the limit is
> 2GB. Only in Linux 2.5/2.6 with a configurable "4G/4G" user/kernel
> split can the user address space closely approach 4GB on x86.
>
Does that not depend on your chip set? I am putting together a box with
two XEON processors and the MB will take 16GBytes RAM. Now no one
process can see over 4 GBytes, and probably the kernel takes 1 Gbyte of
that for its purposes (I am hazy about the amount), but in a
multiprogramming system, other programs can use the rest of it, or the
kernel could use it for buffer space if it is designed to do so. My MB
uses the Intel E7501 chip set.

-- 
   .~.  Jean-David Beyer           Registered Linux User 85642.
   /V\                             Registered Machine    73926.
  /( )\ Shrewsbury, New Jersey     http://counter.li.org
  ^^-^^ 1:50pm up 46 days, 1:11, 2 users, load average: 2.07, 2.15, 2.16


Relevant Pages

  • Re: Is the Ada run-time required to detect out-of-memory
    ... Basically, Linux sends SIGKILL to ... > programs that exhaust physical RAM; as you know, ... Did you refile the bug against the kernel? ...
    (comp.lang.ada)
  • Re: HIMEM calculation
    ... I've quoted two blocks of kernel messages below, ... NOHIGHMEM and another for a kernel with HIGHMEM4G. ... If I do the math on the BIOS provided physical RAM map, ...
    (Linux-Kernel)
  • Re: Virtual memory - user space kernel space
    ... It depends upon the total size of kernel code and static data. ... userspace in Virtual memory. ... So part of RAM is mapped to 1G Kernel space address. ... If you have less than 1G of physical RAM, ...
    (comp.os.linux.development.system)
  • Re: [SLE] Why have swap
    ... > with swap at least 2 times the physical ram. ... Linus Torvalds said so himself on the Linux Kernel Mailing List (although I ... I built a diskless, fanless silent firewall (netbooting) around SuSE 7.2, ...
    (SuSE)
  • Re: Querying Kernel about RAM
    ... > Is there a way for a utility application to query the kernel regarding the ... > amount of physical ram in the box as well as the amount of RAM that is ... VmallocChunk: 501276 kB ...
    (comp.os.linux.development.system)