From patchwork Mon Sep 15 15:55:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 4906681 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 97CFEBEEA5 for ; Mon, 15 Sep 2014 16:01:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05F8620222 for ; Mon, 15 Sep 2014 16:01:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 59B35200E5 for ; Mon, 15 Sep 2014 16:01:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753936AbaIOQBT (ORCPT ); Mon, 15 Sep 2014 12:01:19 -0400 Received: from soltyk.jannau.net ([185.27.253.110]:60147 "EHLO soltyk.jannau.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753817AbaIOQBS (ORCPT ); Mon, 15 Sep 2014 12:01:18 -0400 X-Greylist: delayed 365 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Sep 2014 12:01:17 EDT Received: from coburn.home.jannau.net (55d46944.access.ecotel.net [85.212.105.68]) by soltyk.jannau.net (Postfix) with ESMTPSA id 2D2663E1959 for ; Mon, 15 Sep 2014 17:55:13 +0200 (CEST) From: Janne Grunau To: ceph-devel@vger.kernel.org Subject: [PATCH 3/3] ceph_erasure_code_benchmark: align the encoding input Date: Mon, 15 Sep 2014 17:55:08 +0200 Message-Id: <1410796508-28711-3-git-send-email-j@jannau.net> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1410796508-28711-1-git-send-email-j@jannau.net> References: <1410796508-28711-1-git-send-email-j@jannau.net> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The benchmark is supposed to measure the encoding speed and not the overhead of buffer realignments. Signed-off-by: Janne Grunau --- src/test/erasure-code/ceph_erasure_code_benchmark.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/erasure-code/ceph_erasure_code_benchmark.cc b/src/test/erasure-code/ceph_erasure_code_benchmark.cc index 84bd7da..f63fd77 100644 --- a/src/test/erasure-code/ceph_erasure_code_benchmark.cc +++ b/src/test/erasure-code/ceph_erasure_code_benchmark.cc @@ -144,6 +144,7 @@ int ErasureCodeBench::encode() bufferlist in; in.append(string(in_size, 'X')); + in.rebuild_aligned(); set want_to_encode; for (int i = 0; i < k + m; i++) { want_to_encode.insert(i);