Giter VIP home page Giter VIP logo

Comments (19)

pfrazee avatar pfrazee commented on May 5, 2024

Oh wow, that's brutal. I'm seeing the same thing. Going to diagnose.

from patchwork.

dominictarr avatar dominictarr commented on May 5, 2024

does scuttlebot have the same thing? if so can you disable plugins until it goes away?

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

thats what I'm going to try, starting with the gossip plugin

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

It's the animated gifs and webms. In ./ui/lib/markdown.js#renderer.image you can disable the embeds and resolve the issue completely.

The animated gifs are separate from webms, and they are just as intensive. (I'm able to test this thanks to david's p2p gif.)

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

Yeah, it's the animation. Pausing the videos and hiding the gifs solves it. (Thankfully, setting visibility to hidden fixes the gifs, so the layout wont have to reflow.)

I'll have to watch element visibility and enable/disable as you scroll (darn!)

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

fixed in f929c75

from patchwork.

gardner avatar gardner commented on May 5, 2024

I'm still seeing this:

on my linux vps:
screen shot 2016-03-04 at 9 33 18 am

on my 8 core mac:
screen shot 2016-03-04 at 5 04 33 pm

from patchwork.

dominictarr avatar dominictarr commented on May 5, 2024

@gardner what version are you on? I'm trying to figure out what causes this. but am having trouble reproducing.

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

@gardner this is an old thread, that correctly diagnosed a different CPU over-use bug in the Patchwork frontend. We're working on what you're experiencing now

from patchwork.

gardner avatar gardner commented on May 5, 2024

scuttlebot@drinkbot:~$ sbot version
7.5.2

Should I open a new issue for this? I don't seem to get anything useful when I run it under the profiler...

note @kOK REPL @uRECWB4KIeKoNMis2UYWyB2aQPvWmS3OePQvBj2zClg=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @hGd3sjghbrkVaFEMUrXV11m2oyKLfLqJQcadvapH02w=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @hGd3sjghbrkVaFEMUrXV11m2oyKLfLqJQcadvapH02w=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @0GLMsG6IgXdv+GjG0U5UnZlwxHnomlfmrlWugx8i4dg=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @hxGxqPrplLjRG2vtjQL87abX4QKqeLgCwQpS730nNwE=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @/02iw6SFEPIHl8nMkYSwcCgRWxiG6VP547Wcp1NW8Bo=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @uRECWB4KIeKoNMis2UYWyB2aQPvWmS3OePQvBj2zClg=.ed25519 success
  "Feeds updated: 1, New messages: 1"
note @kOK REPL @uRECWB4KIeKoNMis2UYWyB2aQPvWmS3OePQvBj2zClg=.ed25519 success
  "Feeds updated: 1, New messages: 1"
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync
Device sleep detected, triggering pub sync

from patchwork.

gardner avatar gardner commented on May 5, 2024

BTW this is running on a VPS and was installed via npm install.

uname -a
Linux drinkbot 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

Let's say ssbc/ssb-server#270 is our canonical thread for backend CPU usage issues

from patchwork.

dominictarr avatar dominictarr commented on May 5, 2024

@gardner we had a bug in the quota system.. we are still deciding what to do about this, but for now if you run sbot in "party" mode, it will disable that, and shouldn't have this problem. ssb_party=1 sbot server will do it.

from patchwork.

dominictarr avatar dominictarr commented on May 5, 2024

or set "party": true in ~/.ssb/config

from patchwork.

gardner avatar gardner commented on May 5, 2024

I'm not sure if the party is happening. Is the .ssb/config file a json file?

scuttlebot@stormcloud:~$ cat .ssb/config 
"party": true
scuttlebot@stormcloud:~$ 

screen shot 2016-03-17 at 10 16 50 am

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

@gardner config is a JSON file, it should be

{"party": true}

from patchwork.

dominictarr avatar dominictarr commented on May 5, 2024

note, you need to be running at least [email protected] for this party mode to work.

from patchwork.

gardner avatar gardner commented on May 5, 2024

Thanks guys! {"party": true} in my config file has fixed the cpu utilization problem that I was having. This process has been running for 2 days and only utilized 3.5 hours cpu:

screen shot 2016-03-20 at 9 39 00 am

from patchwork.

pfrazee avatar pfrazee commented on May 5, 2024

That's good to hear, thanks for the update

from patchwork.

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.