[
https://issues.apache.org/jira/browse/MESOS-5268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15257686#comment-15257686
]
AndyPang commented on MESOS-5268:
---------------------------------
I find in mesos cgroup assigin operation are write "cgroup.procs" file ,while
in SLES 11 sp2 sp3 kernel 3.0 have no "cgroup.procs" character,it
reimplantation from community SUSE version kernel 3.2. I have test when write
TGID into cgroup.procs it will not auto write multithread into "tasks".
If I modify both write into "tasks" it will take effect
{code:title=cgroup assigin|borderStyle=solid}
Try<Nothing> assign(const string& hierarchy, const string& cgroup, pid_t pid)
{
return cgroups::write(hierarchy, cgroup, "cgroup.procs", stringify(pid));
}
{code}
> Cgroups CpushareIsolator don't take effect on SLES 11 SP2 SP3
> -------------------------------------------------------------
>
> Key: MESOS-5268
> URL: https://issues.apache.org/jira/browse/MESOS-5268
> Project: Mesos
> Issue Type: Bug
> Components: isolation
> Affects Versions: 0.27.0
> Environment: suse 3.0.101-0.47.71-default #1 SMP Thu Nov 12 12:22:22
> UTC 2015 (b5b212e) x86_64 x86_64 x86_64 GNU/Linux
> Reporter: AndyPang
> Assignee: AndyPang
> Labels: cgroups
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> meson run in SLES 11 sp2 sp3, kernel version 3.0.13/3.076, cpushareisolator
> don't take effect. Two framework cpushare proportion is 1:3, we find at last
> in mesos container cpu.shares value is right, but when we use "top" to see
> result, the cpu usage is not 1:3. Our Application is multithread and can
> fulfil the cpu quota when single run.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)