Thanks for the reply. Earlier i tried using top and ps. But i dropped it when i came to know that top and ps doent give the accurate memory usage. So I tried with valgring, memcheck etc. But that too didn't give me the desired result. The result of valgrind was more over surprising. The memory comsumption of a program which inserts 100,000 records each of 15 bytes was more than one which inserts 100,000 each of 1k !!!!. First progam took 10,555,478 bytes where as the second one took only 3,143,402 bytes. (the data base used was Berkely DB). I would like to get a tool which gives me an accurate result.
Anish. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 3:08 AM To: sqlite-users@sqlite.org Subject: Re: [sqlite] Tool to find out the memory usage of a program Sergio 'OKreZ' Agosti <[EMAIL PROTECTED]> wrote: > > see options of ps (man ps) > > > >> I want to find out the total and the peak memory > >> usage of a program(in Linux) > > or try with 'top' > For measuring memory usage (and finding memory leaks) valgrind generally works much better than either ps or top. -- D. Richard Hipp <[EMAIL PROTECTED]> ------------------------------------------------------------------------ ----- To unsubscribe, send email to [EMAIL PROTECTED] ------------------------------------------------------------------------ ----- The information contained in, or attached to, this e-mail, contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed and is subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email. www.aztecsoft.com ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------