commit | 7841fcc848ebaac5de43cd4cccf1c243a3cdff56 | [log] [tgz] |
---|---|---|
author | Charles-Francois Natali <cf.natali@gmail.com> | Fri Jun 04 22:17:52 2021 +0800 |
committer | Qian Zhang <zhq527725@gmail.com> | Fri Jun 04 22:17:52 2021 +0800 |
tree | 37c6d0e5cddd2c3480dd09669fa50511007ff4f8 | |
parent | 50b729904e4b4ed7964cd5f2ac8177bca5a5a72c [diff] |
Fixed parsing of `perf` output on some locales. If the locale is such that `LC_NUMERIC` uses the comma ',' as decimal separator, parsing won't work - because of unexpected number of fields and floating points format - so make sure it's set to `C`. Example: ``` [ RUN ] CgroupsAnyHierarchyWithPerfEventTest.ROOT_CGROUPS_PERF_PerfTest ../../src/tests/containerizer/cgroups_tests.cpp:1024: Failure (statistics).failure(): Failed to parse perf sample: Failed to parse perf sample line '6376827291,,cycles,mesos_test,2011741096,100,00,3,GHz': Unexpected number of fields (9) [ FAILED ] CgroupsAnyHierarchyWithPerfEventTest.ROOT_CGROUPS_PERF_PerfTest (2157 ms) ``` Standalone reproducer, using '/' as separator for readability: ``` root@thinkpad:~# LC_NUMERIC=fr_FR.UTF-8 perf stat --field-separator "/" -- true 0,31/msec/task-clock/306721/100,00/0/CPUs utilized 0//context-switches/306721/100,00/0/K/sec 0//cpu-migrations/306721/100,00/0/K/sec 44//page-faults/306721/100,00/0/M/sec 788234//cycles/311478/100,00/2/GHz 538077//instructions/311478/100,00/0/insn per cycle 106749//branches/311478/100,00/348/M/sec 4556//branch-misses/311478/100,00/4/of all branches ``` This closes #391
Apache Mesos is a cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks. It can run Hadoop, Jenkins, Spark, Aurora, and other frameworks on a dynamically shared pool of nodes.
Visit us at mesos.apache.org.
Documentation is available in the docs/ directory. Additionally, a rendered HTML version can be found on the Mesos website's Documentation page.
Instructions are included on the Getting Started page.
Apache Mesos is licensed under the Apache License, Version 2.0.
For additional information, see the LICENSE and NOTICE files.