Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1648567imm; Sun, 23 Sep 2018 08:34:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV63EOoHyeLicyr9ngHYngTvH23QgyssBanBR/po/2s3fPybire9sHPGl6bqabwG2ZuVTlHOO X-Received: by 2002:a63:f110:: with SMTP id f16-v6mr3481321pgi.236.1537716851998; Sun, 23 Sep 2018 08:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537716851; cv=none; d=google.com; s=arc-20160816; b=bkCSICMAsVFsaYVkH7WqpBuknQY7mqm8agECuKCSzAgmAMaa9YGGNxpwK551f8o86x vcjxWadR3q5sTzWWrbyxB2ZlVnLwVxaLuQFwGgwby2yXXfH5EgQhDsI1+vBKKvrssDiE hbxirtK0f4mqjeLBfS3ox0sUoy/Cq4pxptZIXaxagIuaK+Md5SNNNdcAi2S8ztkj6V2W j1QqjrI4sn46b4aQjlbvMGGKssEt2vwBD+nhmFJ6aTHCFtv4yfe6UW/P0HIolokTwcMt Vp7giss8+1KP6hwoTNTbrOmZcNdB8vH+uZdzZl9VY3hYo3sja1kYdDFpWa4m5WdmZ79M iSzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dmarc-filter :dkim-signature:dkim-signature; bh=C29xSJiRgvnIfX2Ag3lVO1KQlxnN3jykXdZvWF2SS50=; b=babsQJyTJ0zaA3W5tmgHpmoI5liZ4TVuVCxtdhJkk0JDR8E9XGou7HksBEjR11JR/t UNpi7Vm0d05E6yN9MT1XoDW1xStgJZcDp5lJApoEfLSO+Y8Da4ED4wKdIlj8EZMBOUdm pThtaDP5lC1tMuat+dK7ra8tDvEsti1a+p5bY1Pv7pzE7k8JFPHhiu1mecNJYDSzlSVU 2GRsMRnWBANg/7RQEjQmr/D3hZ5BSZSFWSD81Iycba1pm6U4DJVhnh+lF7u28xCA5YTv e24e3XltGC3YCeydInY5j1DavwuR/gwncSRs3cZ1ezJqxMdmrUnMN5if6VyhNHlvV1v/ RyEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BclPSk33; dkim=pass header.i=@codeaurora.org header.s=default header.b=IPrgwByi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22-v6si30499760pgk.326.2018.09.23.08.33.56; Sun, 23 Sep 2018 08:34:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BclPSk33; dkim=pass header.i=@codeaurora.org header.s=default header.b=IPrgwByi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbeIWVbJ (ORCPT + 99 others); Sun, 23 Sep 2018 17:31:09 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46382 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726094AbeIWVbJ (ORCPT ); Sun, 23 Sep 2018 17:31:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4706560C6C; Sun, 23 Sep 2018 15:33:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537716798; bh=k9lzblhHqQbmuaZaoyXA5IIlqXHWRmy4igZm8BG+q4w=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=BclPSk33ZdVMDaXv7ZEs42zFfymcL5NaYdv/EkLWqS7x2/1MKWHyaBr31djgSbG41 qbHRYT7bDGAWjvd+aRyoZT8j0NNYGNx8CyrB84G2ThVDyJYSVpfEpG/o+WKGkmWvCw 5F8AcFlWPeBjg6IHod1xnVS+7dQCok7M53MWDUBE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.43.47] (unknown [27.59.63.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2073660B7F; Sun, 23 Sep 2018 15:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537716797; bh=k9lzblhHqQbmuaZaoyXA5IIlqXHWRmy4igZm8BG+q4w=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=IPrgwByiyb/Cugq9OjjZZljqwSONqcV03mn7Wz1CoBg6aDxesPZjMl+rsuTEuY3fM 5hCm0+F7mqGZUzFmq8K85T8K6yhBChyY3W3AxRt26L4WN80vzKCIedjL0UAHbwjmot Z8E+xGFl/RRHzoloxPpo3q16iJI/7SVrTvIzwr58= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2073660B7F Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org Subject: Re: [PATCH 2/6] pstore: Add event tracing support From: Sai Prakash Ranjan To: Joel Fernandes Cc: Steven Rostedt , Ingo Molnar , Laura Abbott , Kees Cook , Anton Vorontsov , Rob Herring , devicetree@vger.kernel.org, Colin Cross , Jason Baron , Tony Luck , Arnd Bergmann , Catalin Marinas , Will Deacon , Masami Hiramatsu , Joe Perches , Jim Cromie , Rajendra Nayak , Vivek Gautam , Sibi Sankar , linux-arm-kernel@lists.infradead.org, LKML , linux-arm-msm@vger.kernel.org, Greg Kroah-Hartman , Ingo Molnar , Tom Zanussi , Prasad Sodagudi , tsoni@codeaurora.org, Bryan Huntsman , Tingwei Zhang , kernel-team References: Message-ID: Date: Sun, 23 Sep 2018 21:03:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/22/2018 10:07 PM, Sai Prakash Ranjan wrote: > On 9/22/2018 2:35 PM, Joel Fernandes wrote: >> On Sat, Sep 8, 2018 at 4:28 PM Sai Prakash Ranjan >> wrote: >>> >>> + >>> +       trace_seq_init(&iter->seq); >>> +       iter->ent = fbuffer->entry; >>> +       event_call->event.funcs->trace(iter, 0, event); >>> +       trace_seq_putc(&iter->seq, 0); >> >> Would it be possible to store the binary trace record in the pstore >> buffer instead of outputting text? I suspect that will both be faster >> and less space. >> > > I will try this and come back. > Hi Joel, I removed trace_seq_putc and there is some improvement seen: 203 MB/s # dd if=/dev/zero of=/dev/null status=progress 12207371264 bytes (12 GB, 11 GiB) copied, 60 s, 203 MB/s^C 24171926+0 records in 24171926+0 records out 12376026112 bytes (12 GB, 12 GiB) copied, 60.8282 s, 203 MB/s This seems good when compared to 190 MB/s seen previously. If this is Ok, then I will spin v2 with changes suggested. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation