public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [libc/string] State of PAGE_COPY_FWD / PAGE_COPY_THRESHOLD
@ 2016-11-01  9:28 Maxim Kuvyrkov
  2016-11-01 13:59 ` Adhemerval Zanella
  2016-11-10  8:27 ` Florian Weimer
  0 siblings, 2 replies; 16+ messages in thread
From: Maxim Kuvyrkov @ 2016-11-01  9:28 UTC (permalink / raw)
  To: GNU C Library

I wanted to check performance impact of using linux zero page sharing in calls to memset (PTR, 0, SIZE).  I remembered seeing PAGE_COPY_FWD_MAYBE and PAGE_COPY_THRESHOLD in string/memcpy.c, and my plan was to copy this logic to an experimental memset() implementation.

Closer inspection of the current code showed that only Mach port attempted to use full-page copying in memcpy.c, but now even the Mach port disables it.  The net result is that code in string/memcpy.c, as well as parts of headers sysdeps/generic/pagecopy.h and sysdeps/generic/memcopy.h are dead code.

From the above we have 2 questions:
1. Is it possible to use full-page copy (with COW) in the Linux glibc port for memcpy() and/or memset(0)?

2. If not, then is there any reason to keep the dead code around or should we clean it up?

--
Maxim Kuvyrkov
www.linaro.org



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-11-30 11:18 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-01  9:28 [libc/string] State of PAGE_COPY_FWD / PAGE_COPY_THRESHOLD Maxim Kuvyrkov
2016-11-01 13:59 ` Adhemerval Zanella
2016-11-10  7:39   ` Maxim Kuvyrkov
2016-11-10  7:48     ` Andrew Pinski
2016-11-10  7:52       ` Maxim Kuvyrkov
2016-11-10  8:01         ` Andrew Pinski
2016-11-10  8:05           ` Andrew Pinski
2016-11-10  8:25             ` Florian Weimer
2016-11-10  8:34               ` Andrew Pinski
2016-11-10  8:55                 ` Andrew Pinski
2016-11-10  9:25                   ` Siddhesh Poyarekar
2016-11-10  9:29                     ` Florian Weimer
2016-11-10  9:34                       ` Siddhesh Poyarekar
2016-11-30 11:18                   ` Siddhesh Poyarekar
2016-11-10  8:26     ` Florian Weimer
2016-11-10  8:27 ` Florian Weimer

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).