From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754048AbbBZSOn (ORCPT ); Thu, 26 Feb 2015 13:14:43 -0500 Received: from mail.skyhub.de ([78.46.96.112]:46290 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbbBZSOm (ORCPT ); Thu, 26 Feb 2015 13:14:42 -0500 Date: Thu, 26 Feb 2015 19:13:38 +0100 From: Borislav Petkov To: X86 ML Cc: Hitoshi Mitake , Andy Lutomirski , LKML , Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo Subject: Re: [PATCH v2 00/15] x86, alternatives: Instruction padding and more robust JMPs Message-ID: <20150226181338.GF3314@pd.tnic> References: <1424776497-3180-1-git-send-email-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1424776497-3180-1-git-send-email-bp@alien8.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, So this alternatives patchset breaks perf bench mem, here are a couple of patches ontop, you guys tell me whether it makes sense. I wanted to make it run all memset/memcpy routines so here are a couple of patches which do this: ./perf bench mem memset -l 20MB -r all # Running 'mem/memset' benchmark: Routine default (Default memset() provided by glibc) # Copying 20MB Bytes ... 1.136000 GB/Sec 6.026304 GB/Sec (with prefault) Routine x86-64-unrolled (unrolled memset() in arch/x86/lib/memset_64.S) # Copying 20MB Bytes ... 5.333493 GB/Sec 5.633473 GB/Sec (with prefault) Routine x86-64-stosq (movsq-based memset() in arch/x86/lib/memset_64.S) # Copying 20MB Bytes ... 5.828484 GB/Sec 5.851183 GB/Sec (with prefault) Routine x86-64-stosb (movsb-based memset() in arch/x86/lib/memset_64.S) # Copying 20MB Bytes ... 5.553384 GB/Sec 5.956465 GB/Sec (with prefault) This way you can see all results by executing one command only with "-r all". Patches coming as a reply to this message. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --