From: "Liu, Yong" <yong.liu@intel.com>
To: "Xu, HuilongX" <huilongx.xu@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] check dpdk process and hugepage status after kill dpdk process
Date: Tue, 14 Jul 2015 07:19:12 +0000 [thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10E612AD@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1436856144-14214-1-git-send-email-huilongx.xu@intel.com>
Applied in 1.1 branch, removed those message that no process found.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilongx,xu
> Sent: Tuesday, July 14, 2015 2:42 PM
> To: dts@dpdk.org
> Subject: [dts] check dpdk process and hugepage status after kill dpdk
> process
>
> From: huilong xu <huilongx.xu@intel.com>
>
>
> Signed-off-by: huilong xu <huilongx.xu@intel.com>
> ---
> framework/crb.py | 19 +++++++++++++++++++
> 1 files changed, 19 insertions(+), 0 deletions(-)
>
> diff --git a/framework/crb.py b/framework/crb.py
> index f6ac811..295988b 100644
> --- a/framework/crb.py
> +++ b/framework/crb.py
> @@ -331,6 +331,25 @@ class Crb(object):
> cmd = "for i in `lsof /var/run/.rte_config /var/run/dpdk_config \
> | awk '/config/ {print $2}'` ; do kill -9 $i; done"
> self.alt_session.session.send_expect(cmd, "# ", 10)
> + proce_cmd = "lsof /var/run/.rte_config /var/run/dpdk_config | awk
> '{print $2}'"
> + hugepage_cmd = "lsof /var/run/.rte_hugepage_info | awk {print
> $2}"
> + out = self.alt_session.session.send_expect(proce_cmd, "# ",10)
> + if "PID" in out:
> + self.logger.warning("There are same dpdk process not killed")
> + self.logger.warning("**************************************")
> + self.logger.warning(out)
> + self.logger.warning("**************************************")
> + else:
> + self.logger.info("not any dpdk process running")
> +
> + out = self.alt_session.session.send_expect(hugepage_cmd, "# ",10)
> + if "PID" in out:
> + self.logger.warning("There are some dpdk process not free
> hugepage")
> + self.logger.warning("**************************************")
> + self.logger.warning(out)
> + self.logger.warning("**************************************")
> + else:
> + self.logger.info("not any dpdk process used hugepage")
> time.sleep(.7)
>
> def close(self):
> --
> 1.7.4.4
prev parent reply other threads:[~2015-07-14 7:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 6:42 huilongx,xu
2015-07-14 7:19 ` Liu, Yong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86228AFD5BCD8E4EBFD2B90117B5E81E10E612AD@SHSMSX103.ccr.corp.intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
--cc=huilongx.xu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).