LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 05-19-2010, 01:22 PM   #1
Abhishek1986
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
vmstat giving corrupted output


Hi,

While running vmstat on Linux Suse blade, I got following output:

procs -----------memory---------- ---swap-- -----io---- -system-- -----cpu------ 12:50:28

1 0 124 1044096 0 1455648 0 0 0 414 1880 7858 54 1 45 0 0 12:50:43
1 2 0 124 1039928 0 1457704 0 0 0 394 1887 8326 52 2 46 0 0 12:50:58
3 0 124 1034928 0 1457704 0 0 0 446 1919 8928 58 1 41 0 0 12:51:13

In the second iteration, there is an extra column (second value:2), which is absurd and because of that, rest all values get collapsed when I put this in spreadsheet.

Also, this issue is occurring after sometime again and again, in which i get an absurd row or column. What could be the possible reason for such output? And is there any way to ensure I get exact and accurate output every time?

Thanks in advance.
 
Old 05-22-2010, 03:46 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Can you put the example in code tags.
 
Old 05-22-2010, 04:42 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Abhishek1986 View Post
In the second iteration, there is an extra column (second value:2), () What could be the possible reason for such output?
You haven't posted the sub-header (it should tell) and depending on your procps version it might be the "number of processes in uninterruptible sleep" column.


Quote:
Originally Posted by Abhishek1986 View Post
is there any way to ensure I get exact and accurate output every time?
If you're willing to try another tool see 'dstat' (sure it requires Python but will output to CVS straight away), else run a wee script before using your CSV file to insert a zero in the "r" column when number of line items equals 18 instead of 17?


Quote:
Originally Posted by smoker View Post
Can you put the example in code tags.
Remember replies take the question off the 0-reply list. You may have "been doing this for over a decade" (and I'm not challenging your level of technical expertise) but only asking the OP to put data in BB code tags won't give him the answer AFAIK. Wouldn't you agree then it's a bit meager for a first reply?
 
Old 05-22-2010, 12:40 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Remember replies take the question off the 0-reply list. You may have "been doing this for over a decade" (and I'm not challenging your level of technical expertise) but only asking the OP to put data in BB code tags won't give him the answer AFAIK. Wouldn't you agree then it's a bit meager for a first reply?
How are we supposed to tell where the extra 2 lines up in the columns without the original formatting ?
As for the zero replies list - that was a reply. Make the posted data legible and relevant and maybe you will get a response. Or should I just ignore the post, like so many others ?

Last edited by smoker; 05-22-2010 at 12:42 PM.
 
Old 05-22-2010, 06:05 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
[QUOTE=smoker;3977732]How are we supposed to tell where the extra 2 lines up in the columns without the original formatting?
As the OP said:
Quote:
Originally Posted by Abhishek1986 View Post
second iteration, there is an extra column (second value:2)
"without the original formatting? Come on, this isn't like "hello world" written in Malbolge..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Corrupted output from manpages Shingoshi Linux - Distributions 7 02-26-2008 05:29 AM
Audigy 2 ZS not giving any output khaledaboualfa Ubuntu 1 07-19-2006 05:56 PM
regarding vmstat output cnkhandar Linux - Newbie 1 07-07-2006 08:01 AM
Help! Hard drive corrupted (dmesg output) apachedude Linux - Hardware 3 02-04-2006 11:07 PM
df -h is giving weird output chens_83 Linux - General 2 12-09-2002 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:20 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