LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   vmstat giving corrupted output (https://www.linuxquestions.org/questions/linux-kernel-70/vmstat-giving-corrupted-output-808906/)

Abhishek1986 05-19-2010 01:22 PM

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.

smoker 05-22-2010 03:46 AM

Can you put the example in code tags.

unSpawn 05-22-2010 04:42 AM

Quote:

Originally Posted by Abhishek1986 (Post 3974452)
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 (Post 3974452)
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 (Post 3977363)
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?

smoker 05-22-2010 12:40 PM

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 ?

unSpawn 05-22-2010 06:05 PM

[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 (Post 3974452)
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..


All times are GMT -5. The time now is 12:26 PM.