LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

How to measure peak memory usage

Posted 04-26-2015 at 07:46 AM by BenCollver

In the past, my method to measure peak memory usage was to boot a system, wait for it to become idle, run "free", run the program in question, then run "free" again. The difference is the memory usage. This method accounts for multi-process programs such as the LAMP stack, but it doesn't work as well for ephemeral command line utilities.

Today I ran across an easier way: Run the command line utility with /usr/bin/time -v. Example:

Code:
bash-4.2$ /usr/bin/time
...
Rogue Class
Posted in Uncategorized
Views 2271 Comments 1 BenCollver is offline
Old

TiddlyWiki bookshelf

Posted 02-13-2015 at 04:02 PM by BenCollver

Back in the day, my brother introduced me to goodreads.com and it was good. The site gradually became more and more Javascript-intense until I couldn't use it from my netbook. The mobile site worked for a while, but then it too became unusable on my netbook. The injustice of it all! It was all the excuse I needed for a new programming project.

I had recently finished a book Introduction to Object-oriented Programming by Timothy Budd [1], and was eager to apply it. I wrote an...
Rogue Class
Posted in Uncategorized
Views 2481 Comments 2 BenCollver is offline

  



All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration