Giter Site home page Giter Site logo

Comments (7)

dalanlan avatar dalanlan commented on September 16, 2024

And I do apologize for not trying hard enough to bring down kube-scheduler, which could cause some chaos here. That's because it's guarded by docker daemon, and a simple docker stop won't help much.

from poseidon.

ms705 avatar ms705 commented on September 16, 2024

@dalanlan Thanks for reporting this! The memory corruption definitely looks scary, let's try to get to the bottom of this.

A couple of questions on your setup:

  1. Did you build the Poseidon image yourself, or did you download the image from DockerHub?
  2. What cluster setup and workload are you running? I can see some k8s internal pods in the log, but also busybox. Are all these pods pre-existing, or did you submit new ones during this run?
  3. Is the bug deterministic, i.e., does is happen the same way every time?

Moreover, there seem to be several problems here:

  1. The memory corruption, obviously.
  2. The fact that Poseidon fails to bind the pods because it receives a 404 error from the k8s API server when trying to do so.

The second issue could be related to kube-scheduler also running in the environment, but the memory corruption ought not be related.

The best way to debug the memory corruption is to make a debug build of Poseidon. To do this, follow these steps in a blank checkout:

$ mkdir build
$ cd build
$ cmake .. -DDEBUG=1
$ make

This will take a while, but should build Poseidon, Firmament and all of their dependencies with debug symbols and address sanitizers.

Once done, run your experiment again and see if it produces more useful output when the memory corruption happens.

If that doesn't help, you can run Poseidon in gdb:

$ docker run camsas/poseidon:dev /bin/bash
container# apt-get update
container# apt-get install build-essential gdb
container# gdb --args /usr/bin/poseidon \
    --logtostderr \
    --k8s_apiserver_host=<host> \
    --k8s_apiserver_port=<port> \
    --cs2_binary=/usr/bin/cs2.exe \
    --max_tasks_per_pu=<max pods per node>

This will run Poseidon in gdb and should give you more information at the point of crashing.

from poseidon.

dalanlan avatar dalanlan commented on September 16, 2024

@ms705 Thank you so much for the quick response!

Actually I tried to restart the container again and it didn't crash until now. However I was thinking it could help somehow to expose more information here, which I should do long before.

docker version: 1.12.3
k8s version: 1.4.5
poseidon: camsas/poseidon:dev (built 6 months ago)

I tried to build my own image from the HEAD several days ago, but one thing that definitely make my life miserable is that I have to struggle with the poor networking in my lab all the time.

I've rather leave this thread open until I get luck to reproduce.

from poseidon.

ms705 avatar ms705 commented on September 16, 2024

@dalanlan Ok, glad it works better now!

This reminds me, however, that we haven't pushed an updated Docker image in a while, even though things have advanced. I'll build and push one now.

from poseidon.

ms705 avatar ms705 commented on September 16, 2024

New Docker image pushed to camsas/poseidon:dev; please give it a try.

from poseidon.

dalanlan avatar dalanlan commented on September 16, 2024

@ms705 Thank you so much
Any luck you could take a look at #2 please?

from poseidon.

ms705 avatar ms705 commented on September 16, 2024

Closing, as no longer relevant -- Poseidon has moved to Go, and the docker images have been updated.

Let us know if any questions remain, or if you encounter issues with the new code.

from poseidon.

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.