Skip to content

Commit

Permalink
Merge pull request #598 from google:rto
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625724059
  • Loading branch information
maxtext authors committed Apr 17, 2024
2 parents 3e316bd + cee962b commit de9715d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
7 changes: 2 additions & 5 deletions maxtext_dependencies.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
# Use Python 3.10 as the base image
FROM python:3.10-slim-bullseye

# Install system dependencies Git, and numactl
RUN apt-get update && apt-get install -y curl gnupg git numactl

# Install dependencies for adjusting network rto
RUN apt-get update && apt-get install -y iproute2 ethtool lsof
# Install system dependencies
RUN apt-get update && apt-get install -y curl gnupg

# Add the Google Cloud SDK package repository
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
Expand Down
7 changes: 0 additions & 7 deletions rto_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ set -e

echo "Adjust Network settings and apply non cache copy"

# Install ip.
apt-get update
yes | apt-get install net-tools
yes | apt-get install iproute2
yes | apt-get install procps
yes | apt-get install ethtool

# Disable slow start after idle
sysctl net.ipv4.tcp_slow_start_after_idle=0

Expand Down
8 changes: 7 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ apt update && \
apt install -y numactl && \
apt install -y lsb-release && \
apt install -y gnupg && \
apt install -y curl
apt install -y curl && \
apt install -y net-tools && \
apt install -y iproute2 && \
apt install -y procps && \
apt install -y lsof && \
apt install -y git && \
apt install -y ethtool
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
echo "deb https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | tee /etc/apt/sources.list.d/gcsfuse.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
Expand Down

0 comments on commit de9715d

Please sign in to comment.