Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD54F200C08 for ; Thu, 26 Jan 2017 11:10:30 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BBFC5160B4C; Thu, 26 Jan 2017 10:10:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0F162160B40 for ; Thu, 26 Jan 2017 11:10:29 +0100 (CET) Received: (qmail 83997 invoked by uid 500); 26 Jan 2017 10:10:29 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 83988 invoked by uid 99); 26 Jan 2017 10:10:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jan 2017 10:10:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B097DC0EDC for ; Thu, 26 Jan 2017 10:10:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id XePZoHOhgAmL for ; Thu, 26 Jan 2017 10:10:28 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 63A765F1F4 for ; Thu, 26 Jan 2017 10:10:27 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CA5A6E0416 for ; Thu, 26 Jan 2017 10:10:25 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id DE53625291 for ; Thu, 26 Jan 2017 10:10:24 +0000 (UTC) Date: Thu, 26 Jan 2017 10:10:24 +0000 (UTC) From: "haosdent (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-4705) Linux 'perf' parsing logic may fail when OS distribution has perf backports. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 Jan 2017 10:10:30 -0000 [ https://issues.apache.org/jira/browse/MESOS-4705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15839508#comment-15839508 ] haosdent commented on MESOS-4705: --------------------------------- [~bmahler] It looks like have more fields in recent perf version. https://github.com/torvalds/linux/blob/v4.9/tools/perf/util/stat-shadow.c#L528 https://github.com/torvalds/linux/blob/v4.9/tools/perf/builtin-stat.c#L1149 Should we create a new ticket for this since this is marked "resolved" ? > Linux 'perf' parsing logic may fail when OS distribution has perf backports. > ---------------------------------------------------------------------------- > > Key: MESOS-4705 > URL: https://issues.apache.org/jira/browse/MESOS-4705 > Project: Mesos > Issue Type: Bug > Components: cgroups, isolation > Affects Versions: 0.27.1 > Reporter: Fan Du > Assignee: Fan Du > Fix For: 0.26.2, 0.27.3, 0.28.2, 1.0.0 > > > When sampling container with perf event on Centos7 with kernel > 3.10.0-123.el7.x86_64, slave complained with below error spew: > {code} > E0218 16:32:00.591181 8376 perf_event.cpp:408] Failed to get perf sample: Failed to parse perf sample: Failed to parse perf sample line '25871993253,,cycles,mesos/5f23ffca-87ed-4ff6-84f2-6ec3d4098ab8,10059827422,100.00': Unexpected number of fields > {code} > it's caused by the current perf format [assumption | https://git-wip-us.apache.org/repos/asf?p=mesos.git;a=blob;f=src/linux/perf.cpp;h=1c113a2b3f57877e132bbd65e01fb2f045132128;hb=HEAD#l430] with kernel version below 3.12 > On 3.10.0-123.el7.x86_64 kernel, the format is with 6 tokens as below: > value,unit,event,cgroup,running,ratio > A local modification fixed this error on my test bed, please review this ticket. -- This message was sent by Atlassian JIRA (v6.3.4#6332)