Giter Site home page Giter Site logo

memory usage a bit high about utp HOT 11 CLOSED

anacrolix avatar anacrolix commented on May 28, 2024
memory usage a bit high

from utp.

Comments (11)

whyrusleeping avatar whyrusleeping commented on May 28, 2024

I have the memory profile, cpu profile, and stack dump from a recent out of memory panic, if you want to look at that for any debugging stuff.

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

Please send that along. There's a status function that you can use to determine what the state of the utp package is, https://godoc.org/github.com/anacrolix/utp#WriteStatus. If you have a running instance that has strange memory use, get the output of that (I chain it up to a status HTTP server that runs on on demand on localhost using github.com/anacrolix/envpprof), and send that too.

Assuming everything is working correctly, a spike in uTP activity will cause memory use to jump, and then Go's default GC collection strategy of waiting until memory doubles will mean you won't see a collection from sync.Pool allocations.

from utp.

whyrusleeping avatar whyrusleeping commented on May 28, 2024

all the pprof files are here: http://mars.i.ipfs.io:8080/ipfs/QmVdkYjq2P9j7Ubr6DGP1Bt3bHFc3Mto84Lkkrwu7rmP4e

I'll work on getting the WriteStatus output soon.

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

I didn't grab those files while they were available. What's required to obtain them now?

from utp.

whyrusleeping avatar whyrusleeping commented on May 28, 2024

@anacrolix try again, maybe hosting the files on the machine that was having the issues i filed this issue for wasnt the best idea >.>

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

Okay, got them, thanks.

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

I've since disabled, and just recently reenabled sendBufferPool. Did you notice anything in the interim(s)?

from utp.

whyrusleeping avatar whyrusleeping commented on May 28, 2024

@anacrolix i havent paid super close attention lately. I'll update and try it out again soon and let you know how it goes.

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

Is there any update on this?

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

Take a look at https://github.com/anacrolix/go-libutp.

from utp.

anacrolix avatar anacrolix commented on May 28, 2024

Reopen if there's fresh information.

from utp.

Related Issues (19)

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.