[ https://issues.apache.org/jira/browse/MESOS-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jie Yu updated MESOS-2590: -------------------------- Sprint: Twitter Mesos Q1 Sprint 6 (was: Mesosphere Q1 Sprint 6 - 4/3) > 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)