You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Jie Yu (JIRA)" <ji...@apache.org> on 2015/04/03 23:37:53 UTC

[jira] [Assigned] (MESOS-2590) Let the slave control the duration of the perf sampler instead of relying on a sleep command.

     [ https://issues.apache.org/jira/browse/MESOS-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jie Yu reassigned MESOS-2590:
-----------------------------

    Assignee: Jie Yu

> Let the slave control the duration of the perf sampler instead of relying on a sleep command.
> ---------------------------------------------------------------------------------------------
>
>                 Key: MESOS-2590
>                 URL: https://issues.apache.org/jira/browse/MESOS-2590
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Jie Yu
>            Assignee: Jie Yu
>              Labels: twitter
>
> Right now, we use a sleep command to control the duration of perf sampling:
> {noformat}
> sudo perf stat -a -x, --log-fd 1 --pid 10940 -- sleep 10
> {noformat}
> This causes an additional process (i.e., the sleep process) to be forked and causes troubles for us to terminate the perf sampler once the slave exits (See MESOS-2462).
> Seems that the additional sleep process is not necessary. The slave can just monitor the duration and send a SIGINT to the perf process when duration elapsed. This will cause the perf process to output the stats and terminate.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)