From patchwork Sat Jan 27 22:51:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 866791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-89715-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="xZHpbH+Q"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTWHF71vwz9s9Y for ; Sun, 28 Jan 2018 09:51:53 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=JIr2slkp4Ny+DuJIdCLcofCGqxgAG3A 5gmod4IqJy1tRDrTIn2CE2ZxmEehsAV/6UuJD2RLxyALa0C4EGuCNJep/75goyU1 ubuhlO769XlbVmT1l2jsyIaSB3Q+vowqX4PvpUGOhK8kKQ+cs9LwJeqs9YBO9uiI 65MYUeNmokfo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=oshwyjqesRFX31pB9560rt4K4bk=; b=xZHpb H+Qwr28vP1Jilhgj+3a0VNiS2nlUOtTBJkEuZlyE1iEoS9BDkI/SHADRgxiRZAXb 70/m1ZdBmYNJ7vYjzMuEsb1xlIyYcmosWgiZmbAICYgBm651glazRWfmZzPO5NEw 6z+Rz3TJ5Js/+q4j330diWYit3WcOU0FPNONV8= Received: (qmail 4899 invoked by alias); 27 Jan 2018 22:51:12 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 4769 invoked by uid 89); 27 Jan 2018 22:51:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 6/7] hurd: Fix enabling vm_copy Date: Sat, 27 Jan 2018 23:51:01 +0100 Message-Id: <20180127225102.11373-7-samuel.thibault@ens-lyon.org> In-Reply-To: <20180127225102.11373-1-samuel.thibault@ens-lyon.org> References: <20180127225102.11373-1-samuel.thibault@ens-lyon.org> Benchmarked on http://lists.gnu.org/archive/html/bug-hurd/2014-12/msg00081.html * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to PAGE_COPY_THRESHOLD and set to benchmarked 16384. --- ChangeLog | 2 ++ sysdeps/mach/pagecopy.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5e62415607..95e2c07df5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,8 @@ __task_terminate would ever return successfully. * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable to global scope. + * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to + PAGE_COPY_THRESHOLD and set to benchmarked 16384. 2018-01-27 James Clarke diff --git a/sysdeps/mach/pagecopy.h b/sysdeps/mach/pagecopy.h index 6285ffb416..8583df4569 100644 --- a/sysdeps/mach/pagecopy.h +++ b/sysdeps/mach/pagecopy.h @@ -19,8 +19,8 @@ #include /* Threshold at which vm_copy is more efficient than well-optimized copying - by words. This parameter should be tuned as necessary. */ -#define PAGE_THRESHOLD (2 * PAGE_SIZE) /* XXX ? */ + by words. */ +#define PAGE_COPY_THRESHOLD (16384) #define PAGE_SIZE __vm_page_size #define PAGE_COPY_FWD(dstp, srcp, nbytes_left, nbytes) \