Open Bug 1487151 Opened 6 years ago Updated 2 years ago

Write generated gcda on a ram disk on taskcluster when ccov is enabled

Categories

(Testing :: Code Coverage, enhancement)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: calixte, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

On my machine:
 - ./mach xpcshell-test xpcom => ~7s without ccov
 - ./mach xpcshell-test xpcom => ~2m with ccov
 - GCOV_PREFIX=/mnt/ramdisk ./mach xpcshell-test xpcom => ~17s with ccov

where /mnt/ramdisk has been created with:
mount -t tmpfs -o size=1000m tmpfs /mnt/ramdisk
No longer blocks: code-coverage
What, if any, disadvantages could there be to using a ramdisk over a standard disk?
Flags: needinfo?(cdenizet)
The only disadvantage is that memory usage is increased by a large margin, so we have to make sure we don't run out of memory.
Bug 1487320 can help in decreasing the memory usage.
I don't see any disadvantage other than the memory consumption which will increase.
A first step we can do is to compute the total size of all the gcdas after running all the tests.
Flags: needinfo?(cdenizet)
Depends on: 1553844
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.