FYI patch: using write to output the file

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 8 15:24:28 PST 2016


I don't know if it could theoretically make it faster. I think that if your
write to a mmap'ed buffer actually have to hit a disk, that access blocks
the thread, but as we only write to a mmap'ed area, so it virtually never
blocks for our case, no?

On Tue, Mar 8, 2016 at 3:15 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> The attached patch changes lld to use posix_memalign + write instead of
> mmap.
>
> When linking "small" binaries like clang there is almost no
> difference. When linking scylladb I get a 1.019X slowdown when writing
> to tmpfs and a 1.040 speedup when writing to btrfs.
>
> At this stage I would say this just shows there is potential, but we
> have to at least benchmark this on a few filesystems.
>
> It would also be interesting to try doing one write for each section.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160308/f6df8a12/attachment.html>


More information about the llvm-commits mailing list