[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH glibc] Hurd: Fix definition of `PAGE_COPY_THRESHOLD'
From: |
Samuel Thibault |
Subject: |
Re: [PATCH glibc] Hurd: Fix definition of `PAGE_COPY_THRESHOLD' |
Date: |
Wed, 10 Dec 2014 00:07:28 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Hello,
Justus Winter, le Tue 09 Dec 2014 18:06:18 +0100, a écrit :
> Previously, `PAGE_THRESHOLD' was defined instead of
> `PAGE_COPY_THRESHOLD', preventing the optimization of memory copy
> operations using `vm_copy'.
Actually this currently doesn't make any difference since the
Makefile rules end up compiling sysdeps/i386/i586/memcpy{,_chk}.S,
i386/i586/memcopy.h, i386/memcopy.h instead... Also, #if
PAGE_COPY_THRESHOLD doesn't like PAGE_COPY_THRESHOLD being
2*__vm_page_size, it ends up considering it false. Also, the rtld magic
in elf/ doesn't manage to determine that it also needs to include
wordcopy.os. I circumvented those issues in hackish ways to get some
libcs, they are being uploaded to these places:
i386/i586 version:
http://dept-info.labri.fr/~thibault/tmp/libc.so.586asm
C version without vm_copy optimization
http://dept-info.labri.fr/~thibault/tmp/libc.so.inftypage
C version with vm_copy optimization and 1 page limit
http://dept-info.labri.fr/~thibault/tmp/libc.so.1page
C version with vm_copy optimization and 2 page limit
http://dept-info.labri.fr/~thibault/tmp/libc.so.2page
C version with vm_copy optimization and 3 page limit
http://dept-info.labri.fr/~thibault/tmp/libc.so.3page
C version with vm_copy optimization and 4 page limit
http://dept-info.labri.fr/~thibault/tmp/libc.so.4page
so people can try them. Do not install them in /lib/i386-gnu! That does
not seem to be working yet, boot hangs early, apparently when starting
pflocal.
Samuel
Re: Please help me test this glibc patch, Samuel Thibault, 2014/12/09
Re: Please help me test this glibc patch, Samuel Thibault, 2014/12/09