Skip to content

Conversation

@9640-Akhil
Copy link
Contributor

The 90MB tmpfs mount allocated for 'BOT_TMPDIR' ('/mnt/scratch0/tmp') is insufficient for downloading large corpus backups, leading to "OSError: [Errno 28] No space left on device" error in Cuttlefish and Linux hosts .

This error occurs during corpus synchronization, when a corpus backup zip file is downloaded to a temporary file within '/mnt/scratch0/tmp' in _sync_corpus_to_disk() before being extracted. If the said corpus' zip file exceeds 90MB, the download attempt fails.

This change increases the size of the 'BOT_TMPDIR' tmpfs mount to 1GB to accommodate for a large corpus backup zip file and prevent this error.

@svasudevprasad
Copy link
Collaborator

/gcbrun

The 90MB tmpfs mount allocated for 'BOT_TMPDIR' is insufficient for
downloading large corpus backup files, leading to the
"OSError: [Errno 28] No space left on device" error in Cuttlefish and Linux
hosts.

This change increases the tmpfs mount size to 1GB to accommodate larger
corpus backup files.
@9640-Akhil 9640-Akhil reopened this Dec 16, 2025
@svasudevprasad
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@marktefftech marktefftech left a comment

Choose a reason for hiding this comment

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

@javanlacerda From our analysis, the largest corpus size needed to download is approximately ~800MB, hence the selection of 1GB as the size.

Please let us know if this works for you.

@javanlacerda
Copy link
Contributor

@javanlacerda From our analysis, the largest corpus size needed to download is approximately ~800MB, hence the selection of 1GB as the size.

Please let us know if this works for you.

I think it should be all good. Any inputs here @jonathanmetzman ?

@jonathanmetzman
Copy link
Collaborator

ACtually better than enlarging this, could we put the backup in the same volume as the testcases?

Copy link
Collaborator

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

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

Have you verified this works?

# 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/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's put it here and increase this size to 1.25GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants