[PATCH] D39464: Define fs::allocate_file which preallocates disk blocks.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 16:59:09 PST 2017


On Tue, Nov 14, 2017 at 8:56 AM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Joerg Sonnenberger via Phabricator <reviews at reviews.llvm.org> writes:
>
> > joerg added a comment.
> >
> > I really dislike this direction. fallocate can double the amount of disk
> IO and increase cache trashing, especially when linking large programs with
> debug information. Keeping more things in memory doesn't sound like an
> actual improvement either. If the goal is really only to improve the
> diagnostics in tools, I think a better idea would be to figure out a good
> way to handle this from a SIGBUS handler based on the passed in siginfo_t.
>
> fallocate is really fast on modern filesystems.
>
> I really don't want to get lld into the business of handling SIGBUS.
>

I'd agree with that. Especially when you are using lld as a library, we
shouldn't change the signal handler, but we still want to catch disk full
errors.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171114/869c1b4d/attachment.html>


More information about the llvm-commits mailing list