From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EB2DC43387 for ; Mon, 14 Jan 2019 11:26:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D29F720656 for ; Mon, 14 Jan 2019 11:26:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726615AbfANL0n (ORCPT ); Mon, 14 Jan 2019 06:26:43 -0500 Received: from mga11.intel.com ([192.55.52.93]:50339 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfANL0m (ORCPT ); Mon, 14 Jan 2019 06:26:42 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2019 03:26:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,477,1539673200"; d="scan'208";a="125732315" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jan 2019 03:26:42 -0800 Received: from [10.125.252.160] (abudanko-mobl.ccr.corp.intel.com [10.125.252.160]) by linux.intel.com (Postfix) with ESMTP id 70B5C580261; Mon, 14 Jan 2019 03:26:39 -0800 (PST) Subject: Re: [PATCH v1 0/4] perf: enable compression of record mode trace to save storage space To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Namhyung Kim , Alexander Shishkin , Andi Kleen , linux-kernel References: <20190109172843.GE19455@krava> <20190114110325.GB22336@krava> From: Alexey Budankov Organization: Intel Corp. Message-ID: Date: Mon, 14 Jan 2019 14:26:38 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190114110325.GB22336@krava> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14.01.2019 14:03, Jiri Olsa wrote: > On Mon, Jan 14, 2019 at 11:43:31AM +0300, Alexey Budankov wrote: >> Hi, >> On 09.01.2019 20:28, Jiri Olsa wrote: >>> On Mon, Dec 24, 2018 at 04:21:33PM +0300, Alexey Budankov wrote: >>>> >>>> buffers for asynchronous trace writing serve that purpose. >>> >>> I dont like that it's onlt for aio only, I can't really see why it's >> >> For serial streaming, on CPU bound codes, under full system utilization it >> can induce more runtime overhead and increase data loss because amount of >> code on performance critical path grows, of course size of written data >> reduces but still. Feeding kernel buffer content by user space code to a >> syscall is extended with intermediate copying to user space memory with >> doing some math on it in the middle. >> >>> a problem for normal data.. can't we just have one layer before and >>> stream the data to the compress function instead of the file (or aio >>> buffers).. and that compress functions would spit out 64K size COMPRESSED >>> events, which would go to file (or aio buffers) >> >> It is already almost like that. Compression could be bridged using AIO >> buffers but then still streamed to file serially using record__pushfn() >> and that would make some sense for moderate profiling cases on systems >> without AIO support and trace streaming based on it. >> >>> >>> the report side would process them (decompress) on the session layer >>> before the tool callbacks are called >> >> It is already pretty similar to that. > > hum, AFAICS you do that in report code not in on the session layer Correct. Decompressor and handling of compressed data chunks could be moved to session related code. Thanks, Alexey > > jirka >