This is an archive of the discontinued LLVM Phabricator instance.

Make test use a smaller file
AbandonedPublic

Authored by dyung on Jul 29 2020, 12:30 PM.

Details

Summary

In our internal build bot, we were seeing random test failures due to running out of disk space which we eventually traced back to this test which tries to create a large file to test with. This was being written to disk and eating most if not all of the 59GB of free space we had remaining on the machine. And while this test itself did not fail, it caused other tests running at the same time to fail due to being unable to write their output to the disk.

It was discovered that the test should still work with a smaller value which also avoids creating as large of a file. I've run the LLD tests with this change locally multiple times and it seems to avoid the problem we were encountering.

Diff Detail

Event Timeline

dyung created this revision.Jul 29 2020, 12:30 PM
dyung requested review of this revision.Jul 29 2020, 12:30 PM
MaskRay added a comment.EditedJul 29 2020, 1:04 PM

Thanks for reporting this issue! That patch fell out of my radar when it was committed. I would slightly change the code construct the test file used. Fixed in ed7bde0e4b40cbf8a7c833fd8240c957fcda176e

We should use -o /dev/null if the output is not needed and use a section of different permissions. .text_low & .text_overflow are by default in the same segment and can make the segment have very large p_filesz.

dyung abandoned this revision.Jul 29 2020, 3:43 PM

Thanks for the fix!