<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Gianluca,
<div class=""><br class="">
<div class="">This is an interesting thread and I’m glad you found a solution.  I wonder if newer RHEL 6 kernels or if the RHEL 7 kernel provides the needed mechanism to tie pvmove to the kernel thread kcopyd such that your first technique would work without
 manually finding the kcopyd PID each time you call pvmove.</div>
<div class=""><br class="">
</div>
<div class="">/Brian/</div>
<div class=""><span style="font-family: 'Courier New'; orphans: 2; text-align: -webkit-auto; widows: 2;" class="">-- </span><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div style="color: rgb(0, 0, 0); font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class=""><font face="Courier New" class="">       Brian Long                             |       |</font></div>
<div class=""><font face="Courier New" class="">       Research Triangle Park, NC         . | | | . | | | .</font></div>
<div class=""><font face="Courier New" class="">                                              '       '</font></div>
<div class=""><font face="Courier New" class="">                                              C I S C O</font></div>
</div>
</div>
</div>
</div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 26, 2016, at 11:51 AM, Gianluca Cecchi <<a href="mailto:gianluca.cecchi@gmail.com" class="">gianluca.cecchi@gmail.com</a>> wrote:</div>
<div class="">
<div dir="ltr" class="">
<div class="gmail_extra">
<div class="gmail_quote">
<div class=""><br class="">
</div>
<div class="">With iotop I see the PID of kcopyd that starts right after pvmove command.... (the kcopyd pid is different every pvmove run, not a fixed process)</div>
<div class=""><br class="">
</div>
<div class="">[root@dbatest1 ~]# ps -ef|grep 11139</div>
<div class="">root     11139     2  1 17:40 ?        00:00:02 [kcopyd]</div>
<div class="">root     17103 19305  0 17:43 pts/0    00:00:00 grep 11139</div>
<div class=""><br class="">
</div>
<div class="">BTW, kcopyd is child of kthreadd:</div>
<div class=""><br class="">
</div>
<div class="">root         2     0  0 Jun29 ?        00:00:00 [kthreadd]</div>
<div class=""><br class="">
</div>
<div class="">So I put kcopyd process into the control group too</div>
<div class=""><br class="">
</div>
<div class=""># echo 11139 > /cgroup/blkio/30M/tasks</div>
<div class=""><br class="">
</div>
<div class="">so that I now have pvmove process and kcopyd process</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">[root@dbatest1 ~]# cat /cgroup/blkio/30M/tasks</div>
<div class="">11139</div>
<div class="">12765</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>