hunk.code_window:       the plasma manager port.
     """
     # Compute a fraction of the system memory for the Plasma store to use.
     system_memory = psutil.virtual_memory().total
     plasma_store_memory = int(system_memory * 0.75)
     # Start the Plasma store.
     plasma_store_name, p1 = plasma.start_plasma_store(plasma_store_memory=plasma_store_memory, use_profiler=RUN_PLASMA_STORE_PROFILER)
     # Start the plasma manager.
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:   if sys.platform == "linux" or sys.platform == "linux2":
       # On linux we use /dev/shm, its size is half the size of the physical
       # memory. To not overflow it, we set the plasma memory limit to 0.4 times
       # the size of the physical memory.
       plasma_store_memory = int(system_memory * 0.4)
     else:
       plasma_store_memory = int(system_memory * 0.75)
  
hunk.file_path: lib/python/ray/services.py
hunk.type: replace
file: #!/bin/bash
  
  if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
    # Linux test uses Docker
  
    # We need to update the Docker version provided by Travis CI
    # in order to set shm size, a setting required by some of the
    # tests.
    sudo apt-get update
    sudo apt-get -y install apt-transport-https ca-certificates
    sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    echo deb https://apt.dockerproject.org/repo ubuntu-trusty main | sudo tee --append /etc/apt/sources.list.d/docker.list
    sudo apt-get update
    sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install docker-engine
    docker version
  
    # We tar the current checkout, then include it in the Docker image
    tar --exclude './docker' -c . > ./docker/test-base/ray.tar
    docker build --no-cache -t ray-project/ray:test-base docker/test-base
    rm ./docker/test-base/ray.tar
    docker build --no-cache -t ray-project/ray:test-examples docker/test-examples
    docker ps -a
  else
    # Mac OS X test
    ./install-dependencies.sh
    ./setup.sh
    ./build.sh
  fi
  