User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,450 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,613 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 806 | Replies: 2
Reply
Join Date: Oct 2007
Posts: 8
Reputation: sopel39 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sopel39 sopel39 is offline Offline
Newbie Poster

time command

  #1  
Nov 2nd, 2007
why doesn't /usr/bin/time command return maximum resident set size (instead it returns always 0) and how to measure it then?

Thx
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Posts: 306
Reputation: eggi is on a distinguished road 
Rep Power: 2
Solved Threads: 29
eggi eggi is offline Offline
Posting Whiz

Re: time command

  #2  
Nov 2nd, 2007
Sorry if I misunderstand.

/usr/bin/time just returns the amount of time spent processing your request - generally the actual time and how much was spent processing user (software) and kernel (os).
With -al, it will show you that - this is probably what you're looking for, but I believe you need to be running something that takes a long time to run for it to ever register and it also rounds down and measures by the k.
There's a tool out there called "valgrind" that has a "massif" option that would probably show you what you want.
Check out "valgrind" in wikipedia. Hopefully that's what you're looking for

, Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Having trouble passing cert exams? Check out How To Pass Any Computer Certification Test!
Reply With Quote  
Join Date: Oct 2007
Posts: 8
Reputation: sopel39 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sopel39 sopel39 is offline Offline
Newbie Poster

Re: time command

  #3  
Nov 2nd, 2007
I read in man that /usr/bin/time can also get maximum and average resident set size if you specify it in the output format, but it always return 0 instead. Hm, sorry for my stupid question, but there isn't any -al option and what is k? I cannot use valgrind because as i quick read it says that it isn't actually executing tested program.

Charles
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 1:57 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC