Skip to content
Open
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
8 changes: 7 additions & 1 deletion tools/setup/setup_gcsfuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,18 @@ if [[ -d ${MOUNT_PATH} ]]; then
fi

mkdir -p $MOUNT_PATH
MAXTEXT_VERSION=$(pip list | grep '^maxtext ' | awk '{print $2}')
if [[ -z "$MAXTEXT_VERSION" ]]; then
MAXTEXT_VERSION="unknown"
fi
APP_NAME="maxtext-gcsfuse/$MAXTEXT_VERSION"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we add both maxtext and grain versions here? Since the main use case for gcsfuse is for grain



# see https://cloud.google.com/storage/docs/gcsfuse-cli for all configurable options of gcsfuse CLI
TIMESTAMP=$(date +%Y%m%d-%H%M)
gcsfuse -o ro --implicit-dirs --log-severity=debug \
--type-cache-max-size-mb=-1 --stat-cache-max-size-mb=-1 --kernel-list-cache-ttl-secs=-1 --metadata-cache-ttl-secs=-1 \
--log-file=$HOME/gcsfuse_$TIMESTAMP.json "$DATASET_GCS_BUCKET" "$MOUNT_PATH"
--log-file=$HOME/gcsfuse_$TIMESTAMP.json --app-name=$APP_NAME "$DATASET_GCS_BUCKET" "$MOUNT_PATH"

# Use ls to prefill the metadata cache: https://cloud.google.com/storage/docs/cloud-storage-fuse/performance#improve-first-time-reads
if [[ ! -z ${FILE_PATH} ]] ; then
Expand Down
Loading