Re: [PLUG] Report the max memory used by a given command?
Paul Jungwirth on 17 Sep 2012 09:32:24 -0700
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Report the max memory used by a given command?
- From: Paul Jungwirth <once@9stmaryrd.com>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: Re: [PLUG] Report the max memory used by a given command?
- Date: 2012年9月17日 09:32:19 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=avIgLv5xUI+NBvVTccwo5irDfjhaN5v62GdxiGvBtnA=; b=CreaareV6xFMYSgjXsQg8sVCcdcrpQAyCF6wAoYzr+3nsjY4ddVmlEygnuFrSxL97e hXk0vwqYdScD3dvErSgQK7zJ1zlXf2f8luAebWCfeNFOwNVt7dPSAowCKqg2hq9vxH4P zxF6bBFKWeLPi2YU39+hqoXMNtRKVPpqZw1GFJ3cLLMpimVcBCl6lCyQzE/de5LdgPkk q75Wk/t3T3rdVj/WeElsqlDpXAv8PNnT+54hx8Se6PHzmLDqZlSBsDw69hIJWbhUVyor R+TwmssWD9PtCVk9yRZbHpuMO8W8VlWy527vpBkf3EfK2UTUXqyqgm9dlYapkRbjPka/ uzRQ==
- Reply-to: once@9stmaryrd.com, Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
> I think "maxresident" might be what you're looking for. If not, look
> through the "Formatting the Output" section of time(1)'s manpage and
> try out some of the other options.
Thanks for the reply! I eventually found this page which recommends
/usr/bin/time -v, although supposedly that only gives you real numbers
if your system supports it:
http://stackoverflow.com/questions/774556/peak-memory-usage-of-a-linux-unix-process
Also further down is a way to use valgrind to get the info; in my case
that might be overkill.
Thanks,
Paul
--
_________________________________
Pulchritudo splendor veritatis.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug