Re: Resident set size on Solaris

From: Noel R. Nihill (nnihil01_at_Motorola.BLAH.com)
Date: 09/25/03


Date: Thu, 25 Sep 2003 17:18:54 +0100


"Noel R. Nihill" <nnihil01@Motorola.BLAH.com> wrote in message
news:bkv3nd$op9$1@avnika.corp.mot.com...
>
> "Anil" <anilvadrev@yahoo.com> wrote in message
> news:b00ecf0d.0309250643.3dad562a@posting.google.com...
> > Hello,
> >
> > Thanks for the responses.
> >
> > I am looking in the application to see if any changes
> > can be made.
> > Any tips in this regard?
>
> My two cents:
>
> * If possible, munmap(2) large, memory mapped files
> when the program is done with them.
>
> * Try to avoid passing huge data structures to functions
> within the code. Pass pointers instead.
>
> * Always free(3C) any malloc(3C)-ed buffers as you are
> finished with them. Re-use said buffers if feasable.
>
> * Cast a beady eye over the code for memory leaks.

Oh. I'll just add that if your app is free of memory leaks
and you are not mapping enormous files, you just might
need to get more RAM! Sometimes a cigar is just a cigar...

> > Thanks & Regards,
> > Anil

--
Noel R. Nihill
UNIX® platform development
Motorola NSS
I *could* be arguing in my spare time.


Relevant Pages

  • Re: Signature line hyperlink
    ... Nice try, but no cigar. ... Please send all responses to the relevant news group. ... this address so that your email doesn't get eaten by my SPAM filter. ...
    (microsoft.public.mac.office.entourage)
  • Re: Mystery Cigar Review
    ... First 10 responses on this thread (that I see without being ... >>> mailing address by email. ... >>> Anyone who guesses the cigar will receive a prize pack. ... >Ten cigars sent out, 5 guesses, 4 reviews. ...
    (alt.smokers.cigars)
  • Re: Mystery Cigar Review
    ... First 10 responses on this thread (that I see without being ... >>> mailing address by email. ... >>> Anyone who guesses the cigar will receive a prize pack. ... Thanks again, Hutch. ...
    (alt.smokers.cigars)
  • Re: Mystery Cigar Review
    ... First 10 responses on this thread (that I see without being ... >> The best review, as judged by me:), will also receive a prize pack. ... "I really think cigar smoking makes you smarter" P.J. O'Rourke ...
    (alt.smokers.cigars)
  • Re: Finding memory leaks through ps command
    ... qazmlp1209@rediffmail.com wrote: ... > whether there are memory leaks from a process in its long run? ... server caching more responses as time goes on). ...
    (comp.unix.solaris)