<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,</p>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> drbd-user-bounces@lists.linbit.com <drbd-user-bounces@lists.linbit.com> on behalf of Lars Ellenberg <lars.ellenberg@linbit.com><br>
<b>Sent:</b> Friday, November 4, 2016 3:02 PM<br>
<b>To:</b> drbd-user@lists.linbit.com<br>
<b>Subject:</b> Re: [DRBD-user] CPU Util for DRBD resources</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Tue, Nov 01, 2016 at 07:02:02AM +0000, pillai bs wrote:<br>
> Hi Experts,<br>
> <br>
> <br>
> Is there a possible way to monitor CPU Util for the drbd resource.<br>
> Actually am getting cent percent utilization even i dont have much<br>
> load.<br>
> <br>
> Am maintaining my setup with three blocks one for Data, other for<br>
> configurations and the other for logs which was logically mounted.<br>
<br>
DRBD version?<br>
<br>
My DRBD Version is <font color="#660066"><font face="Verdana,Arial,Helvetica">"<span>8.3.11 </span></font></font>"<br>
<br>
The stats you present below look like the "queue length" is<br>
misaccounted. Our iostats had some problems in the past, potentially<br>
producing such bogus results.<br>
<br>
<br>
Also, even when correct, %util may not be what you think it is.<br>
<br>
%100 util does not mean it cannot take any more. "I aggree"<br>
It only means that "most of the time" a new request is submitted before<br>
previous requests have been completed, or maybe "back to back" with the<br>
completion.<br>
<br>
Here "back to back" u meant it is synchronizing ?? <br>
<div>cat /proc/drbd<br>
version: 8.3.11 (api:88/proto:86-96)<br>
GIT-hash: 0de839cee13a4160eed6037c4bddd066645e23c5 build by gardner@, 2012-06-26 09:38:36<br>
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate A r-----<br>
ns:1776 nr:0 dw:1776 dr:103377 al:6 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0<br>
1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate A r-----<br>
ns:2760 nr:0 dw:2760 dr:1353 al:11 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0<br>
2: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate A r-----<br>
ns:1551720 nr:0 dw:1551720 dr:8469 al:41 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0<br>
</div>
<br>
There is nothing more to sync. <br>
<br>
My question is <br>
why the "<span>drbd2</span>" alone utilizing CPU more than drbd1/drbd0<br>
SInce it is logicaly mounted, why not the actual "<span>dm-9</span>" shows very minimal util of CPU.<br>
<br>
Hope you got my question. Thank you.<br>
<br>
Depending on usage patterns, and network and IO backend latencies,<br>
100% util may even be expected.<br>
<br>
> [root@pcpha-dev-01 ~]# iostat -x 5 | grep drbd<br>
> drbd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 858980.47 0.00 0.00 99.94<br>
> drbd1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 101.94 0.00 0.00 99.94<br>
> drbd2 0.00 0.00 0.00 0.80 0.00 3.20 4.00 858935.49 0.25 1249.25 99.94<br>
> drbd0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 858980.46 0.00 0.00 100.00<br>
> drbd1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 102.00 0.00 0.00 100.00<br>
> drbd2 0.00 0.00 0.00 2.80 0.00 19.20 6.86 858935.46 0.07 357.14 100.00<br>
> <br>
> [xxxx@xxxx]# iostat -x -d<br>
> Linux 2.6.32-431.el6.x86_64 (xxxx) 10/31/2016 _x86_64_ (4 CPU)<br>
> <br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> sda 0.00 0.86 0.01 1.67 10.96 20.22 18.50 0.00 0.73 0.41 0.07<br>
> dm-0 0.00 0.00 0.00 0.02 0.05 0.12 9.97 0.00 9.66 1.99 0.00<br>
> dm-1 0.00 0.00 0.00 0.00 0.00 0.00 8.00 0.00 2.14 0.82 0.00<br>
> dm-2 0.00 0.00 0.00 0.02 0.02 0.12 9.22 0.00 1.97 0.01 0.00<br>
> dm-3 0.00 0.00 0.00 0.78 0.00 6.23 8.00 0.00 0.48 0.21 0.02<br>
> dm-4 0.00 0.00 0.00 0.00 0.00 0.00 7.99 0.00 3.30 2.89 0.00<br>
> dm-5 0.00 0.00 0.00 0.48 0.01 3.85 8.01 0.00 0.64 0.22 0.01<br>
> dm-6 0.00 0.00 0.00 0.01 0.00 0.04 8.00 0.00 24.47 0.02 0.00<br>
> dm-7 0.00 0.00 0.01 0.03 6.50 0.21 205.25 0.00 37.54 1.13 0.00<br>
> dm-8 0.00 0.00 0.00 0.02 2.21 0.15 109.64 0.00 9.22 0.89 0.00<br>
> dm-9 0.00 0.00 0.00 1.19 2.17 9.50 9.81 0.00 0.65 0.31 0.04<br>
> drbd0 0.00 0.00 0.00 0.01 0.00 0.08 8.00 0.20 421.71 10481.54 10.45<br>
> drbd1 0.00 0.00 0.00 0.01 0.00 0.07 7.95 0.06 76.94 12030.16 10.49<br>
> drbd2 0.00 0.00 0.00 0.56 0.00 3.26 5.85 0.15 0.61 176.92 9.87<br>
> <br>
> [xxxx@xxxx]# iostat -x 5 /dev/vg1/lvdblog<br>
> Linux 2.6.32-431.el6.x86_64 (xxxx) 10/31/2016 _x86_64_ (4 CPU)<br>
> <br>
> <br>
> avg-cpu: %user %nice %system %iowait %steal %idle<br>
> 2.21 0.00 0.75 0.00 0.00 97.04<br>
> <br>
> Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util<br>
> dm-9 0.00 0.00 0.00 1.60 0.00 12.80 8.00 0.00 1.00 0.62 0.10<br>
<br>
<br>
-- <br>
: Lars Ellenberg<br>
: LINBIT | Keeping the Digital World Running<br>
: DRBD -- Heartbeat -- Corosync -- Pacemaker<br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT<br>
__<br>
please don't Cc me, but send to list -- I'm subscribed<br>
_______________________________________________<br>
drbd-user mailing list<br>
drbd-user@lists.linbit.com<br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" id="LPlnk114140" previewremoved="true">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
<div id="LPBorder_GT_14787904384710.08741342486214654" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14787904384660.5295982793317061" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14787904384680.9921647540783114" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14787904384680.08225248559971576"></div>
<div id="LPTitle_14787904384680.6663665179061267" style="top: 0px; color: rgb(230, 69, 36); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14787904384690.7055578181595848" style="text-decoration: none;" href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">drbd-user Info Page - LINBIT</a></div>
<div id="LPMetadata_14787904384700.5447367736932799" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
lists.linbit.com</div>
<div id="LPDescription_14787904384700.8832211586922875" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the drbd-user Archives. Using drbd-user: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</div>
</span></font></div>
</div>
</body>
</html>