l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jul 21 14:39

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] can YOU be certified?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] can YOU be certified?!?

Jeff Newmiller wrote:

> On Sun, 21 Jul 2002, Tim Riley wrote:
> > Peter Jay Salzman wrote:
> >
> > > begin ME <dugan@passwall.com>
> > > > On Sun, 21 Jul 2002, Peter Jay Salzman wrote:
> > > <snip>
> > >
> <snip>
> > Two weird things occurred when I ran this.
> >
> > First, the "top" command never showed
> > any swap space usage. Moreover, the
> > memory available never made it to zero.
> > It went from 28M down
> > to 18M before the malloc failed.
> Until you touch the pages involved, they do not become allocated.  Like
> holes in files.
> > Second and serendipitously, the bytes
> > allocated was 14 times more that the
> > total of memory and swap space.
> > (I have 64M memory and 72M
> > of swap (136M total), yet I was able to malloc
> > 1987M of memory.)
> malloc allocates some memory as overhead, and you wrote a bit more.  Thus,
> I would expect one 4096 byte page was physically allocated per
> buffer.  You allocated about 2034 buffers, so that racks up about 8M of
> touched memory.

> Either two pages are actually allocated (8M*2=16M < 18M) or the kernel is
> trying to keep some spare memory around.

Good answer, Jeff. Is this a great OS or what!?

> ---------------------------------------------------------------------------

> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
> ---------------------------------------------------------------------------
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.