aha, thanks very much for pointing out, Anthony!
Just a summary for the screenshot pasted in my previous email. Based on my
understanding, "ceph daemon osd.x ops" or "ceph daemon osd.x
dump_ops_in_flight" shows the ops currently being processed in the osd.x. I
also noticed that there is another ceph cli that shows the number of ops with
particular osds, i.e. "ceph osd status {<bucket>}", and the number doesn't
match with the daemon one, nor "ceph daemon osd.x dump_historic_ops". I haven't
looked into the code yet, and just try to get a quick help from the community
about how the ops number from "ceph osd status {<bucket>}" is calculated? Is
it a statistical value?
Thanks!
------------------ Original ------------------
From:
"Anthony D'Atri"
<anthony.da...@gmail.com>;
Date: Tue, Jul 21, 2020 02:01 AM
To: "rainning"<tweety...@qq.com>;
Subject: Re: [ceph-users] "ceph daemon osd.x ops" shows different number
from "ceph osd status <bucket>"
Your messages are very hard to read.
On Jul 20, 2020, at 12:58 AM, rainning <tweety...@qq.com> wrote:
"ceph daemon osd.x ops" shows ops currently in flight, the number is different
from "ceph osd status <bucket&gt;". Is the number of ops in "ceph osd
status <bucket&gt;" also the ops currently in flight?
root@osd021:~#&nbsp;ceph&nbsp;daemon&nbsp;osd.636&nbsp;ops
{
&nbsp;&nbsp;&nbsp;&nbsp;"ops":&nbsp;[],
&nbsp;&nbsp;&nbsp;&nbsp;"num_ops":&nbsp;0
}
root@osd021:~# ceph osd status osd021
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
|&nbsp; id |&nbsp; host&nbsp; |&nbsp; used | avail | wr ops |
wr data | rd ops | rd data |&nbsp;&nbsp; state&nbsp;&nbsp; |
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
|&nbsp; 37 | osd021 |&nbsp; 542G | 1134G |&nbsp;&nbsp;
22&nbsp;&nbsp; |&nbsp;&nbsp; 225k&nbsp;
|&nbsp;&nbsp; 12&nbsp;&nbsp; |&nbsp;&nbsp;
274k&nbsp; | exists,up |
|&nbsp; 91 | osd021 |&nbsp; 567G | 1109G |&nbsp;&nbsp;
38&nbsp;&nbsp; |&nbsp;&nbsp; 281k&nbsp;
|&nbsp;&nbsp; 12&nbsp;&nbsp; |&nbsp; 1006k&nbsp; |
exists,up |
| 147 | osd021 |&nbsp; 551G | 1125G |&nbsp;&nbsp;
32&nbsp;&nbsp; |&nbsp;&nbsp; 307k&nbsp;
|&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp; |&nbsp;&nbsp;
247k&nbsp; | exists,up |
| 201 | osd021 |&nbsp; 549G | 1127G |&nbsp;&nbsp;
82&nbsp;&nbsp; |&nbsp; 1505k&nbsp;
|&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp; |&nbsp;
42.4k&nbsp; | exists,up |
| 264 | osd021 | 1503G | 2222G |&nbsp;&nbsp;&nbsp;
3&nbsp;&nbsp; |&nbsp; 55.2k&nbsp;
|&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp; |&nbsp;
12.2k&nbsp; | exists,up |
| 317 | osd021 | 1537G | 2188G |&nbsp;&nbsp; 13&nbsp;&nbsp;
|&nbsp;&nbsp; 138k&nbsp; |&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp; |&nbsp; 6190&nbsp;&nbsp; | exists,up |
| 375 | osd021 | 1369G | 2356G |&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp; |&nbsp;&nbsp; 834k&nbsp;
|&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp; |&nbsp;
67.4k&nbsp; | exists,up |
| 430 | osd021 | 1424G | 2301G |&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp; |&nbsp; 8192&nbsp;&nbsp;
|&nbsp;&nbsp;&nbsp; 6&nbsp;&nbsp; |&nbsp;
1661k&nbsp; | exists,up |
| 480 | osd021 | 1435G | 2289G |&nbsp;&nbsp;&nbsp;
3&nbsp;&nbsp; |&nbsp; 16.6k&nbsp;
|&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp; |&nbsp;
42.4k&nbsp; | exists,up |
| 535 | osd021 | 1494G | 2231G |&nbsp;&nbsp;&nbsp;
2&nbsp;&nbsp; |&nbsp; 12.0k&nbsp;
|&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; |&nbsp;
27.8k&nbsp; | exists,up |
| 584 | osd021 | 1484G | 2241G |&nbsp;&nbsp;&nbsp;
1&nbsp;&nbsp; |&nbsp; 5529&nbsp;&nbsp;
|&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; |&nbsp;
12.7k&nbsp; | exists,up |
| 636 | osd021 | 1394G | 2331G |&nbsp;&nbsp;&nbsp;
2&nbsp;&nbsp; |&nbsp;&nbsp; 850k&nbsp; |&nbsp;
406&nbsp;&nbsp; |&nbsp; 78.1M&nbsp; | exists,up |
+-----+--------+-------+-------+--------+---------+--------+---------+-----------+
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io