Re: Resident set size on Solaris
From: Noel R. Nihill (nnihil01_at_Motorola.BLAH.com)
Date: 09/25/03
- Next message: Christian: "Trying to install gtk for gaim on sunray account."
- Previous message: Noel R. Nihill: "Re: networking between Lynx 2.3 and Solaris 2.8 via a switch"
- In reply to: Noel R. Nihill: "Re: Resident set size on Solaris"
- Next in thread: Barry Margolin: "Re: Resident set size on Solaris"
- Reply: Barry Margolin: "Re: Resident set size on Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Christian: "Trying to install gtk for gaim on sunray account."
- Previous message: Noel R. Nihill: "Re: networking between Lynx 2.3 and Solaris 2.8 via a switch"
- In reply to: Noel R. Nihill: "Re: Resident set size on Solaris"
- Next in thread: Barry Margolin: "Re: Resident set size on Solaris"
- Reply: Barry Margolin: "Re: Resident set size on Solaris"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|