LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-19-2020, 10:04 AM   #1
joemon83
Member
 
Registered: Jan 2009
Posts: 71

Rep: Reputation: 11
pidstat command


Hi,
Can someone explain, why kB_rd/s and kB_wr/s different between these 2 pidstat command:

Code:
pidstat -dl | egrep 'mfs|Command'
08:01:00 AM   UID       PID   kB_rd/s   kB_wr/s kB_ccwr/s  Command
08:01:00 AM  4937     34314    506.30    170.19      0.00  /opt/mapr/server/mfs -b -p 5660 -r 40 -T 40 -a 100 -m 61656 -O /opt/mapr/conf/mapr-clusters.conf -6 /opt/cores 


pidstat -dl 1 1 | egrep 'mfs|Command'
08:01:18 AM   UID       PID   kB_rd/s   kB_wr/s kB_ccwr/s  Command
08:01:19 AM  4937     34314 117444.44   9888.89      0.00  /opt/mapr/server/mfs -b -p 5660 -r 40 -T 40 -a 100 -m 61656 -O /opt/mapr/conf/mapr-clusters.conf -6 /opt/cores

Last edited by joemon83; 08-21-2020 at 08:50 AM.
 
Old 08-19-2020, 10:24 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Your question is an excellent showcase for the need of code tags. It's very hard to read your command output.

However, what makes you think that values measured at two different times should be identical? I consider it normal that IO metrics change over time.

EDIT: I agree the difference is huge. Still, this seems to be a map-reduce application, i.e. big data, i.e. potential for reading/writing big datasets. Sometimes it churns away calculating something, sometimes it deposits data somewhere and/or gets new data.

Last edited by berndbausch; 08-19-2020 at 10:28 AM.
 
Old 08-19-2020, 06:04 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,142

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
One of the problems of relying on sampling tools without knowing the underlying data access pattern. The wider the sampling period, say typically 10 or 30 minutes, the less likely you are to even be aware this is happening. But it might (will) be affecting other I/O on the system and causing pain you can't even see.

Nice pick-up.
 
  


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
[SOLVED] [SOLVED] bash script: can echo command, command works if I type, but command doesn't work in script ... why? hopeless_n00b Linux - Newbie 10 07-12-2018 05:57 AM
Sampling period of pidstat bprakash Linux - Newbie 1 03-18-2018 12:22 PM
Command Substitution: $(command) vs `command` penguinbody Linux - Newbie 9 04-15-2016 07:00 AM
LXer: Linux Terminal: pidstat, know everything about your processes LXer Syndicated Linux News 0 01-20-2013 12:30 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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