public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: [hurd,commited 6/7] hurd: Fix enabling vm_copy
Date: Sun, 28 Jan 2018 15:25:00 -0000	[thread overview]
Message-ID: <20180127225102.11373-7-samuel.thibault@ens-lyon.org> (raw)
In-Reply-To: <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  <jrtc27@jrtc27.com>
 
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 <mach.h>
 
 /* 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)			      \
-- 
2.15.1

  parent reply	other threads:[~2018-01-27 22:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 15:25 [hurd,commited 0/7] fix warnings Samuel Thibault
2018-01-28 15:25 ` [hurd,commited 2/7] hurd: drop elder MACH_IPC_COMPAT handling Samuel Thibault
2018-01-28 15:25 ` Samuel Thibault [this message]
2018-01-28 15:29 ` [hurd,commited 4/7] hurd: fix warning Samuel Thibault
2018-01-28 16:07 ` [hurd,commited 3/7] hurd: make build-many-glibcs.py use mainline mig Samuel Thibault
2018-01-29 16:33   ` Joseph Myers
2018-01-28 16:32 ` [hurd,commited 5/7] hurd: fix warning Samuel Thibault
2018-01-28 16:36 ` [hurd,commited 1/7] " Samuel Thibault
2018-01-28 16:53 ` [hurd,commited 7/7] " Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180127225102.11373-7-samuel.thibault@ens-lyon.org \
    --to=samuel.thibault@ens-lyon.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).