]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix enabling vm_copy
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 21:09:30 +0000 (22:09 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 21:09:30 +0000 (22:09 +0100)
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
sysdeps/mach/pagecopy.h

index 5e624156072b951b445efa5650c831ff74d12141..95e2c07df5cdc6d0d11bda3bf530ddfce23002f5 100644 (file)
--- 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>
 
index 6285ffb41690f60aad169119a6e392f283331c2b..8583df45692883bf789d5a78e3d603dda438f11f 100644 (file)
@@ -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)                       \