From: Zhouping Liu <zliu@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH v2] mem/oom: fixed a cpuset error
Date: Mon, 29 Apr 2013 02:12:02 -0400 (EDT) [thread overview]
Message-ID: <1362519405.3534552.1367215922797.JavaMail.root@redhat.com> (raw)
In-Reply-To: <201304282008.05044.vapier@gentoo.org>
----- Original Message -----
> From: "Mike Frysinger" <vapier@gentoo.org>
> To: "Zhouping Liu" <zliu@redhat.com>
> Cc: ltp-list@lists.sourceforge.net
> Sent: Monday, April 29, 2013 8:08:03 AM
> Subject: Re: [LTP] [PATCH v2] mem/oom: fixed a cpuset error
>
> On Saturday 27 April 2013 02:34:49 Zhouping Liu wrote:
> > From: "Mike Frysinger" <vapier@gentoo.org>
> > > On Saturday 27 April 2013 00:23:14 Zhouping Liu wrote:
> > > > sub-cpuset cgroup only contains CPUs or memory in one node, but
> > >
> > > only contains -> to only contain
> >
> > why 'contain', I think it should be 'contains', isn't it?
>
> when you add the "to", it changes to "contain"
yes, I didn't catch the "to" :(
>
> > > > that's not permitted in the special machine. The patch fixed it.
> > >
> > > what is a "special machine" ?
> >
> > the special machine is that it has such nodes(describe above),
> > in which there's only CPUs or memory.
> >
> > how about this:
> >
> > "that's not permitted in the such above special machine."
>
> i would use:
> that's not permitted in the scenario described above.
Agreed.
>
> > > > + tst_resm(TINFO, "None CPUs in the node%ld", nd);
> > >
> > > i think you mean "no" instead of "None"
> > >
> > > > + tst_resm(TINFO, "Only use CPU0 in the cpuset cgroup "
> > > > + "for the special scenario");
> > >
> > > what is "the special scenario" ?
> >
> > the special scenario is "no CPUs in the node%ld", I think it's clear in log
> > message.
>
> when you say "Only use", that's a command to the user. i think you meant to
> say "Only using".
>
> i think the two messages can be combined into one then:
> tst_resm(TINFO, "No CPUs in node%ld; using only CPU0", nd);
It sounds better, agreed.
>
> > > > mount_mem("cpuset", "cpuset", NULL, CPATH, CPATH_NEW);
> > > >
> > > > - if (is_numa(cleanup) > 0)
> > > > - /* For NUMA system, using the first node for cpuset.mems */
> > > > - write_cpusets(get_a_numa_node(cleanup));
> > > > - else
> > > > - /* For nonNUMA system, using node0 for cpuset.mems */
> > > > - write_cpusets(0);
> > > > +
> > > > + /*
> > > > + * Not any nodes contain memory, so using get_allowed_nodes(NH_MEMS)
> > >
> > > "Not any" -> "No"
> >
> > it's not that meaning, what I meant here is that there's not any nodes
> > contain memory in a NUMA system, Some nodes contain memory, but some nodes
> > don't.
>
> ok, so i think you want to say instead:
> Some nodes do not contain memory, ....
Yes, I have updated it, please review v3.
Thanks,
Zhouping
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2013-04-29 6:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 4:23 [LTP] [PATCH v2] mem/oom: fixed a cpuset error Zhouping Liu
2013-04-27 6:04 ` Mike Frysinger
2013-04-27 6:34 ` Zhouping Liu
2013-04-29 0:08 ` Mike Frysinger
2013-04-29 6:12 ` Zhouping Liu [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=1362519405.3534552.1367215922797.JavaMail.root@redhat.com \
--to=zliu@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=vapier@gentoo.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.