*BSD News Article 52981


Return to BSD News archive

Newsgroups: comp.unix.bsd.bsdi.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!cs.utexas.edu!utnut!info.physics.utoronto.ca!cannon.ecf!bjl
From: bjl@ecf.toronto.edu (LEE  BRIAN)
Subject: Re: BSDI free()/malloc()
X-Nntp-Posting-Host: skule.ecf
Message-ID: <DGoqI5.7Kr@ecf.toronto.edu>
Sender: news@ecf.toronto.edu (News Administrator)
Organization: University of Toronto, Engineering Computing Facility
References: <DGnI4w.2rC@ecf.toronto.edu>
Date: Thu, 19 Oct 1995 07:37:16 GMT
Lines: 27

In article <DGnI4w.2rC@ecf.toronto.edu>,
STODDARD  WALTER B <stoddar@ecf.toronto.edu> wrote:

ooops, looks like our machine got messed up.
please email to bjl@eecg.toronto.edu, not the address specified
above.  Thank you.

>Hi, I'm working on some code that will be running on a BSDI box.
>Anyway, what I'd like to do is to monitor the use of memory allocated
>by the malloc/calloc/realloc/strdup/free calls.
>
>Is the code for malloc in BSDI the same as in:
>ftp.cdrom.com:/pub/bsd-sources/4.4BSD-Lite/usr/src/lib/libc/stdlib/malloc.c?
>
>is it possible/permissible to access these kernel structures (struct overhead)?
>is there a system call that will return the amount of memory allocated out to
>each chunk returned by malloc?
>
>thanks,
>bjl
>


-- 
Brian Jonathan Lee (aka "hojo")    | "Beef satay?!?!  Not beef satay again!!!!"
   bjl@ecf.toronto.edu             | "XMen! XMen! Rescue Kitty from the caves!"
   bjl@eecg.toronto.edu            | "Evil thy name is NETREK!"