Giter Club home page Giter Club logo

Comments (3)

LGUG2Z avatar LGUG2Z commented on July 21, 2024 1

Yeah this was definitely the shoddy tcp incoming message handling code on my working branch. 😅

tl;dr I was wasting a lot of cycles trying to acquire mutex locks unnecessarily.

I have fixed this now, CPU usage is back at a cool 0%. 😎

from kanata.

jtroo avatar jtroo commented on July 21, 2024

Oops, misclicked on mobile.

Before making any action, it would be good to gather info and understand why kanata is somehow spending 30% of CPU resources.

For me on version 1.0.5 in Windows, kanata usually stays at 0% and I've only seen it reach 0.2% occasionally. This is without doing any processor affinity changes.

My initial guess is something problematic that we missed in the TCP code, but I'm unsure for now.

I wouldn't want a user to have to mess around with configurations of number of processors to reduce CPU consumption; it should be at a good, low level by default.

from kanata.

LGUG2Z avatar LGUG2Z commented on July 21, 2024

Okay the TCP server is probably exactly the root of this problem. 😅

I'll dig around in the code on my branch and try to figure this out.

from kanata.

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.