Can some throw bright light on Linux Memory Allocation

MirJafar Aki mirjafar2008 at gmail.com
Thu Aug 7 15:15:31 UTC 2008


On Thu, Aug 7, 2008 at 7:45 PM, Chris Jones <jonesc at hep.phy.cam.ac.uk>wrote:

> MirJafar Aki wrote:
> > Hello,
> >
> > I have installed Ubuntu on a machine with following
> > config.
> >
> > RAM :  2 GB
> > Machine:  Intel Core 2 Duo
> > OS:  Ubuntu 64 bit.
> > Disk:  250 GB.
> >
> >
> > I have attached a simple program to test memory allocation on linux and
> > something strange is happening.
> >
> > 1.    If I invoke large_memory function then maximum
> >        size I am allowed is 245GB.
> >
> > 2.    If I use less than 245GB  ( say 244 GB) then the
> >        second stage is also passed.  Where from OS is
> >        allocating 244GB ?
>
> Maybe I'm missing the point here, but why on Earth would you want to try
> and allocate 250G of memory on a machine with 'only' 2G ram. Is your
> 250G disk entirely devoted to swap space ??
>
> Chris
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>

Hello,

On this simple earth, I came across some problems and therefore wanted to
test the memory allocation and I observed
this behavior. I thought, I must ask some expert like you.

Thanks.
Mir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080807/a8bf3cad/attachment.html>


More information about the ubuntu-users mailing list