'time' command doesn't display memory usage

'time' command doesn't display memory usage

Post by Eric Benzaca » Sat, 31 Jul 1999 04:00:00



I finally figured out how to change the format of the time command, but
I've run into an even bigger problem now.

For some reason, the memory usage and i/o operations are always listed
as 0. A sample output is:
0.480u 1.190s 0:06.63 25.1%     0+0k 0+0io 92pf+0w

No matter which commands I run (memory intensive or i/o intensive), both
the mem stats and i/o stats always remain at 0.

Is there some setting in the kernel that has to be activated for this?
I do have the /proc system being used....

Or is the 'time' command simply not compatible on Linux systems?

Thanks!

Eric

 
 
 

1. 'last' command doesn't show complete login times

Hello,
I am trying to use the information from the "last" command to examine
how long users are logged into a certain machine for a research
project.  I wrote a perl script to parse the information into a comma
delimited file, opened it in a spreadsheet, and sorted the entries by
how long the users were logged in.  To my surprise, out of about 3200
entries, only 17 of them showed up as being logged in for more than an
hour!  I know this information is inaccurate, because these users work
on projects for hours at a time.  Another mystery is that when I run
"who", it shows about 50 users being logged in, whereas the "last"
command only shows about 10.  Running last using utmpx as the file
instead of the default wtmpx, it shows users being logged in for a lot
longer. (???)

I know that the "who" command uses the utmpx file, and the "last"
command uses the wtmpx file, but shouldn't the wtmpx file contain the
same information as the utmpx file, only a lot more of it?  Can anyone
think of an explanation to why the "last" output isn't showing the
entire session a user is logged in for?  Also, if there is data
missing, is there another way I can get the login and logout history
of all the users?

I would greatly appreciate any help you can give. :)

Thanks,
Julie

2. uucp-gamma-1.05.tar.gz uploaded to tsx-11

3. usage of 'foreach' and 'find' commands

4. Crashing Unix

5. About the 'TIME' header of the 'ps' command

6. Can't start X on new video card

7. memory usage and ``free''---beyond what's in the FAQ

8. Linux variants with reference to previous experience

9. 'setup' script doesn't display menu

10. 'info' displays hyphens in man pages as '^i' instead of '-'

11. 'less' command doesn't work properly in searching strings...

12. Why doesn't echo "text" 'command' "more text" work?

13. Piping results of a 'find' command to a 'mv' command...