Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/base/setup_clusterfuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi
# set up mounts in this case.
if [[ -z "$DISABLE_MOUNTS" ]]; then
# Setup Tmpfs dirs for frequently accessed files to save disk I/O.
mount -t tmpfs -o size=250M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/inputs/fuzzer-testcases/
mount -t tmpfs -o size=1280M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/inputs/fuzzer-testcases/
mount -t tmpfs -o size=10M,mode=777 tmpfs $INSTALL_DIRECTORY/clusterfuzz/bot/logs/
mount -t tmpfs -o size=90M,mode=777 tmpfs $BOT_TMPDIR

Expand Down
2 changes: 1 addition & 1 deletion src/clusterfuzz/_internal/fuzzing/corpus_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def _sync_corpus_to_disk(self, corpus, directory):
"""Syncs a corpus from GCS to disk."""
shell.create_directory(directory, create_intermediates=True)
if corpus.backup_url:
tmpdir = environment.get_value('BOT_TMPDIR')
tmpdir = environment.get_value('FUZZ_INPUTS')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this is the only place where this needs to be changed ? What about the place where it runs all the corpus files for various runs ? Where do they get stored ? Should that space also be increased ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes @svasudevprasad, we are confident that this is the only necessary change because the lifecycle of the corpus backup zip files happens entirely within a single function call and they are not used elsewhere. The temporary corpus backups are both downloaded and extracted directly to the /mnt/scratch0/clusterfuzz/inputs/data-bundles directory within the _sync_corpus_to_disk() function itself.

Regarding where the corpus files are stored and whether that space needs to be increased: the corpus files used during various runs are stored in the /mnt/scratch0/clusterfuzz/inputs/data-bundles directory. This path is not a tmpfs mount (unlike BOT_TMPDIR or the fuzzer-testcases directory), as it resides on the standard disk volume (/mnt/scratch0). Since it will have access to more than 100GB of free space, there is no need to increase the space for this.

with tempfile.NamedTemporaryFile(
dir=tmpdir, suffix='.zip') as temp_zipfile:
try:
Expand Down
Loading