bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH glibc] Hurd: Fix definition of `PAGE_COPY_THRESHOLD'


From: Justus Winter
Subject: [PATCH glibc] Hurd: Fix definition of `PAGE_COPY_THRESHOLD'
Date: Tue, 9 Dec 2014 18:06:18 +0100

Previously, `PAGE_THRESHOLD' was defined instead of
`PAGE_COPY_THRESHOLD', preventing the optimization of memory copy
operations using `vm_copy'.

Also, increase the threshold to 4 pages.  XXX Tune this.

* sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to `PAGE_COPY_THRESHOLD'.
Raise threshold to XXX pages.
---
 sysdeps/mach/pagecopy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/mach/pagecopy.h b/sysdeps/mach/pagecopy.h
index 8db2147..75e700a 100644
--- a/sysdeps/mach/pagecopy.h
+++ b/sysdeps/mach/pagecopy.h
@@ -20,7 +20,7 @@
 
 /* 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 ? */
+#define PAGE_COPY_THRESHOLD    (4 * PAGE_SIZE) /* XXX Tune this.  */
 
 #define PAGE_SIZE              __vm_page_size
 #define PAGE_COPY_FWD(dstp, srcp, nbytes_left, nbytes)                       \
-- 
2.1.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]