Git Product home page Git Product logo

Comments (7)

xwu99 avatar xwu99 commented on August 16, 2024

@edoakes @shrekris-anyscale

from ray.

GeneDer avatar GeneDer commented on August 16, 2024

@xwu99 I tried it on latest master and this is what I got

image

Can you try with latest Ray 2.10.0 or nightly and see if you are still still this behavior?

from ray.

xwu99 avatar xwu99 commented on August 16, 2024

from ray.

xwu99 avatar xwu99 commented on August 16, 2024

I tried on another server and also run it as baremetal and inside a container, it still has the issue. already using latest Ray 2.10.

The result from docker
image

Dockerfile:

# Use an official Python runtime as a parent image
FROM python:3.9-slim

# Set the working directory in the container
WORKDIR /app

# Install Ray and any other dependencies
RUN pip install ray[serve]

# Copy your application code into the container
COPY . /app

However, when I used my laptop's WSL environment, it worked without performance degradation:
image

Did you try it on a server or a desktop? Could you share your configs?

from ray.

GeneDer avatar GeneDer commented on August 16, 2024

Hi @xwu99 The original screenshot provided was from my local. I just built the image with the exact dockerfile you shared and this is the results
image
Seems to be consistent within some margin of error. I feel maybe there are something special in your hardware that's slowing down the computation? It also seemed to take a lot more time to even start up (~18s) in your vs even in the container I'm seeing ~5s start up time?

from ray.

xwu99 avatar xwu99 commented on August 16, 2024

Hi @xwu99 The original screenshot provided was from my local. I just built the image with the exact dockerfile you shared and this is the results image Seems to be consistent within some margin of error. I feel maybe there are something special in your hardware that's slowing down the computation? It also seemed to take a lot more time to even start up (~18s) in your vs even in the container I'm seeing ~5s start up time?

Thanks for the update. the 18s comes from I changed the calculation range from this result.
for i in range(1, 200000000):
result = i**0.5
After changed back to 100000000, it's 5.856838226318359. I used htop to confirm there is no active processing in the background. But it's still weird to see the perf differences inside Ray deployment.

Could you share your CPU type and freq for your 5 sec result?

I would like to use an AWS instance to try this again.

from ray.

xwu99 avatar xwu99 commented on August 16, 2024

@GeneDer another round of testing. I found when Ray is running in the background. The standalone python script also slowed down.
image

Also if I disabled dashboard using ray start --head --include-dashboard False, the performance is back to normal. But I can't imagine why background dashboard can impact another script's performance.

from ray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.