LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2009, 02:44 AM   #1
praveenk13
LQ Newbie
 
Registered: Dec 2003
Location: Aluva,Cochin,India
Distribution: Mandarke,Redhat
Posts: 4

Rep: Reputation: 0
doubt regarding sar command


Hi
I have a doubt regarding sar command output.

Will there be any difference in the output if i execute the command as a root user or normal user?

The reason for my doubt is we need to do performance monitor while we are running our web application. One of my friend told we should run the sar command as a cron job from the same user where we have started the application server. The man page of sar says it monitors the system activity which means output should be same for any user

Kindly clarify my doubt
 
Old 05-28-2009, 02:56 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
From the sar man page:
Quote:
Note that with recent 2.6 kernels, these statistics can be retrieved only by root.
Anyway, you can give it a try, saving the output in a file using -o and comparing the results.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why sar command not running? your_shadow03 Linux - Newbie 2 02-05-2009 12:29 AM
sar command option -H lensem Linux - Software 1 12-16-2008 02:53 PM
sar command maooah Solaris / OpenSolaris 16 08-12-2008 05:16 AM
sar command rsuks Linux - General 2 03-25-2006 03:53 AM
monitoring I/O with sar command juanb Linux - Hardware 1 04-13-2005 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 PM.

Main Menu
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